Menu

#183 how can we use agent_addr for IPv6 or what is the role of agent_addr for IPv6?

open
nobody
None
5
2015-04-30
2015-04-30
No

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

Discussion


Log in to post a comment.