1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00
freebsd/contrib/bsnmp/snmpd
Enji Cooper 8d7f605b6c 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(..).

MFC after:      3 weeks
Obtained from:  Isilon OneFS (^/onefs/branches/BR_8_0_0_DEV@r507595)
Submitted by:   Thor Steingrimsson <thor.steingrimsson@isilon.com>
Sponsored by:   Dell EMC Isilon
2016-12-28 04:29:09 +00:00
..
action.c style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
BEGEMOT-MIB.txt style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
BEGEMOT-SNMPD.txt style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
bsnmpd.1 Fix .Dd 2016-05-15 03:44:32 +00:00
config.c style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
export.c style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
FOKUS-MIB.txt style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
main.c Fix bsnmpd sending/receiving with multi-homed configurations or INADDR_ANY used 2016-12-28 04:29:09 +00:00
snmpd.config style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
snmpd.h Fix bsnmpd sending/receiving with multi-homed configurations or INADDR_ANY used 2016-12-28 04:29:09 +00:00
snmpd.sh style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
snmpmod.3 style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
snmpmod.h style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
trans_lsock.c Fix bsnmpd sending/receiving with multi-homed configurations or INADDR_ANY used 2016-12-28 04:29:09 +00:00
trans_lsock.h style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
trans_udp.c Fix bsnmpd sending/receiving with multi-homed configurations or INADDR_ANY used 2016-12-28 04:29:09 +00:00
trans_udp.h Fix bsnmpd sending/receiving with multi-homed configurations or INADDR_ANY used 2016-12-28 04:29:09 +00:00
trap.c style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
tree.def style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00