Trying to GET the details of unauthorized user

"Kumar Sanjay-XJD784" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi All,
          I am trying to GET  the details of unauthorized user, trying
to access the SNMP Agent.
For that I am trying to get the snmpv3 access details in function
"usm_process_in_msg" in snmpusm.c
 
Here  I am  trying to get IP address of the V3 user from
"netsnmp_session * sess,     /* IN   - session which got the message
*/" 
a function parameter to "usm_process_in_msg", 
there is an element in data structure "netsnmp_session"    char
*peername;       /* Domain name or dotted IP address of default peer */
 
snmp_log( LOG_INFO, "sanjay unknown username: %s ** ip:%s ** %x ** \n",
secName, sess->peername, sess->peername );
 
Output: 
user.info snmpd: sanjay unknown username: mot ** ip:(null) ** 0 **
 
 
But  unfortunately peername is  "null" string.
 
Could someone help me out where I need to update the netsnmp_session
structure 
so the I will be able to get the IP Address in "usm_process_in_msg" ?
 
 
Thanks,
Sanjay

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.