--------------------- PatchSet 6028 Date: 2007/10/28 15:18:38 Author: rmartinez Branch: squid3-ipv6 Tag: (none) Log: constants for enum for MIB nodes cachePeerAddressType (InetAddressType). See RFC4001 Members: include/snmp_vars.h:1.1.30.1->1.1.30.2 Index: squid3/include/snmp_vars.h =================================================================== RCS file: /cvsroot/squid-sf//squid3/include/snmp_vars.h,v retrieving revision 1.1.30.1 retrieving revision 1.1.30.2 diff -u -r1.1.30.1 -r1.1.30.2 --- squid3/include/snmp_vars.h 26 Oct 2007 15:21:52 -0000 1.1.30.1 +++ squid3/include/snmp_vars.h 28 Oct 2007 15:18:38 -0000 1.1.30.2 @@ -25,7 +25,7 @@ * * Author: Ryan Troll * - * $Id: snmp_vars.h,v 1.1.30.1 2007/10/26 15:21:52 rmartinez Exp $ + * $Id: snmp_vars.h,v 1.1.30.2 2007/10/28 15:18:38 rmartinez Exp $ * **********************************************************************/ @@ -71,6 +71,27 @@ #define SMI_TIMETICKS (ASN_APPLICATION | 3) /* INTEGER */ #define SMI_OPAQUE (ASN_APPLICATION | 4) /* OCTET STRING */ #define SMI_COUNTER64 (ASN_APPLICATION | 6) /* INTEGER */ + + +/* constants for enums for the MIB nodes + * cachePeerAddressType (InetAddressType / ASN_INTEGER) + * cacheClientAddressType (InetAddressType / ASN_INTEGER) + * Defined Types + */ + +#ifndef INETADDRESSTYPE_ENUMS +#define INETADDRESSTYPE_ENUMS + +#define INETADDRESSTYPE_UNKNOWN 0 +#define INETADDRESSTYPE_IPV4 1 +#define INETADDRESSTYPE_IPV6 2 +#define INETADDRESSTYPE_IPV4Z 3 +#define INETADDRESSTYPE_IPV6Z 4 +#define INETADDRESSTYPE_DNS 16 + +#endif /* INETADDRESSTYPE_ENUMS */ + + /* * RFC 1905: Protocol Operations for SNMPv2 *