Re: Code location of errorindex (response->errindex)

Nishant Nayan <[email protected]> Mon, 6 Sep 2021 13:38:28 +0530
Newsgroups gmane.network.net-snmp.devel
Message-ID <CAKGR4cL9Xn2rF9g6swsgiKJ3Kz3uiP4q2kf1G5qqmvyWHj9+KQ@mail.gmail.com>
Thank you for the clarification.
Is there a way to debug both snmpget and snmpagent ?
I am querying a node (node 2) from node 1 using proxy pass, so in this case
agent on node2 sends oid values / errindex of wrong oids to node 1
(snmpmanager) ?

Thanks

On Tue, 17 Aug 2021 at 02:35, Wes Hardaker <[email protected]>
wrote:

> Nishant Nayan <[email protected]> writes:
>
> > I debugged in snmpget.c till the section where the request is performed.
> > The errindex is getting set after the below function call (as one of
> > the properties of &response) :-
>
> So the error index is not set by snmpget, but by the agent that snmpget
> is querying.  snmpget is just pulling the answer and the count from the
> agent's response packet and not calculating it itself.
> --
> Wes Hardaker
> Please mail all replies to [email protected]
>

_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders