diff options
Diffstat (limited to 'include/net-snmp/library/oid.h')
-rw-r--r-- | include/net-snmp/library/oid.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/net-snmp/library/oid.h b/include/net-snmp/library/oid.h new file mode 100644 index 0000000..e7adf41 --- /dev/null +++ b/include/net-snmp/library/oid.h @@ -0,0 +1,18 @@ +#ifndef NETSNMP_LIBRARY_OID_H +#define NETSNMP_LIBRARY_OID_H + +#ifdef HAVE_INTTYPES_H +#include <inttypes.h> +#endif + +#ifndef EIGHTBIT_SUBIDS +typedef u_long oid; +#define MAX_SUBID 0xFFFFFFFFUL +#define NETSNMP_PRIo "l" +#else +typedef uint8_t oid; +#define MAX_SUBID 0xFF +#define NETSNMP_PRIo "" +#endif + +#endif /* NETSNMP_LIBRARY_OID_H */ |