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

Wes Hardaker via Net-snmp-coders <[email protected]> Mon, 16 Aug 2021 14:04:59 -0700
Newsgroups gmane.network.net-snmp.devel
Message-ID <[email protected]>
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]