mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-09-17 20:24:24 +00:00
SNMP: Table API cleanup
This commit is contained in:
parent
fbdfba2509
commit
4e8574bd23
@ -143,10 +143,6 @@ union snmp_variant_value
|
|||||||
s32_t s32;
|
s32_t s32;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define SNMP_VARIANT_VALUE_TYPE_U32 0
|
|
||||||
#define SNMP_VARIANT_VALUE_TYPE_S32 1
|
|
||||||
#define SNMP_VARIANT_VALUE_TYPE_PTR 2
|
|
||||||
#define SNMP_VARIANT_VALUE_TYPE_CONST_PTR 3
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
SNMP MIB node types
|
SNMP MIB node types
|
||||||
|
@ -83,11 +83,18 @@ snmp_err_t snmp_table_get_next_instance(const u32_t *root_oid, u8_t root_oid_len
|
|||||||
|
|
||||||
/* simple read-only table */
|
/* simple read-only table */
|
||||||
|
|
||||||
|
typedef enum {
|
||||||
|
SNMP_VARIANT_VALUE_TYPE_U32,
|
||||||
|
SNMP_VARIANT_VALUE_TYPE_S32,
|
||||||
|
SNMP_VARIANT_VALUE_TYPE_PTR,
|
||||||
|
SNMP_VARIANT_VALUE_TYPE_CONST_PTR
|
||||||
|
} snmp_table_column_data_type_t;
|
||||||
|
|
||||||
struct snmp_table_simple_col_def
|
struct snmp_table_simple_col_def
|
||||||
{
|
{
|
||||||
u32_t index;
|
u32_t index;
|
||||||
u8_t asn1_type;
|
u8_t asn1_type;
|
||||||
u8_t data_type; /* any of SNMP_VARIANT_VALUE_TYPE_*, depending of what union member is used to store the value*/
|
snmp_table_column_data_type_t data_type; /* depending of what union member is used to store the value*/
|
||||||
};
|
};
|
||||||
|
|
||||||
struct snmp_table_simple_node
|
struct snmp_table_simple_node
|
||||||
|
Loading…
Reference in New Issue
Block a user