FreeBSD Bugzilla – Attachment 217361 Details for
Bug 248647
net/fping: Fails to run inside a FreeBSD jail with "allow.raw_sockets": Can't assign requested address
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
fping5.patch (text/plain), 1.39 KB, created by
Dirk Meyer
on 2020-08-20 06:02:08 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Dirk Meyer
Created:
2020-08-20 06:02:08 UTC
Size:
1.39 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (Revision 545451) >+++ Makefile (Arbeitskopie) >@@ -3,6 +3,7 @@ > > PORTNAME= fping > PORTVERSION= 5.0 >+PORTREVISION= 1 > CATEGORIES= net > MASTER_SITES= http://fping.org/dist/ \ > https://github.com/schweikert/${PORTNAME}/releases/download/v${PORTVERSION}/ >Index: files/patch-fping.c >=================================================================== >--- files/patch-fping.c (nicht existent) >+++ files/patch-fping.c (Arbeitskopie) >@@ -0,0 +1,16 @@ >+--- src/fping.c.orig 2020-08-05 11:10:13 UTC >++++ src/fping.c >+@@ -1060,11 +1060,11 @@ int main(int argc, char** argv) >+ exit(num_noaddress ? 2 : 1); >+ } >+ >+- if (socket4 >= 0) { >++ if (src_addr_set && socket4 >= 0) { >+ socket_set_src_addr_ipv4(socket4, &src_addr, (socktype4 == SOCK_DGRAM) ? &ident4 : NULL); >+ } >+ #ifdef IPV6 >+- if (socket6 >= 0) { >++ if (src_addr6_set && socket6 >= 0) { >+ socket_set_src_addr_ipv6(socket6, &src_addr6, (socktype6 == SOCK_DGRAM) ? &ident6 : NULL); >+ } >+ #endif > >Property changes on: files/patch-fping.c >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 248647
: 217361