[AGENT++] [SNMP++] receive_trap sends response from wrong port
Jochen Katz
katz at agentpp.com
Sun Sep 26 20:38:10 CEST 2010
Hi,
> I looked at consoleExamples/receive_trap.cpp as an example on how to
> receive notifications. I started the tool as root and told it to listen
> on port 162. After receiving an inform it will send the response from an
> unprivileged port instead of port 162.
> Is there a way to get the response source port to be the same as the
> listening port?
yes, change receive_trap to call
snmp->response(pdu, target,
snmp->get_eventListHolder()->notifyEventList()->get_notify_fd());
Regards,
Jochen
More information about the AGENTPP
mailing list