Repair AgentX support.
authorjca <jca@openbsd.org>
Fri, 21 Apr 2017 13:50:23 +0000 (13:50 +0000)
committerjca <jca@openbsd.org>
Fri, 21 Apr 2017 13:50:23 +0000 (13:50 +0000)
commit9e5d066d5f8fafa6537deb7cece118ed8826f875
treee70895ff35ac647c3a3d3d16c574a74f3c0e954b
parentac363c7ad5b5a5350ab0d4dc1fb19fdffa63f094
Repair AgentX support.

which I broke when adding support for multiple listen address.  SNMP
data should be sent to the client using the appropriate socket, which we
now store when we receive the query.

Reported & fix tested by Rivo Nurges.
usr.sbin/snmpd/control.c
usr.sbin/snmpd/snmpd.h
usr.sbin/snmpd/snmpe.c