I have 5.4.2.1 version based sub-agent which connects to the master agent
and registers an OID handler.
I need access to few of the incoming (input) pdu variables such as community
name,
community length, for SNMPv1/v2, and securityName and securityNamelen, for
SNMPv3.
When the sub-agent oid handler is called the following pointers are passed to
it:
netsnmp_mib_handler *handler,
netsnmp_handler_registration *reginfo,
netsnmp_agent_request_info *reqinfo,
netsnmp_request_info *requests
I used agent request info , reqinfo above, pointer to print and examine the
content of the
reqinfo->asp->pdu->community
reqinfo->asp->orig_pdu->securityName
reqinfo->asp->session->community
reqinfo->asp->session->securityName
all of these resulted in NULL pointer and 0 length for the length of the string
They are not set.
Does any one on this list know how from the handler to obtain the above
security elements?
Your help as always is appreciated,
Regards,
Bernadette Eyre
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders