Extract community from the request?

"Enright, Mike" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CA571DCA.113FA%[email protected]>
Greetings List,

I am defining my own MIBs and using mib2c to generate my MIB Modules.

I am doing a simple scalar test and have noticed that the community is empty every place I can find it in my handler's argument. I happened to see some code where when the snmp_pdu is cloned it the community is put in the contextName, but that is also empty.

int
handle_foo(netsnmp_mib_handler *handler,
                      netsnmp_handler_registration *reginfo,
                      netsnmp_agent_request_info *reqinfo,
                      netsnmp_request_info *requests)
{
}


 Has anyone had any success in extracting the community name from a request?

Regards,
Mike

------------------------------------------------------------------------------
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey

_______________________________________________
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.