/NetX-Duo-v6.3.0/addons/azure_iot/azure_iot_security_module/iot-security-module-core/inc/asc_security_core/utils/collection/ |
D | linked_list.h | 23 #define LINKED_LIST_DECLARATIONS(type) \ argument 24 typedef void (*linked_list_##type##_deinit_function)(type *item);\ 25 typedef void (*linked_list_##type##_action)(type *item, void *context);\ 27 type *head;\ 28 type *tail;\ 30 linked_list_##type##_deinit_function deinit;\ 32 } linked_list_##type;\ 33 typedef linked_list_##type *linked_list_##type##_handle;\ 35 type *current;\ 36 type *next;\ [all …]
|
D | hashset.h | 40 #define HASHSET_DECLARATIONS(type) … argument 44 typedef void (*hashset_##type##_for_each_function)(type *element, void *context); … 52 extern void hashset_##type##_init(type *table[]); … 62 extern type *hashset_##type##_find(type *table[], type *element); … 72 extern type *hashset_##type##_remove(type *table[], type *element); … 83 extern void hashset_##type##_add_or_update(type *table[], type *element); … 94 extern void hashset_##type##_for_each(type *table[], hashset_##type##_for_each_function for_each_fu… 105 extern void hashset_##type##_clear(type *table[], hashset_##type##_for_each_function for_each_funci… 114 extern unsigned int hashset_##type##_hash(type *element); … 124 extern int hashset_##type##_equals(type *a, type *b); … [all …]
|
D | bit_vector.h | 23 #define BIT_VECTOR_DECLARATIONS(type, size) \ argument 26 } bit_vector_##type; 78 #define bit_vector_size(type) ((int)(sizeof(bit_vector_##type)<<3)) argument 80 #define bit_vector_set(type, bit_vector_ptr, index, bit) \ argument 81 __bit_vector_set((bit_vector_ptr)->data, index, bit, bit_vector_size(type)) 83 #define bit_vector_get(type, bit_vector_ptr, index) \ argument 84 __bit_vector_get((bit_vector_ptr)->data, index, bit_vector_size(type)) 86 #define is_bit_vector_zero(type, bit_vector_ptr) \ argument 87 __is_bit_vector_zero((bit_vector_ptr)->data, bit_vector_size(type)) 89 #define bit_vector_clean(type, bit_vector_ptr) \ argument [all …]
|
D | collection.h | 18 #define COLLECTION_INTERFACE(type)\ argument 19 type *previous;\ 20 type *next
|
D | hashtable.h | 84 #define HASHTABLE_DECLARATIONS(type, max_hash_size) \ argument 87 type *table[(max_hash_size)]; \ 88 } hashtable_##type;
|
/NetX-Duo-v6.3.0/addons/azure_iot/azure_iot_security_module/iot-security-module-core/inc/asc_security_core/ |
D | object_pool_dynamic.h | 30 #define OBJECT_POOL_DECLARATIONS(type)\ argument 31 extern type _##type##_pool_test;\ 32 extern object_pool_t _##type##_pool_obj; 34 #define OBJECT_POOL_DEFINITIONS(type, pool_size)\ argument 35 type _##type##_pool_test;\ 36 object_pool_t _##type##_pool_obj = {.item_size = sizeof(type), .size = pool_size, .initialized = fa… 42 #define object_pool_init(type) _##type##_pool_obj.initialized = true argument 44 #define object_pool_get(type)\ argument 45 (type *)__object_pool_get((object_pool_t *)&_##type##_pool_obj, (uintptr_t)(&_##type##_pool_test), … 47 #define object_pool_free(type, obj)\ argument [all …]
|
D | object_pool_static.h | 31 #define OBJECT_POOL_DECLARATIONS(type)\ argument 32 extern type _##type##_pool[];\ 33 extern object_pool_t _##type##_pool_obj; 35 #define OBJECT_POOL_DEFINITIONS(type, pool_size)\ argument 36 type _##type##_pool[pool_size];\ 37 object_pool_t _##type##_pool_obj = {.item_size = sizeof(type), .size = pool_size, .initialized = fa… 43 #define object_pool_get(type) \ argument 44 …type *)__object_pool_get((object_pool_t *)&_##type##_pool_obj, (uintptr_t)(&_##type##_pool[0]), (u… 46 #define object_pool_free(type, obj) \ argument 47 __object_pool_free((object_pool_t *)&_##type##_pool_obj, (void *)obj) [all …]
|
D | collector.h | 59 collector_enum_t type; member 114 asc_result_t collector_default_create(component_id_t id, collector_enum_t type, collector_priority_…
|
D | collector_collection.h | 100 …get_collector_by_priority(collector_collection_t *collector_collection_ptr, collector_enum_t type);
|
/NetX-Duo-v6.3.0/addons/azure_iot/azure_iot_security_module/iot-security-module-core/inc/asc_security_core/model/schema/ |
D | payload_builder.h | 46 { AzureIoTSecurity_Payload_union_ref_t uref; uref.type = AzureIoTSecurity_Payload_NONE; uref.value … in AzureIoTSecurity_Payload_as_NONE() 48 { AzureIoTSecurity_Payload_union_ref_t uref; uref.type = AzureIoTSecurity_Payload_NetworkActivity; … in AzureIoTSecurity_Payload_as_NetworkActivity() 50 { AzureIoTSecurity_Payload_union_ref_t uref; uref.type = AzureIoTSecurity_Payload_SystemInformation… in AzureIoTSecurity_Payload_as_SystemInformation() 52 { AzureIoTSecurity_Payload_union_ref_t uref; uref.type = AzureIoTSecurity_Payload_ListeningPorts; u… in AzureIoTSecurity_Payload_as_ListeningPorts() 54 { AzureIoTSecurity_Payload_union_ref_t uref; uref.type = AzureIoTSecurity_Payload_Heartbeat; uref.v… in AzureIoTSecurity_Payload_as_Heartbeat() 56 { AzureIoTSecurity_Payload_union_ref_t uref; uref.type = AzureIoTSecurity_Payload_Baseline; uref.va… in AzureIoTSecurity_Payload_as_Baseline() 58 { AzureIoTSecurity_Payload_union_ref_t uref; uref.type = AzureIoTSecurity_Payload_Process; uref.val… in AzureIoTSecurity_Payload_as_Process() 60 { AzureIoTSecurity_Payload_union_ref_t uref; uref.type = AzureIoTSecurity_Payload_Log; uref.value =… in AzureIoTSecurity_Payload_as_Log() 65 switch (u.type) { in __flatbuffers_build_union_vector()
|
D | payload_reader.h | 57 …c inline const char *AzureIoTSecurity_Payload_type_name(AzureIoTSecurity_Payload_union_type_t type) in __flatbuffers_define_union() 59 switch (type) { in __flatbuffers_define_union() 72 static inline int AzureIoTSecurity_Payload_is_known_type(AzureIoTSecurity_Payload_union_type_t type) in AzureIoTSecurity_Payload_is_known_type() argument 74 switch (type) { in AzureIoTSecurity_Payload_is_known_type()
|
D | payload_json_printer.h | 30 …ureIoTSecurity_Payload_print_json_union_type(flatcc_json_printer_t *ctx, flatbuffers_utype_t type); 33 …zureIoTSecurity_Payload_print_json_union_type(flatcc_json_printer_t *ctx, flatbuffers_utype_t type) in AzureIoTSecurity_Payload_print_json_union_type() argument 35 switch (type) { in AzureIoTSecurity_Payload_print_json_union_type() 65 switch (ud->type) { in AzureIoTSecurity_Payload_print_json_union()
|
D | payload_json_parser.h | 30 …nion(flatcc_json_parser_t *ctx, const char *buf, const char *end, uint8_t type, flatcc_builder_ref… 31 static int AzureIoTSecurity_Payload_json_union_accept_type(uint8_t type); 41 …nion(flatcc_json_parser_t *ctx, const char *buf, const char *end, uint8_t type, flatcc_builder_ref… in AzureIoTSecurity_Payload_parse_json_union() argument 45 switch (type) { in AzureIoTSecurity_Payload_parse_json_union() 83 static int AzureIoTSecurity_Payload_json_union_accept_type(uint8_t type) in AzureIoTSecurity_Payload_json_union_accept_type() argument 85 switch (type) { in AzureIoTSecurity_Payload_json_union_accept_type()
|
D | flatbuffers_common_reader.h | 144 flatbuffers_union_type_t type; member 148 const flatbuffers_union_type_t *type; member 152 flatbuffers_union_type_t type; member 156 flatbuffers_union_type_t *type; member 160 { flatbuffers_mutable_union_t mu = { u__tmp.type, (flatbuffers_mutable_generic_t)u__tmp.value };\ in flatbuffers_mutable_union_cast() 164 …{ (flatbuffers_union_type_t *)uv__tmp.type, (flatbuffers_uoffset_t *)uv__tmp.value }; return muv; } in flatbuffers_mutable_union_vec_cast() 184 { T ## _union_t u__tmp = { 0, 0 }; u__tmp.type = N ## _ ## NK ## _type_get(t__tmp);\ 185 …if (u__tmp.type == 0) return u__tmp; u__tmp.value = N ## _ ## NK ## _get(t__tmp); return u__tmp; }\ 191 { return NS ## vec_len(uv__tmp.type); }\ 193 { T ## _union_t u__tmp = { 0, 0 }; size_t n__tmp = NS ## vec_len(uv__tmp.type);\ [all …]
|
D | flatbuffers_common_builder.h | 231 if (vec.type == 0) return _ret;\ 232 …_uvref.type = flatcc_builder_refmap_find(B, vec.type); _uvref.value = flatcc_builder_refmap_find(B… 233 _len = N ## _union_vec_len(vec); if (_uvref.type == 0) {\ 234 …_uvref.type = flatcc_builder_refmap_insert(B, vec.type, (flatcc_builder_create_type_vector(B, vec.… 235 if (_uvref.type == 0) return _ret; if (_uvref.value == 0) {\ 417 { NS ## ref_t *_p; TN ## _union_type_t *_pt; if (uref.type == TN ## _NONE) return 0; if (uref.value… 419 …*_pt = uref.type; if (!(_p = flatcc_builder_table_add_offset(B, ID))) return -1; *_p = uref.value;… 420 static inline int N ## _add_type(NS ## builder_t *B, TN ## _union_type_t type)\ 421 { TN ## _union_type_t *_pt; if (type == TN ## _NONE) return 0; return (_pt = (TN ## _union_type_t *… 422 sizeof(*_pt), sizeof(*_pt))) ? ((*_pt = type), 0) : -1; }\ [all …]
|
/NetX-Duo-v6.3.0/addons/azure_iot/azure_iot_security_module/iot-security-module-core/src/ |
D | collectors_info.c | 46 if (collector_internal_ptr->type >= COLLECTORS_INFO_SIZE) { in _collector_info_cb() 47 log_error("Wrong collector type=[%d]", collector_internal_ptr->type); in _collector_info_cb() 49 info[collector_internal_ptr->type].interval = collector_internal_ptr->interval; in _collector_info_cb() 51 collector_internal_ptr->type, in _collector_info_cb() 52 info[collector_internal_ptr->type].interval); in _collector_info_cb()
|
D | collector_collection.c | 119 …return collector_ptr == NULL ? false : collector_ptr->internal.type == *((collector_enum_t *)match… in _collector_collection_type_match_function() 123 …_get_collector_by_priority(collector_collection_t *collector_collection_ptr, collector_enum_t type) in collector_collection_get_collector_by_priority() argument 136 …collector_ptr = linked_list_find(collector_list, _collector_collection_type_match_function, &type); in collector_collection_get_collector_by_priority() 223 … log_error("Could not append collector type=[%d] to collector list", collector_ptr->internal.type); in collector_collection_register()
|
D | core.c | 214 component_id_t collector_id = components_manager_get_id(collector_ptr->internal.type); in _start_stop_all_collectors() 335 …t *info = components_manager_get_info(components_manager_get_id(current_collector->internal.type)); in core_collect() 356 log_debug("empty, collector type=[%d]", current_collector->internal.type); in core_collect() 359 … log_error("failed to collect, collector type=[%d]", current_collector->internal.type); in core_collect() 380 …nfo_t *info = components_manager_get_info(components_manager_get_id(collector_ptr->internal.type)); in _collector_collection_calc_nearest_collect()
|
/NetX-Duo-v6.3.0/addons/azure_iot/azure_iot_security_module/iot-security-module-core/src/model/ |
D | collector.c | 41 …ith_params(collector_internal_t *collector_internal_ptr, collector_enum_t type, collector_priority… in collector_init_with_params() argument 49 collector_internal_ptr->type = type; in collector_init_with_params() 58 asc_result_t collector_default_create(component_id_t id, collector_enum_t type, collector_priority_… in collector_default_create() argument 64 … log_error("Failed to init collector type=[%d] name=[%s]", type, components_manager_get_name(id)); in collector_default_create() 68 …result = collector_init_with_params(&collector_ptr->internal, type, priority, collect_function, in… in collector_default_create() 70 …log_error("Failed to init internal collector parameters type=[%d] name=[%s]", type, components_man… in collector_default_create()
|
/NetX-Duo-v6.3.0/samples/ |
D | demo_netx_duo_mdns.c | 191 static void register_local_service(UCHAR *instance, UCHAR *type, UCHAR *subtype, UCHAR *txt, UINT t… in register_local_service() argument 196 …status = nx_mdns_service_add(&mdns, instance, type, subtype, txt, ttl, (USHORT)priority, (USHORT)w… in register_local_service() 199 printf("Local Service Added: %s %s ", instance, type); in register_local_service() 208 static void delete_local_service(UCHAR *instance, UCHAR *type, UCHAR *subtype) in delete_local_service() argument 214 if(type) in delete_local_service() 215 printf("type %s ", type); in delete_local_service() 219 status = nx_mdns_service_delete(&mdns, instance, type, subtype); in delete_local_service() 242 static void perform_oneshot_query(UCHAR *instance, UCHAR *type, UCHAR *subtype, UINT timeout) in perform_oneshot_query() argument 249 if(type) in perform_oneshot_query() 250 printf("type %s ", type); in perform_oneshot_query() [all …]
|
/NetX-Duo-v6.3.0/addons/azure_iot/azure_iot_security_module/iot-security-module-core/deps/flatcc/src/runtime/ |
D | builder.c | 853 frame(type) = flatcc_builder_buffer; in flatcc_builder_start_buffer() 864 check(frame(type) == flatcc_builder_buffer, "expected buffer frame"); in flatcc_builder_end_buffer() 884 frame(type) = flatcc_builder_struct; in flatcc_builder_start_struct() 898 check(frame(type) == flatcc_builder_struct, "expected struct frame"); in flatcc_builder_end_struct() 933 check(frame(type) == flatcc_builder_vector, "expected vector frame"); in flatcc_builder_vector_push() 941 check(frame(type) == flatcc_builder_vector, "expected vector frame"); in flatcc_builder_append_vector() 960 check(frame(type) == flatcc_builder_offset_vector, "expected offset vector frame"); in flatcc_builder_offset_vector_push() 974 check(frame(type) == flatcc_builder_offset_vector, "expected offset vector frame"); in flatcc_builder_append_offset_vector() 983 check(frame(type) == flatcc_builder_string, "expected string frame"); in flatcc_builder_extend_string() 992 check(frame(type) == flatcc_builder_string, "expected string frame"); in flatcc_builder_append_string() [all …]
|
/NetX-Duo-v6.3.0/addons/mdns/ |
D | nxd_mdns.h | 1297 UINT _nx_mdns_service_add(NX_MDNS *mdns_ptr, UCHAR *name, UCHAR *type, UCHAR *sub_type, UCHA… 1299 UINT _nxe_mdns_service_add(NX_MDNS *mdns_ptr, UCHAR *name, UCHAR *type, UCHAR *sub_type, UCH… 1301 UINT _nx_mdns_service_delete(NX_MDNS *mdns_ptr, UCHAR *name, UCHAR *type, UCHAR *sub_type); 1302 UINT _nxe_mdns_service_delete(NX_MDNS *mdns_ptr, UCHAR *name, UCHAR *type, UCHAR *sub_type); 1308 UINT _nx_mdns_service_one_shot_query(NX_MDNS *mdns_ptr, UCHAR *name, UCHAR *type, UCHAR *sub… 1309 UINT _nxe_mdns_service_one_shot_query(NX_MDNS *mdns_ptr, UCHAR *name, UCHAR *type, UCHAR *su… 1310 UINT _nx_mdns_service_continuous_query(NX_MDNS *mdns_ptr, UCHAR *name, UCHAR *type, UCHAR *s… 1311 UINT _nxe_mdns_service_continuous_query(NX_MDNS *mdns_ptr, UCHAR *name, UCHAR *type, UCHAR *… 1312 UINT _nx_mdns_service_query_stop(NX_MDNS *mdns_ptr, UCHAR *name, UCHAR *type, UCHAR *sub_typ… 1313 UINT _nxe_mdns_service_query_stop(NX_MDNS *mdns_ptr, UCHAR *name, UCHAR *type, UCHAR *sub_ty… [all …]
|
D | nxd_mdns.c | 73 static UINT _nx_mdns_packet_create(NX_MDNS *mdns_ptr, NX_PACKET **packet_ptr, UCHAR type); 81 static UINT _nx_mdns_service_name_assemble(UCHAR *name, UCHAR *type, UCHAR *sub_type, UCHAR… 82 static UINT _nx_mdns_service_name_resolve(UCHAR *srv_name, UCHAR **name, UCHAR **type, UCHA… 96 static UINT _nx_mdns_host_name_register(NX_MDNS *mdns_ptr, UCHAR type, UINT interface_index… 97 static UINT _nx_mdns_service_interface_delete(NX_MDNS *mdns_ptr, UCHAR *name, UCHAR *type, … 99 …d(NX_MDNS *mdns_ptr, UCHAR *name, ULONG *address, UINT addr_length, UCHAR type, UINT interface_ind… 106 …ec_add(NX_MDNS *mdns_ptr, UCHAR *name, UCHAR add_a, UCHAR add_aaaa, UCHAR type, UINT interface_ind… 109 static UINT _nx_mdns_rr_parameter_set(NX_MDNS *mdns_ptr, UCHAR *name, USHORT type, ULONG tt… 128 static UINT _nx_mdns_one_shot_query(NX_MDNS *mdns_ptr, UCHAR *name, USHORT type, NX_MDNS_RR… 129 static UINT _nx_mdns_continuous_query(NX_MDNS *mdns_ptr, UCHAR *name, USHORT type, UINT int… [all …]
|
/NetX-Duo-v6.3.0/addons/nat/ |
D | nx_nat.c | 1914 UINT type; in _nx_nat_process_inbound_ICMP_packet() local 1939 type = icmp_header_ptr -> nx_icmp_header_word_0 >> 24; in _nx_nat_process_inbound_ICMP_packet() 1974 if ((type != NX_ICMP_ECHO_REPLY_TYPE) && in _nx_nat_process_inbound_ICMP_packet() 1975 (type != NX_ICMP_ECHO_REQUEST_TYPE)) in _nx_nat_process_inbound_ICMP_packet() 1990 …if ((type == NX_ICMP_ECHO_REPLY_TYPE) && (record_entry -> external_port != record_entry -> local_p… in _nx_nat_process_inbound_ICMP_packet() 2573 UINT type; in _nx_nat_process_outbound_ICMP_packet() local 2595 type = icmp_header_ptr -> nx_icmp_header_word_0 >> 24; in _nx_nat_process_outbound_ICMP_packet() 2638 …if ((type != NX_ICMP_ECHO_REPLY_TYPE) && (record_entry -> external_port != record_entry -> local_p… in _nx_nat_process_outbound_ICMP_packet() 4447 UINT type; in _nx_nat_packet_is_icmp_error_message() local 4470 type = icmp_header_ptr -> nx_icmp_header_word_0 >> 24; in _nx_nat_packet_is_icmp_error_message() [all …]
|
/NetX-Duo-v6.3.0/addons/azure_iot/azure_iot_security_module/iot-security-module-core/deps/flatcc/include/flatcc/ |
D | flatcc_builder.h | 120 flatcc_builder_utype_t type; member 125 flatcc_builder_ref_t type; member 351 uint16_t type; member 1559 const flatcc_builder_utype_t *type);
|