I would like to know if there is a way to get the community name from
the pdu inside a handler request?

For example:
int abc_handler(netsnmp_mib_handler *handler,
                            netsnmp_handler_registration *reginfo,
                            netsnmp_agent_request_info *reqinfo,
                            netsnmp_request_info *requests)

I tried both of these:
reqinfo->asp->pdu->community_len 
reqinfo->asp->orig_pdu->community_len

But they are empty.
Is there a way to view the pdu in the handler function?
I am using the tdata helper functions running agentX.
Thanks for any info on how to look at the pdu (community info) inside
the handler.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to