/AliOS-Things-master/components/lwip/lwip2.0.0/apps/snmp/ |
A D | snmp_core.c | 277 IP4_ADDR(ip, oid[0], oid[1], oid[2], oid[3]); in snmp_oid_to_ip4() 325 ip->addr[0] = (oid[0] << 24) | (oid[1] << 16) | (oid[2] << 8) | (oid[3] << 0); in snmp_oid_to_ip6() 326 ip->addr[1] = (oid[4] << 24) | (oid[5] << 16) | (oid[6] << 8) | (oid[7] << 0); in snmp_oid_to_ip6() 327 ip->addr[2] = (oid[8] << 24) | (oid[9] << 16) | (oid[10] << 8) | (oid[11] << 0); in snmp_oid_to_ip6() 328 ip->addr[3] = (oid[12] << 24) | (oid[13] << 16) | (oid[14] << 8) | (oid[15] << 0); in snmp_oid_to_ip6() 373 oid[idx] = port; in snmp_ip_port_to_oid() 433 if (oid[1] != 0) { in snmp_oid_to_ip() 449 if (oid[1] != 4) { in snmp_oid_to_ip() 470 if (oid[1] != 16) { in snmp_oid_to_ip() 785 oid, in snmp_get_node_instance_from_oid() [all …]
|
A D | snmp_core_priv.h | 62 const struct snmp_node* snmp_mib_tree_resolve_exact(const struct snmp_mib *mib, const u32_t *oid, u… 63 const struct snmp_node* snmp_mib_tree_resolve_next(const struct snmp_mib *mib, const u32_t *oid, u8… 67 u8_t snmp_get_node_instance_from_oid(const u32_t *oid, u8_t oid_len, struct snmp_node_instance* nod… 68 u8_t snmp_get_next_node_instance_from_oid(const u32_t *oid, u8_t oid_len, snmp_validate_node_instan…
|
A D | snmp_mib2_system.c | 50 #define CREATE_LWIP_SYNC_NODE(oid, node_name) \ argument 51 …static const struct snmp_threadsync_node node_name ## _synced = SNMP_CREATE_THREAD_SYNC_NODE(oid, … 54 #define CREATE_LWIP_SYNC_NODE(oid, node_name) argument 236 switch (node->oid) { in system_get_value() 266 LWIP_DEBUGF(SNMP_MIB_DEBUG,("system_get_value(): unknown id: %"S32_F"\n", node->oid)); in system_get_value() 290 switch (node->oid) { in system_set_test() 304 LWIP_DEBUGF(SNMP_MIB_DEBUG,("system_set_test(): unknown id: %"S32_F"\n", node->oid)); in system_set_test() 333 switch (node->oid) { in system_set_value() 347 LWIP_DEBUGF(SNMP_MIB_DEBUG,("system_set_value(): unknown id: %"S32_F"\n", node->oid)); in system_set_value()
|
A D | snmp_asn1.c | 248 snmp_asn1_enc_oid(struct snmp_pbuf_stream* pbuf_stream, const u32_t *oid, u16_t oid_len) in snmp_asn1_enc_oid() argument 252 u32_t compressed_byte = ((oid[0] * 40) + oid[1]); in snmp_asn1_enc_oid() 255 oid += 2; in snmp_asn1_enc_oid() 267 sub_id = *oid; in snmp_asn1_enc_oid() 283 oid++; in snmp_asn1_enc_oid() 390 snmp_asn1_enc_oid_cnt(const u32_t *oid, u16_t oid_len, u16_t *octets_needed) in snmp_asn1_enc_oid_cnt() argument 399 oid += 2; in snmp_asn1_enc_oid_cnt() 403 sub_id = *oid; in snmp_asn1_enc_oid_cnt() 411 oid++; in snmp_asn1_enc_oid_cnt() 641 snmp_asn1_dec_oid(struct snmp_pbuf_stream *pbuf_stream, u16_t len, u32_t* oid, u8_t* oid_len, u8_t … in snmp_asn1_dec_oid() argument [all …]
|
A D | snmp_scalar.c | 97 if (array_node_def->oid == instance->instance_oid.id[0]) { in snmp_scalar_array_get_instance() 138 if (array_node_def->oid < result->oid) { in snmp_scalar_array_get_next_instance() 148 if (array_node_def->oid == instance->instance_oid.id[0]) { in snmp_scalar_array_get_next_instance() 162 if ((array_node_def->oid > instance->instance_oid.id[0]) && in snmp_scalar_array_get_next_instance() 163 ((u32_t)(array_node_def->oid - instance->instance_oid.id[0]) < oid_dist)) { in snmp_scalar_array_get_next_instance() 165 oid_dist = array_node_def->oid - instance->instance_oid.id[0]; in snmp_scalar_array_get_next_instance() 180 instance->instance_oid.id[0] = result->oid; in snmp_scalar_array_get_next_instance()
|
A D | snmp_mib2_icmp.c | 49 #define CREATE_LWIP_SYNC_NODE(oid, node_name) \ argument 50 …static const struct snmp_threadsync_node node_name ## _synced = SNMP_CREATE_THREAD_SYNC_NODE(oid, … 53 #define CREATE_LWIP_SYNC_NODE(oid, node_name) argument 63 switch (node->oid) { in icmp_get_value() 143 LWIP_DEBUGF(SNMP_MIB_DEBUG,("icmp_get_value(): unknown id: %"S32_F"\n", node->oid)); in icmp_get_value()
|
A D | snmp_mib2_snmp.c | 52 switch (node->oid) { in snmp_get_value() 148 LWIP_DEBUGF(SNMP_MIB_DEBUG,("snmp_get_value(): unknown id: %"S32_F"\n", node->oid)); in snmp_get_value() 161 if (node->oid == 30) { in snmp_set_test() 178 if (node->oid == 30) { in snmp_set_value()
|
A D | snmp_asn1.h | 86 err_t snmp_asn1_dec_oid(struct snmp_pbuf_stream *pbuf_stream, u16_t len, u32_t* oid, u8_t* oid_len,… 95 void snmp_asn1_enc_oid_cnt(const u32_t *oid, u16_t oid_len, u16_t *octets_needed); 96 err_t snmp_asn1_enc_oid(struct snmp_pbuf_stream* pbuf_stream, const u32_t *oid, u16_t oid_len);
|
A D | snmp_mib2_udp.c | 51 #define CREATE_LWIP_SYNC_NODE(oid, node_name) \ argument 52 …static const struct snmp_threadsync_node node_name ## _synced = SNMP_CREATE_THREAD_SYNC_NODE(oid, … 55 #define CREATE_LWIP_SYNC_NODE(oid, node_name) argument 65 switch (instance->node->oid) { in udp_get_value() 85 LWIP_DEBUGF(SNMP_MIB_DEBUG,("udp_get_value(): unknown id: %"S32_F"\n", instance->node->oid)); in udp_get_value()
|
/AliOS-Things-master/components/lwip/lwip2.0.0/include/lwip/apps/ |
A D | snmp_core.h | 169 u32_t oid; member 229 #define SNMP_CREATE_TREE_NODE(oid, subnodes) \ argument 230 {{ SNMP_NODE_TREE, (oid) }, \ 233 #define SNMP_CREATE_EMPTY_TREE_NODE(oid) \ argument 234 {{ SNMP_NODE_TREE, (oid) }, \ 300 u8_t snmp_oid_to_ip4(const u32_t *oid, ip4_addr_t *ip); 301 void snmp_ip4_to_oid(const ip4_addr_t *ip, u32_t *oid); 304 u8_t snmp_oid_to_ip6(const u32_t *oid, ip6_addr_t *ip); 305 void snmp_ip6_to_oid(const ip6_addr_t *ip, u32_t *oid); 308 u8_t snmp_ip_to_oid(const ip_addr_t *ip, u32_t *oid); [all …]
|
A D | snmp_scalar.h | 66 #define SNMP_SCALAR_CREATE_NODE(oid, access, asn1_type, get_value_method, set_test_method, set_valu… argument 67 {{{ SNMP_NODE_SCALAR, (oid) }, \ 72 #define SNMP_SCALAR_CREATE_NODE_READONLY(oid, asn1_type, get_value_method) SNMP_SCALAR_CREATE_NODE(… argument 77 u32_t oid; member 101 #define SNMP_SCALAR_CREATE_ARRAY_NODE(oid, array_nodes, get_value_method, set_test_method, set_valu… argument 102 {{{ SNMP_NODE_SCALAR_ARRAY, (oid) }, \
|
A D | snmp_table.h | 78 #define SNMP_TABLE_CREATE(oid, columns, get_cell_instance_method, get_next_cell_instance_method, ge… argument 79 {{{ SNMP_NODE_TABLE, (oid) }, \ 86 #define SNMP_TABLE_GET_COLUMN_FROM_OID(oid) ((oid)[1]) /* first array value is (fixed) row entry (f… argument 118 #define SNMP_TABLE_CREATE_SIMPLE(oid, columns, get_cell_value_method, get_next_cell_instance_and_va… argument 119 {{{ SNMP_NODE_TABLE, (oid) }, \
|
A D | snmp.h | 62 struct snmp_obj_id oid; member 102 err_t snmp_send_trap(const struct snmp_obj_id* oid, s32_t generic_trap, s32_t specific_trap, struct… 119 typedef void (*snmp_write_callback_fct)(const u32_t* oid, u8_t oid_len, void* callback_arg);
|
A D | snmp_threadsync.h | 98 #define SNMP_CREATE_THREAD_SYNC_NODE(oid, target_leaf_node, threadsync_instance) \ argument 99 {{{ SNMP_NODE_THREADSYNC, (oid) }, \
|
/AliOS-Things-master/hardware/chip/haas1000/drivers/net/lwip/src/include/lwip/apps/ |
A D | snmp_core.h | 169 u32_t oid; member 229 #define SNMP_CREATE_TREE_NODE(oid, subnodes) \ argument 230 {{ SNMP_NODE_TREE, (oid) }, \ 233 #define SNMP_CREATE_EMPTY_TREE_NODE(oid) \ argument 234 {{ SNMP_NODE_TREE, (oid) }, \ 300 u8_t snmp_oid_to_ip4(const u32_t *oid, ip4_addr_t *ip); 301 void snmp_ip4_to_oid(const ip4_addr_t *ip, u32_t *oid); 304 u8_t snmp_oid_to_ip6(const u32_t *oid, ip6_addr_t *ip); 305 void snmp_ip6_to_oid(const ip6_addr_t *ip, u32_t *oid); 308 u8_t snmp_ip_to_oid(const ip_addr_t *ip, u32_t *oid); [all …]
|
A D | snmp_scalar.h | 66 #define SNMP_SCALAR_CREATE_NODE(oid, access, asn1_type, get_value_method, set_test_method, set_valu… argument 67 {{{ SNMP_NODE_SCALAR, (oid) }, \ 72 #define SNMP_SCALAR_CREATE_NODE_READONLY(oid, asn1_type, get_value_method) SNMP_SCALAR_CREATE_NODE(… argument 77 u32_t oid; member 101 #define SNMP_SCALAR_CREATE_ARRAY_NODE(oid, array_nodes, get_value_method, set_test_method, set_valu… argument 102 {{{ SNMP_NODE_SCALAR_ARRAY, (oid) }, \
|
A D | snmp_table.h | 78 #define SNMP_TABLE_CREATE(oid, columns, get_cell_instance_method, get_next_cell_instance_method, ge… argument 79 {{{ SNMP_NODE_TABLE, (oid) }, \ 86 #define SNMP_TABLE_GET_COLUMN_FROM_OID(oid) ((oid)[1]) /* first array value is (fixed) row entry (f… argument 118 #define SNMP_TABLE_CREATE_SIMPLE(oid, columns, get_cell_value_method, get_next_cell_instance_and_va… argument 119 {{{ SNMP_NODE_TABLE, (oid) }, \
|
A D | snmp.h | 62 struct snmp_obj_id oid; member 102 err_t snmp_send_trap(const struct snmp_obj_id* oid, s32_t generic_trap, s32_t specific_trap, struct… 119 typedef void (*snmp_write_callback_fct)(const u32_t* oid, u8_t oid_len, void* callback_arg);
|
A D | snmp_threadsync.h | 98 #define SNMP_CREATE_THREAD_SYNC_NODE(oid, target_leaf_node, threadsync_instance) \ argument 99 {{{ SNMP_NODE_THREADSYNC, (oid) }, \
|
/AliOS-Things-master/components/mbedtls/include/mbedtls/ |
A D | oid.h | 436 int mbedtls_oid_get_x509_ext_type( const mbedtls_asn1_buf *oid, int *ext_type ); 458 int mbedtls_oid_get_pk_alg( const mbedtls_asn1_buf *oid, mbedtls_pk_type_t *pk_alg ); 470 const char **oid, size_t *olen ); 481 int mbedtls_oid_get_ec_grp( const mbedtls_asn1_buf *oid, mbedtls_ecp_group_id *grp_id ); 493 const char **oid, size_t *olen ); 506 int mbedtls_oid_get_sig_alg( const mbedtls_asn1_buf *oid, 517 int mbedtls_oid_get_sig_alg_desc( const mbedtls_asn1_buf *oid, const char **desc ); 530 const char **oid, size_t *olen ); 540 int mbedtls_oid_get_md_alg( const mbedtls_asn1_buf *oid, mbedtls_md_type_t *md_alg ); 550 int mbedtls_oid_get_md_hmac( const mbedtls_asn1_buf *oid, mbedtls_md_type_t *md_hmac ); [all …]
|
A D | asn1write.h | 133 const char *oid, size_t oid_len ); 152 const char *oid, size_t oid_len, 314 const char *oid, size_t oid_len,
|
/AliOS-Things-master/components/mbedtls/library/ |
A D | x509_create.c | 42 const char *oid; /* String representation of OID of AttributeType, member 133 const char *oid = NULL; in mbedtls_x509_string_to_names() local 152 oid = attr_descr->oid; in mbedtls_x509_string_to_names() 172 mbedtls_asn1_store_named_data( head, oid, strlen( oid ), in mbedtls_x509_string_to_names() 218 if( ( cur = mbedtls_asn1_store_named_data( head, oid, oid_len, in mbedtls_x509_set_extension() 246 const char *oid = (const char*)cur_name->oid.p; in x509_write_name() local 247 size_t oid_len = cur_name->oid.len; in x509_write_name() 258 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_oid( p, start, oid, in x509_write_name() 295 const char *oid, size_t oid_len, in mbedtls_x509_write_sig() argument 342 ext->oid.len ) ); in x509_write_extension() [all …]
|
A D | oid.c | 62 if( p == NULL || oid == NULL ) return( NULL ); \ 64 if( cur->asn1_len == oid->len && \ 65 memcmp( cur->asn1, oid->p, oid->len ) == 0 ) { \ 81 const TYPE_T *data = oid_ ## TYPE_NAME ## _from_asn1( oid ); \ 94 const TYPE_T *data = oid_ ## TYPE_NAME ## _from_asn1( oid ); \ 716 const mbedtls_asn1_buf *oid ) 727 if( oid->len > 0 ) 729 ret = mbedtls_snprintf( p, n, "%d.%d", oid->p[0] / 40, oid->p[0] % 40 ); 734 for( i = 1; i < oid->len; i++ ) 741 value += oid->p[i] & 0x7F; [all …]
|
A D | asn1write.c | 183 const char *oid, size_t oid_len ) in mbedtls_asn1_write_oid() argument 197 const char *oid, size_t oid_len, in mbedtls_asn1_write_algorithm_identifier() argument 343 if( list->oid.len == len && in asn1_find_named_data() 344 memcmp( list->oid.p, oid, len ) == 0 ) in asn1_find_named_data() 357 const char *oid, size_t oid_len, in mbedtls_asn1_store_named_data() argument 363 if( ( cur = asn1_find_named_data( *head, oid, oid_len ) ) == NULL ) in mbedtls_asn1_store_named_data() 372 cur->oid.len = oid_len; in mbedtls_asn1_store_named_data() 373 cur->oid.p = mbedtls_calloc( 1, oid_len ); in mbedtls_asn1_store_named_data() 374 if( cur->oid.p == NULL ) in mbedtls_asn1_store_named_data() 380 memcpy( cur->oid.p, oid, oid_len ); in mbedtls_asn1_store_named_data() [all …]
|
A D | asn1parse.c | 354 mbedtls_free( cur->oid.p ); in mbedtls_asn1_free_named_data() 373 const char *oid, size_t len ) in mbedtls_asn1_find_named_data() argument 377 if( list->oid.len == len && in mbedtls_asn1_find_named_data() 378 memcmp( list->oid.p, oid, len ) == 0 ) in mbedtls_asn1_find_named_data()
|