summaryrefslogtreecommitdiff
path: root/usr.sbin/snmpd/mib.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/snmpd/mib.h')
-rw-r--r--usr.sbin/snmpd/mib.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.sbin/snmpd/mib.h b/usr.sbin/snmpd/mib.h
index f154099dd87..06774a9080c 100644
--- a/usr.sbin/snmpd/mib.h
+++ b/usr.sbin/snmpd/mib.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: mib.h,v 1.42 2023/11/08 19:43:29 martijn Exp $ */
+/* $OpenBSD: mib.h,v 1.43 2023/12/21 13:54:05 martijn Exp $ */
/*
* Copyright (c) 2007, 2008 Reyk Floeter <reyk@openbsd.org>
@@ -19,6 +19,10 @@
#ifndef SNMPD_MIB_H
#define SNMPD_MIB_H
+#define MIBDECL(...) { { MIB_##__VA_ARGS__ }, \
+ (sizeof((uint32_t []) { MIB_##__VA_ARGS__ }) / sizeof(uint32_t))}, #__VA_ARGS__
+#define MIBEND { { 0 } }, NULL
+
/*
* Adding new MIBs:
* - add the OID definitions below
@@ -1395,6 +1399,4 @@
{ MIBEND } \
}
- void mib_init(void);
-
#endif /* SNMPD_MIB_H */