Hi, Dear all
In SNMP agent, I tried to find out a way to know the source IP address of one
request, I tried to dump the peername in reqinfo->asp->session->peername, which
is in snmp_session, but found it's always null.
Anyone know how do I know the source IP of one requests?
Thanks,
Barclay
Wenjie,
Look at the net-snmp libaray code. Grep for IP_PKTINFO.
Thanks.
-yun
2013/3/25 Zheng, Wenjie (Barclay)
> Hi, Dear all
>
> In SNMP agent, I tried to find out a way to know the source IP address of
> one request, I tried to dump the peername in
> reqinfo->asp->session->peername, which is