Re: passing context to MIB library

Thomas Anders <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Pranali Hande (phande) wrote:
> If you refer  function set_snmp_log_params  in file third-party/src/snmp/net-snmp-5.1/agent/snmp_agent.c
> 
>            if (asp->orig_pdu->community) {
>                 for (i=0;i<asp->orig_pdu->community_len;i++) {
>                    if (asp->orig_pdu->community[i] == '@') {
>                         if (asp->orig_pdu->community_len > i+1) {
>                            memcpy(and_context_name,&asp->orig_pdu->community[i+1], ((asp->orig_pdu->community_len)-i));
>                             and_context_name_len =
>                                 ((asp->orig_pdu->community_len)-(i+1));
>                  curr_ctx_entry_p = snmp_get_context_map_entry(

I don't think that code is part of the original net-snmp 5.1 release, so we're not in a position to answer questions about it.


+Thomas

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