]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r310655:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 16 Jan 2017 07:04:08 +0000 (07:04 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 16 Jan 2017 07:04:08 +0000 (07:04 +0000)
commit2926ceb6c7e816ab6f6fd452d8718d62bb854551
tree3a69bcf3eca32124537af59232f00e249f5867de
parent78822bbd71c397e0c4fb2958948bdf67bfd4c6d4
MFC r310655:

Fix bsnmpd sending/receiving with multi-homed configurations or INADDR_ANY used
as the listening address in snmpd_input(..)

Stash the IPv4 address of the receiver via the recv(..) callback and use it in
the send(..) callback for the transport by specifying IP_SENDSRCADDR for the
control message type.

Add sendmsg logic to the UDP transport's send(..) callback and use the
respective send(..) callback for the transport instead of calling sendto in
snmpd_input(..).

Obtained from:  Isilon OneFS (^/onefs/branches/BR_8_0_0_DEV@r507595)

git-svn-id: svn://svn.freebsd.org/base/stable/10@312265 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
contrib/bsnmp/snmpd/main.c
contrib/bsnmp/snmpd/snmpd.h
contrib/bsnmp/snmpd/trans_lsock.c
contrib/bsnmp/snmpd/trans_udp.c
contrib/bsnmp/snmpd/trans_udp.h