-/* $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>
#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
{ MIBEND } \
}
- void mib_init(void);
-
#endif /* SNMPD_MIB_H */
-/* $OpenBSD: snmpd.h,v 1.115 2023/12/21 12:43:31 martijn Exp $ */
+/* $OpenBSD: snmpd.h,v 1.116 2023/12/21 13:54:05 martijn Exp $ */
/*
* Copyright (c) 2007, 2008, 2012 Reyk Floeter <reyk@openbsd.org>
#define OID(...) (struct ber_oid){ { __VA_ARGS__ }, \
(sizeof((uint32_t []) { __VA_ARGS__ }) / sizeof(uint32_t)) }
-#define MIBDECL(...) { { MIB_##__VA_ARGS__ }, \
- (sizeof((uint32_t []) { MIB_##__VA_ARGS__ }) / sizeof(uint32_t))}, #__VA_ARGS__
-#define MIB(...) { { MIB_##__VA_ARGS__ } }, NULL
-#define MIBEND { { 0 } }, NULL
/*
* daemon structures