Re: ignoring context in request?

Mike Harless <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Dave,

Dave Shield <[email protected]> wrote:

> On 25/03/2008, Mike Harless <[email protected]> wrote:
> >  Is it possible to ignore any context specified in a request?
> >  I'd like to be able to support where clients can specify a
> >  context, but snmpd just ignores the request and gives them
> >  the default context instead.
> 
> You'll almost certainly have to tweak the Net-SNMP code - either
> the SNMP request parsing code (e.g. to suppress the line that
> sets the context -  snmp_api.c:snmpv3_scopedPDU_parse()),
> or to force use of the default context within the agent
> (e.g agent_registry.c:netsnmp_subtree_find_first())

Thanks!  I ended up modifying the code in 
agent_registry.c:netsnmp_subtree_find_first() to use the
default context if after searching through the list it didn't
find a match, and the context name was one that I was willing
to map to the default.

--Mike

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
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.