Go to the documentation of this file.
9 #ifndef SQUID_SNMP_VARS_H
10 #define SQUID_SNMP_VARS_H
65 #define MAX_NAME_LEN 64
71 #define SMI_INTEGER ASN_INTEGER
72 #define SMI_STRING ASN_OCTET_STR
73 #define SMI_OBJID ASN_OBJECT_ID
74 #define SMI_NULLOBJ ASN_NULL
75 #define SMI_IPADDRESS (ASN_APPLICATION | 0)
76 #define SMI_COUNTER32 (ASN_APPLICATION | 1)
77 #define SMI_GAUGE32 (ASN_APPLICATION | 2)
78 #define SMI_UNSIGNED32 SMI_GAUGE32
79 #define SMI_TIMETICKS (ASN_APPLICATION | 3)
80 #define SMI_OPAQUE (ASN_APPLICATION | 4)
81 #define SMI_COUNTER64 (ASN_APPLICATION | 6)
89 #ifndef INETADDRESSTYPE_ENUMS
90 #define INETADDRESSTYPE_ENUMS
92 #define INETADDRESSTYPE_UNKNOWN 0
93 #define INETADDRESSTYPE_IPV4 1
94 #define INETADDRESSTYPE_IPV6 2
95 #define INETADDRESSTYPE_IPV4Z 3
96 #define INETADDRESSTYPE_IPV6Z 4
97 #define INETADDRESSTYPE_DNS 16
118 #define SMI_NOSUCHOBJECT (ASN_CONTEXT | ASN_PRIMITIVE | 0x0)
119 #define SMI_NOSUCHINSTANCE (ASN_CONTEXT | ASN_PRIMITIVE | 0x1)
120 #define SMI_ENDOFMIBVIEW (ASN_CONTEXT | ASN_PRIMITIVE | 0x2)
u_char * snmp_var_DecodeVarBind(u_char *, int *, struct variable_list **, int)
struct variable_list * snmp_var_new(oid *, int)
struct variable_list * snmp_var_new_integer(oid *, int, int, unsigned char)
struct variable_list * snmp_var_clone(struct variable_list *)
union variable_list::@20 val
void snmp_var_free(struct variable_list *)
struct variable_list * next_variable
u_char * snmp_var_EncodeVarBind(u_char *, int *, struct variable_list *, int)