]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Re-do r240271:
authorGleb Smirnoff <glebius@FreeBSD.org>
Thu, 20 Sep 2012 05:41:20 +0000 (05:41 +0000)
committerGleb Smirnoff <glebius@FreeBSD.org>
Thu, 20 Sep 2012 05:41:20 +0000 (05:41 +0000)
commit23cea7199b0f0d7e28803dda5b747d3cde7170df
tree6bb8a726b57686058e68e3eb61325a42868ea127
parentd62a0fbf2a0667ea48fb28de4068a08d4c0c93cd
Re-do r240271:
- Set IP_RECVDSTADDR sockopt on the socket only in case if
  it is INADDR_ANY bound.
- Supply IP_SENDSRCADDR control message only if we did receive
  IP_RECVDSTADDR control message.

This fixes operation of snmpd bound to a specific local IP address.

PR: bin/171279
contrib/bsnmp/snmpd/main.c
contrib/bsnmp/snmpd/trans_udp.c