The snmptrap util seems to be ignoring the source ip provided. Details: pdu->agent_addr is where snmptrap (apps/snmptrap.c) stores the user-supplied source IP. snmpdtrap sends packets using snmp_send from snmp_api.c, which in short order calls _sess_async_send, which if UDP is being used eventually calls netsnmp_udp_send from snmpUDPDomain.c. In turn, netsnmp_udp_send uses the session list pointer's transport->data address pair to find the source IP.
Perhaps I'm missing a link somewhere, but I can't see that session list pointer's data being set using the user-supplied address. Am I missing something? Or is this a bug? -Dan ------------------------------------------------------------------------------ _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
