how can I know the from IP of one SNMP request in SNMP agent?

2013-03-25 Thread 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 in snmp_session, but found it's always null. Anyone know how do I know the source IP of one requests? Thanks, Barclay

Re: how can I know the from IP of one SNMP request in SNMP agent?

2013-03-25 Thread Yun Li
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