From d734cd986c41e1c1fc54153f5149dde45b8dee9e Mon Sep 17 00:00:00 2001 From: christiaans Date: Tue, 15 Aug 2006 07:28:43 +0000 Subject: [PATCH] Moved noleafs_get_object_def() and noleafs_get_value() protos from mib2.c to snmp_structs.h --- src/core/snmp/mib2.c | 3 --- src/include/lwip/snmp_structs.h | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/core/snmp/mib2.c b/src/core/snmp/mib2.c index 854eb504..45b9cfd0 100644 --- a/src/core/snmp/mib2.c +++ b/src/core/snmp/mib2.c @@ -66,9 +66,6 @@ #define SNMP_SYSSERVICES ((1 << 6) | (1 << 3) | ((IP_FORWARD) << 2)) #endif -/** @todo export this in snmp_structs.h (for use in private mib) */ -void noleafs_get_object_def(u8_t ident_len, s32_t *ident, struct obj_def *od); -void noleafs_get_value(struct obj_def *od, u16_t len, void *value); static void system_get_object_def(u8_t ident_len, s32_t *ident, struct obj_def *od); static void system_get_value(struct obj_def *od, u16_t len, void *value); diff --git a/src/include/lwip/snmp_structs.h b/src/include/lwip/snmp_structs.h index cf910522..9caf2471 100644 --- a/src/include/lwip/snmp_structs.h +++ b/src/include/lwip/snmp_structs.h @@ -179,6 +179,10 @@ struct mib_external_node /** export MIB tree from mib2.c */ extern const struct mib_array_node internet; +/** export for use in private mib */ +void noleafs_get_object_def(u8_t ident_len, s32_t *ident, struct obj_def *od); +void noleafs_get_value(struct obj_def *od, u16_t len, void *value); + struct mib_node* snmp_search_tree(struct mib_node *node, u8_t ident_len, s32_t *ident, struct obj_def *object_def); u8_t snmp_iso_prefix_tst(u8_t ident_len, s32_t *ident);