diff options
author | ngie <ngie@FreeBSD.org> | 2017-01-20 06:24:31 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2017-01-20 06:24:31 +0000 |
commit | 7eace5f79d0695b310687432bd6cfd12ec21aec7 (patch) | |
tree | 2e44bd0ea7799847127896cbcb01f874de0e46a9 /contrib/diff/lib | |
parent | c654b25c34140c30d7015d6fafaf5dc3dcacd3ad (diff) | |
download | FreeBSD-src-7eace5f79d0695b310687432bd6cfd12ec21aec7.zip FreeBSD-src-7eace5f79d0695b310687432bd6cfd12ec21aec7.tar.gz |
MFC r312331:
r312331 (by glebius):
Fix regression from r310655, which broke operation of bsnmpd if it is bound
to a non-wildcard address. As documented in ip(4), doing sendmsg(2) with
IP_SENDSRCADDR on a socket that is bound to non-wildcard address is
completely different to using this control message on a wildcard one.
A fix is to add a bool to mark whether we did setsockopt(IP_RECVDSTADDR)
on the socket, and use IP_SENDSRCADDR control message only if we did.
While here, garbage collect absolutely useless udp_recv() function that
establishes some structures on stack to never use them later.
Diffstat (limited to 'contrib/diff/lib')
0 files changed, 0 insertions, 0 deletions