1897a4f168
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. |
||
---|---|---|
.. | ||
action.c | ||
BEGEMOT-MIB.txt | ||
BEGEMOT-SNMPD.txt | ||
bsnmpd.1 | ||
config.c | ||
export.c | ||
FOKUS-MIB.txt | ||
main.c | ||
snmpd.config | ||
snmpd.h | ||
snmpd.sh | ||
snmpmod.3 | ||
snmpmod.h | ||
trans_lsock.c | ||
trans_lsock.h | ||
trans_udp.c | ||
trans_udp.h | ||
trap.c | ||
tree.def |