summaryrefslogtreecommitdiff
path: root/usr.sbin/snmpd/mib.h
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2007-12-29 09:24:44 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2007-12-29 09:24:44 +0000
commit4d548bbc88c744342a51ae80498dfa9640546c2d (patch)
tree3c0f6be54aabb6a0c45fb71a1377b809c72a1304 /usr.sbin/snmpd/mib.h
parent497914f08894369ccc1d40e8aeeee5a07b05aa6e (diff)
add the IP-MIB ipAddrTable. it requires to encode the ipv4 addresses
in the OIDs as the table index. the next step is to simplify the common mib implementation regarding the special requirements of these strange snmp tables.
Diffstat (limited to 'usr.sbin/snmpd/mib.h')
-rw-r--r--usr.sbin/snmpd/mib.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/usr.sbin/snmpd/mib.h b/usr.sbin/snmpd/mib.h
index 2f32741fdbb..8a895419e07 100644
--- a/usr.sbin/snmpd/mib.h
+++ b/usr.sbin/snmpd/mib.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: mib.h,v 1.9 2007/12/28 16:27:51 reyk Exp $ */
+/* $OpenBSD: mib.h,v 1.10 2007/12/29 09:24:43 reyk Exp $ */
/*
* Copyright (c) 2007 Reyk Floeter <reyk@vantronix.net>
@@ -197,11 +197,13 @@
#define MIB_ipFragCreates MIB_ipMIB, 19
#define MIB_ipAddrTable MIB_ipMIB, 20
#define MIB_ipAddrEntry MIB_ipAddrTable, 1
-#define MIB_ipAdEntAddr MIB_ipAddrEntry, 2
-#define MIB_ipAdEntIfIndex MIB_ipAddrEntry, 3
-#define MIB_ipAdEntNetMask MIB_ipAddrEntry, 4
-#define MIB_ipAdEntBcastAddr MIB_ipAddrEntry, 5
-#define MIB_ipAdEntReasmMaxSize MIB_ipAddrEntry, 6
+#define OIDIDX_ipAddr 9
+#define OIDIDX_ipAddrEntry 10
+#define MIB_ipAdEntAddr MIB_ipAddrEntry, 1
+#define MIB_ipAdEntIfIndex MIB_ipAddrEntry, 2
+#define MIB_ipAdEntNetMask MIB_ipAddrEntry, 3
+#define MIB_ipAdEntBcastAddr MIB_ipAddrEntry, 4
+#define MIB_ipAdEntReasmMaxSize MIB_ipAddrEntry, 5
#define MIB_ipNetToMediaTable MIB_ipMIB, 22
#define MIB_ipNetToMediaEntry MIB_ipNetToMediaTable, 1
#define MIB_ipNetToMediaIfIndex MIB_ipNetToMediaEntry, 1