diff options
author | attilio <attilio@FreeBSD.org> | 2010-09-24 14:38:54 +0000 |
---|---|---|
committer | attilio <attilio@FreeBSD.org> | 2010-09-24 14:38:54 +0000 |
commit | d658ddc7c7924a861425fc3baf2c691390228d4a (patch) | |
tree | dce076cbaa624312acbee493787ddc3b51005c62 /sys/netinet | |
parent | b0052272aae3fe76b39890669e62a34681624747 (diff) | |
download | FreeBSD-src-d658ddc7c7924a861425fc3baf2c691390228d4a.zip FreeBSD-src-d658ddc7c7924a861425fc3baf2c691390228d4a.tar.gz |
IP_BINDANY is not correctly handled in getsockopt() case.
Fix it by specifying the correct bits.
Sponsored by: Sandvine Incorporated
Reviewed by: bz, emaste, rstone
Obtained from: Sandvine Incorporated
MFC after: 10 days
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/ip_output.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c index 1a933c5..e292b60 100644 --- a/sys/netinet/ip_output.c +++ b/sys/netinet/ip_output.c @@ -1121,6 +1121,7 @@ ip_ctloutput(struct socket *so, struct sockopt *sopt) case IP_FAITH: case IP_ONESBCAST: case IP_DONTFRAG: + case IP_BINDANY: switch (sopt->sopt_name) { case IP_TOS: @@ -1176,6 +1177,9 @@ ip_ctloutput(struct socket *so, struct sockopt *sopt) case IP_DONTFRAG: optval = OPTBIT(INP_DONTFRAG); break; + case IP_BINDANY: + optval = OPTBIT(INP_BINDANY); + break; } error = sooptcopyout(sopt, &optval, sizeof optval); break; |