freebsd-skq/contrib/bsnmp/snmpd
Gleb Smirnoff 1897a4f168 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.
2017-01-17 03:52:57 +00:00
..
action.c style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
BEGEMOT-MIB.txt Add a REVISION section to track changes for the BEGEMOT-MIB MIB file 2017-01-09 06:27:30 +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 Similar to r310954, set .len to 0 on malloc failure and to len only 2016-12-31 12:37:53 +00:00
FOKUS-MIB.txt Add a REVISION section to track changes for the FOKUS-MIB MIB file 2017-01-09 06:24:28 +00:00
main.c lm_load: fix string copying issues 2017-01-05 07:55:17 +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 Use uint32_t instead of u_int32_t for or_last_change and services in "struct systemg" 2016-12-29 08:16:43 +00:00
trans_lsock.c Use calloc instead of malloc + memset(.., 0, ..) 2017-01-05 08:17:17 +00:00
trans_lsock.h style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
trans_udp.c Fix regression from r310655, which broke operation of bsnmpd if it is bound 2017-01-17 03:52:57 +00:00
trans_udp.h Fix regression from r310655, which broke operation of bsnmpd if it is bound 2017-01-17 03:52:57 +00:00
trap.c Use strlcpy when copying com to pdu->community to avoid potential 2016-12-31 12:18:17 +00:00
tree.def style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00