How can I access the pdu in a handler

"Joan Landry" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <A9FCB77F97940A418A61FD9BB71E4170013A589F@dexbe012-6.exch012.intermedia.net>
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
[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.