Currently I am working on an application that run on IPv6 setup during code I found that pdu->agent_addr is use only for IPv4 for sending snmpV1 trap but I am not able to find that what is the use of "pdu->agent_addr" for IPv6.
below is code snippet-
in_addr_t pdu_in_addr_t;
pdu_in_addr_t = (in_addr_t ) pdu->agent_addr;
*pdu_in_addr_t = get_myaddr();
I found on net_snmp code where snmp_pdu Structure have
unsigned char agent_addr [4]; / This is ONLY used for v1 TRAPs. /
regards
Navin Tiwary