On Thu, May 02, 2019 at 05:51:03PM +0000, Even Oscar Andersen wrote:
> (Repost of message sent to net-snmp-users, maybe this forum is more 
> appropriate)
> 
> Hello,
> 
> I am calling snmp_synch_response, and try to use the resulting variables,
> 
> It seems part of the result return variable type 0x81, not sure what this 
> variable is,
> It is not one of the ASN_ defines, but if I mask out 0x80 (not sure if this 
> is correct),
> It seems to be ASN_BOOLEAN.

This is a SNMPv2 exception type. You can find it in 
include/net-snmp/library/snmp.h,
but here are the exceptions:


    /*
     * Exception values for SNMPv2p, SNMPv2c, SNMPv2u, SNMPv2*, and
     * SNMPv3 
              */
#define SNMP_NOSUCHOBJECT    (ASN_CONTEXT | ASN_PRIMITIVE | 0x0) /* 80=128 */
#define SNMP_NOSUCHINSTANCE  (ASN_CONTEXT | ASN_PRIMITIVE | 0x1) /* 81=129 */
#define SNMP_ENDOFMIBVIEW    (ASN_CONTEXT | ASN_PRIMITIVE | 0x2) /* 82=130 */

/Niels

-- 
Niels Baggesen - @home - Ã…rhus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming


_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to