/NetX-Duo-v6.2.1/common/src/ |
D | nx_ip_thread_entry.c | 127 NX_IP *ip_ptr; in _nx_ip_thread_entry() local 139 NX_THREAD_EXTENSION_PTR_GET(ip_ptr, NX_IP, ip_ptr_value) in _nx_ip_thread_entry() 142 tx_mutex_get(&(ip_ptr -> nx_ip_protection), TX_WAIT_FOREVER); in _nx_ip_thread_entry() 145 ip_ptr -> nx_ip_initialize_done = NX_TRUE; in _nx_ip_thread_entry() 152 …if ((ip_ptr -> nx_ip_interface[i].nx_interface_valid) && (ip_ptr -> nx_ip_interface[i].nx_interfac… in _nx_ip_thread_entry() 157 ip_ptr -> nx_ip_interface[i].nx_interface_capability_flag = 0; in _nx_ip_thread_entry() 161 ip_ptr -> nx_ip_interface[i].nx_interface_link_up = NX_TRUE; in _nx_ip_thread_entry() 164 driver_request.nx_ip_driver_ptr = ip_ptr; in _nx_ip_thread_entry() 166 driver_request.nx_ip_driver_interface = &(ip_ptr -> nx_ip_interface[i]); in _nx_ip_thread_entry() 167 (ip_ptr -> nx_ip_interface[i].nx_interface_link_driver_entry)(&driver_request); in _nx_ip_thread_entry() [all …]
|
D | nx_ip_delete.c | 90 UINT _nx_ip_delete(NX_IP *ip_ptr) in _nx_ip_delete() argument 108 NX_TRACE_IN_LINE_INSERT(NX_TRACE_IP_DELETE, ip_ptr, 0, 0, 0, NX_TRACE_IP_EVENTS, 0, 0); in _nx_ip_delete() 111 tx_mutex_get(&(ip_ptr -> nx_ip_protection), TX_WAIT_FOREVER); in _nx_ip_delete() 114 if ((ip_ptr -> nx_ip_udp_created_sockets_count) || (ip_ptr -> nx_ip_tcp_created_sockets_count)) in _nx_ip_delete() 120 tx_mutex_put(&(ip_ptr -> nx_ip_protection)); in _nx_ip_delete() 130 if (!(ip_ptr -> nx_ip_interface[i].nx_interface_valid)) in _nx_ip_delete() 135 driver_request.nx_ip_driver_ptr = ip_ptr; in _nx_ip_delete() 137 driver_request.nx_ip_driver_interface = &(ip_ptr -> nx_ip_interface[i]); in _nx_ip_delete() 140 …NX_TRACE_IN_LINE_INSERT(NX_TRACE_INTERNAL_IO_DRIVER_LINK_DISABLE, ip_ptr, 0, 0, 0, NX_TRACE_INTERN… in _nx_ip_delete() 143 (ip_ptr -> nx_ip_interface[i].nx_interface_link_driver_entry)(&driver_request); in _nx_ip_delete() [all …]
|
D | nx_ip_create.c | 89 UINT _nx_ip_create(NX_IP *ip_ptr, CHAR *name, ULONG ip_address, ULONG network_mask, in _nx_ip_create() argument 116 memset((void *)ip_ptr, 0, sizeof(NX_IP)); in _nx_ip_create() 119 ip_ptr -> nx_ip_interface[0].nx_interface_valid = 1; in _nx_ip_create() 123 ip_ptr -> nx_ip_interface[0].nx_interface_ip_address = ip_address; in _nx_ip_create() 126 ip_ptr -> nx_ip_interface[0].nx_interface_ip_network_mask = network_mask; in _nx_ip_create() 129 ip_ptr -> nx_ip_interface[0].nx_interface_ip_network = ip_address & network_mask; in _nx_ip_create() 132 ip_ptr -> nx_ip_interface[0].nx_interface_arp_defend_timeout = 0; in _nx_ip_create() 136 ip_ptr -> nx_ip_interface[0].nx_interface_link_driver_entry = ip_link_driver; in _nx_ip_create() 140 ip_ptr -> nx_ip_interface[0].nx_interface_name = (CHAR *)"PRI"; in _nx_ip_create() 145 ip_ptr -> nx_ip_interface[i].nx_interface_index = (UCHAR)i; in _nx_ip_create() [all …]
|
D | nxd_ipv6_enable.c | 79 UINT _nxd_ipv6_enable(NX_IP *ip_ptr) in _nxd_ipv6_enable() argument 93 if (ip_ptr -> nx_ipv6_packet_receive) in _nxd_ipv6_enable() 99 NX_TRACE_IN_LINE_INSERT(NX_TRACE_IPV6_ENABLE, ip_ptr, 0, 0, 0, NX_TRACE_IP_EVENTS, 0, 0); in _nxd_ipv6_enable() 103 tx_mutex_get(&(ip_ptr -> nx_ip_protection), TX_WAIT_FOREVER); in _nxd_ipv6_enable() 109 ip_ptr -> nx_ipv6_packet_receive = _nx_ipv6_packet_receive; in _nxd_ipv6_enable() 115 _nxd_ipv6_default_router_table_init(ip_ptr); in _nxd_ipv6_enable() 118 ip_ptr -> nx_ipv6_reachable_timer = NX_REACHABLE_TIME; in _nxd_ipv6_enable() 129 ip_ptr -> nx_ipv6_retrans_timer_ticks = (NX_RETRANS_TIMER * NX_IP_FAST_TIMER_RATE) / 1000; in _nxd_ipv6_enable() 131 ip_ptr -> nx_ipv6_retrans_timer_ticks = 1; in _nxd_ipv6_enable() 135 ip_ptr -> nx_ipv6_hop_limit = 0xFF; in _nxd_ipv6_enable() [all …]
|
D | nxd_ipv6_disable.c | 79 UINT _nxd_ipv6_disable(NX_IP *ip_ptr) in _nxd_ipv6_disable() argument 93 if ((ALIGN_TYPE)ip_ptr -> nx_ipv6_packet_receive == NX_NULL) in _nxd_ipv6_disable() 99 NX_TRACE_IN_LINE_INSERT(NX_TRACE_IPV6_DISABLE, ip_ptr, 0, 0, 0, NX_TRACE_IP_EVENTS, 0, 0); in _nxd_ipv6_disable() 103 tx_mutex_get(&(ip_ptr -> nx_ip_protection), TX_WAIT_FOREVER); in _nxd_ipv6_disable() 109 ip_ptr -> nx_ipv6_packet_receive = NX_NULL; in _nxd_ipv6_disable() 115 _nxd_ipv6_default_router_table_init(ip_ptr); in _nxd_ipv6_disable() 118 ip_ptr -> nx_ipv6_reachable_timer = 0; in _nxd_ipv6_disable() 119 ip_ptr -> nx_ipv6_retrans_timer_ticks = 0; in _nxd_ipv6_disable() 135 if (ip_ptr -> nx_ip_interface[i].nx_interface_valid == NX_TRUE) in _nxd_ipv6_disable() 137 ip_ptr -> nx_ip_interface[i].nxd_interface_ipv6_address_list_head = NX_NULL; in _nxd_ipv6_disable() [all …]
|
D | nx_ip_interface_detach.c | 87 UINT _nx_ip_interface_detach(NX_IP *ip_ptr, UINT index) in _nx_ip_interface_detach() argument 105 interface_ptr = &(ip_ptr -> nx_ip_interface[index]); in _nx_ip_interface_detach() 116 tx_mutex_get(&(ip_ptr -> nx_ip_protection), TX_WAIT_FOREVER); in _nx_ip_interface_detach() 119 socket_ptr = ip_ptr -> nx_ip_tcp_created_sockets_ptr; in _nx_ip_interface_detach() 132 } while (socket_ptr != ip_ptr -> nx_ip_tcp_created_sockets_ptr); in _nx_ip_interface_detach() 136 tx_mutex_put(&(ip_ptr -> nx_ip_protection)); in _nx_ip_interface_detach() 140 _nx_arp_interface_entries_delete(ip_ptr, index); in _nx_ip_interface_detach() 145 _nx_nd_cache_interface_entries_delete(ip_ptr, index); in _nx_ip_interface_detach() 149 tx_mutex_get(&(ip_ptr -> nx_ip_protection), TX_WAIT_FOREVER); in _nx_ip_interface_detach() 154 for (i = 0; i < ip_ptr -> nx_ip_routing_table_entry_count; i++) in _nx_ip_interface_detach() [all …]
|
D | nx_ip_static_route_add.c | 81 UINT _nx_ip_static_route_add(NX_IP *ip_ptr, ULONG network_address, in _nx_ip_static_route_add() argument 89 …NX_TRACE_IN_LINE_INSERT(NX_TRACE_IP_STATIC_ROUTE_ADD, ip_ptr, network_address, net_mask, next_hop,… in _nx_ip_static_route_add() 94 tx_mutex_get(&(ip_ptr -> nx_ip_protection), TX_WAIT_FOREVER); in _nx_ip_static_route_add() 100 if (ip_ptr -> nx_ip_interface[i].nx_interface_valid && in _nx_ip_static_route_add() 101 …((next_hop & (ip_ptr -> nx_ip_interface[i].nx_interface_ip_network_mask)) == ip_ptr -> nx_ip_inter… in _nx_ip_static_route_add() 104 nx_ip_interface = &(ip_ptr -> nx_ip_interface[i]); in _nx_ip_static_route_add() 116 tx_mutex_put(&(ip_ptr -> nx_ip_protection)); in _nx_ip_static_route_add() 125 for (i = 0; i < (INT)ip_ptr -> nx_ip_routing_table_entry_count; i++) in _nx_ip_static_route_add() 128 if (ip_ptr -> nx_ip_routing_table[i].nx_ip_routing_dest_ip == network_address && in _nx_ip_static_route_add() 129 ip_ptr -> nx_ip_routing_table[i].nx_ip_routing_net_mask == net_mask) in _nx_ip_static_route_add() [all …]
|
D | nx_link.c | 74 UINT nx_link_vlan_set(NX_IP *ip_ptr, UINT interface_index, UINT vlan_tag) in nx_link_vlan_set() argument 78 if ((ip_ptr == NX_NULL) || (ip_ptr -> nx_ip_id != NX_IP_ID)) in nx_link_vlan_set() 89 tx_mutex_get(&(ip_ptr -> nx_ip_protection), TX_WAIT_FOREVER); in nx_link_vlan_set() 91 ip_ptr -> nx_ip_interface[interface_index].nx_interface_vlan_tag = (USHORT)(vlan_tag & 0xFFFF); in nx_link_vlan_set() 92 ip_ptr -> nx_ip_interface[interface_index].nx_interface_vlan_valid = NX_TRUE; in nx_link_vlan_set() 93 tx_mutex_put(&(ip_ptr -> nx_ip_protection)); in nx_link_vlan_set() 143 UINT nx_link_vlan_get(NX_IP *ip_ptr, UINT interface_index, USHORT *vlan_tag) in nx_link_vlan_get() argument 147 if ((ip_ptr == NX_NULL) || (ip_ptr -> nx_ip_id != NX_IP_ID) || (vlan_tag == NX_NULL)) in nx_link_vlan_get() 158 tx_mutex_get(&(ip_ptr -> nx_ip_protection), TX_WAIT_FOREVER); in nx_link_vlan_get() 160 if (ip_ptr -> nx_ip_interface[interface_index].nx_interface_vlan_valid) in nx_link_vlan_get() [all …]
|
D | nx_ipv4_packet_receive.c | 87 VOID _nx_ipv4_packet_receive(NX_IP *ip_ptr, NX_PACKET *packet_ptr) in _nx_ipv4_packet_receive() argument 127 …NX_TRACE_IN_LINE_INSERT(NX_TRACE_INTERNAL_IP_RECEIVE, ip_ptr, ip_header_ptr -> nx_ip_header_source… in _nx_ipv4_packet_receive() 154 ip_ptr -> nx_ip_invalid_packets++; in _nx_ipv4_packet_receive() 157 ip_ptr -> nx_ip_receive_packets_dropped++; in _nx_ipv4_packet_receive() 274 ip_ptr -> nx_ip_invalid_packets++; in _nx_ipv4_packet_receive() 277 ip_ptr -> nx_ip_receive_packets_dropped++; in _nx_ipv4_packet_receive() 314 ip_ptr -> nx_ip_invalid_packets++; in _nx_ipv4_packet_receive() 317 ip_ptr -> nx_ip_receive_checksum_errors++; in _nx_ipv4_packet_receive() 320 ip_ptr -> nx_ip_receive_packets_dropped++; in _nx_ipv4_packet_receive() 356 ip_ptr -> nx_ip_invalid_receive_address++; in _nx_ipv4_packet_receive() [all …]
|
D | nx_ip_static_route_delete.c | 82 UINT _nx_ip_static_route_delete(NX_IP *ip_ptr, ULONG network_address, ULONG net_mask) in _nx_ip_static_route_delete() argument 94 …NX_TRACE_IN_LINE_INSERT(NX_TRACE_IP_STATIC_ROUTE_DELETE, ip_ptr, network_address, net_mask, 0, NX_… in _nx_ip_static_route_delete() 99 tx_mutex_get(&(ip_ptr -> nx_ip_protection), TX_WAIT_FOREVER); in _nx_ip_static_route_delete() 102 if (ip_ptr -> nx_ip_routing_table_entry_count == 0) in _nx_ip_static_route_delete() 106 tx_mutex_put(&(ip_ptr -> nx_ip_protection)); in _nx_ip_static_route_delete() 111 for (i = 0; i < ip_ptr -> nx_ip_routing_table_entry_count; i++) in _nx_ip_static_route_delete() 114 if (ip_ptr -> nx_ip_routing_table[i].nx_ip_routing_dest_ip == network_address && in _nx_ip_static_route_delete() 115 ip_ptr -> nx_ip_routing_table[i].nx_ip_routing_net_mask == net_mask) in _nx_ip_static_route_delete() 125 for (j = i; j < ip_ptr -> nx_ip_routing_table_entry_count; j++) in _nx_ip_static_route_delete() 127 …ip_ptr -> nx_ip_routing_table[j].nx_ip_routing_dest_ip = ip_ptr -> nx_ip_routing_table[j + 1].nx_i… in _nx_ip_static_route_delete() [all …]
|
D | nxd_ipv6_default_router_table_init.c | 75 VOID _nxd_ipv6_default_router_table_init(NX_IP *ip_ptr) in _nxd_ipv6_default_router_table_init() argument 84 ip_ptr -> nx_ipv6_default_router_table[i].nx_ipv6_default_router_entry_flag = 0; in _nxd_ipv6_default_router_table_init() 85 ip_ptr -> nx_ipv6_default_router_table[i].nx_ipv6_default_router_entry_life_time = 0; in _nxd_ipv6_default_router_table_init() 86 …ip_ptr -> nx_ipv6_default_router_table[i].nx_ipv6_default_router_entry_neighbor_cache_ptr = NX_NUL… in _nxd_ipv6_default_router_table_init() 90 ip_ptr -> nx_ipv6_default_router_table_size = 0; in _nxd_ipv6_default_router_table_init() 94 ip_ptr -> nx_ipv6_default_router_table_round_robin_index = 0; in _nxd_ipv6_default_router_table_init() 97 ip_ptr -> nx_ipv6_prefix_list_table[0].nx_ipv6_prefix_entry_prev = NX_NULL; in _nxd_ipv6_default_router_table_init() 98 …ip_ptr -> nx_ipv6_prefix_list_table[0].nx_ipv6_prefix_entry_next = &ip_ptr -> nx_ipv6_prefix_list_… in _nxd_ipv6_default_router_table_init() 104 …ip_ptr -> nx_ipv6_prefix_list_table[i].nx_ipv6_prefix_entry_prev = &ip_ptr -> nx_ipv6_prefix_list_… in _nxd_ipv6_default_router_table_init() 105 …ip_ptr -> nx_ipv6_prefix_list_table[i].nx_ipv6_prefix_entry_next = &ip_ptr -> nx_ipv6_prefix_list_… in _nxd_ipv6_default_router_table_init() [all …]
|
D | nx_igmp_multicast_interface_leave_internal.c | 78 UINT _nx_igmp_multicast_interface_leave_internal(NX_IP *ip_ptr, ULONG group_address, UINT interfac… in _nx_igmp_multicast_interface_leave_internal() argument 87 …NX_TRACE_IN_LINE_INSERT(NX_TRACE_IGMP_MULTICAST_LEAVE, ip_ptr, group_address, 0, 0, NX_TRACE_IGMP_… in _nx_igmp_multicast_interface_leave_internal() 90 tx_mutex_get(&(ip_ptr -> nx_ip_protection), TX_WAIT_FOREVER); in _nx_igmp_multicast_interface_leave_internal() 92 nx_interface = &ip_ptr -> nx_ip_interface[interface_index]; in _nx_igmp_multicast_interface_leave_internal() 100 if ((ip_ptr -> nx_ipv4_multicast_entry[i].nx_ipv4_multicast_join_list == group_address) && in _nx_igmp_multicast_interface_leave_internal() 101 … (ip_ptr -> nx_ipv4_multicast_entry[i].nx_ipv4_multicast_join_interface_list == nx_interface)) in _nx_igmp_multicast_interface_leave_internal() 107 ip_ptr -> nx_ipv4_multicast_entry[i].nx_ipv4_multicast_join_count--; in _nx_igmp_multicast_interface_leave_internal() 110 if (ip_ptr -> nx_ipv4_multicast_entry[i].nx_ipv4_multicast_join_count == 0) in _nx_igmp_multicast_interface_leave_internal() 114 ip_ptr -> nx_ipv4_multicast_entry[i].nx_ipv4_multicast_join_list = 0; in _nx_igmp_multicast_interface_leave_internal() 117 driver_request.nx_ip_driver_ptr = ip_ptr; in _nx_igmp_multicast_interface_leave_internal() [all …]
|
D | nx_tcp_server_socket_listen.c | 81 UINT _nx_tcp_server_socket_listen(NX_IP *ip_ptr, UINT port, NX_TCP_SOCKET *socket_ptr, UINT listen… in _nx_tcp_server_socket_listen() argument 92 …NX_TRACE_IN_LINE_INSERT(NX_TRACE_TCP_SERVER_SOCKET_LISTEN, ip_ptr, port, socket_ptr, listen_queue_… in _nx_tcp_server_socket_listen() 95 tx_mutex_get(&(ip_ptr -> nx_ip_protection), TX_WAIT_FOREVER); in _nx_tcp_server_socket_listen() 102 tx_mutex_put(&(ip_ptr -> nx_ip_protection)); in _nx_tcp_server_socket_listen() 115 tx_mutex_put(&(ip_ptr -> nx_ip_protection)); in _nx_tcp_server_socket_listen() 126 listen_ptr = ip_ptr -> nx_ip_tcp_active_listen_requests; in _nx_tcp_server_socket_listen() 141 tx_mutex_put(&(ip_ptr -> nx_ip_protection)); in _nx_tcp_server_socket_listen() 149 } while (listen_ptr != ip_ptr -> nx_ip_tcp_active_listen_requests); in _nx_tcp_server_socket_listen() 154 if (ip_ptr -> nx_ip_nat_port_verify) in _nx_tcp_server_socket_listen() 158 bound = (ip_ptr -> nx_ip_nat_port_verify)(ip_ptr, NX_PROTOCOL_TCP, port); in _nx_tcp_server_socket_listen() [all …]
|
D | nx_igmp_multicast_interface_join_internal.c | 76 UINT _nx_igmp_multicast_interface_join_internal(NX_IP *ip_ptr, ULONG group_address, in _nx_igmp_multicast_interface_join_internal() argument 86 …NX_TRACE_IN_LINE_INSERT(NX_TRACE_IGMP_MULTICAST_JOIN, ip_ptr, group_address, interface_index, 0, N… in _nx_igmp_multicast_interface_join_internal() 89 tx_mutex_get(&(ip_ptr -> nx_ip_protection), TX_WAIT_FOREVER); in _nx_igmp_multicast_interface_join_internal() 91 nx_interface = &ip_ptr -> nx_ip_interface[interface_index]; in _nx_igmp_multicast_interface_join_internal() 100 if ((ip_ptr -> nx_ipv4_multicast_entry[i].nx_ipv4_multicast_join_list == group_address) && in _nx_igmp_multicast_interface_join_internal() 101 … (ip_ptr -> nx_ipv4_multicast_entry[i].nx_ipv4_multicast_join_interface_list == nx_interface)) in _nx_igmp_multicast_interface_join_internal() 106 ip_ptr -> nx_ipv4_multicast_entry[i].nx_ipv4_multicast_join_count++; in _nx_igmp_multicast_interface_join_internal() 109 tx_mutex_put(&(ip_ptr -> nx_ip_protection)); in _nx_igmp_multicast_interface_join_internal() 116 if ((ip_ptr -> nx_ipv4_multicast_entry[i].nx_ipv4_multicast_join_list == 0) && in _nx_igmp_multicast_interface_join_internal() 131 tx_mutex_put(&(ip_ptr -> nx_ip_protection)); in _nx_igmp_multicast_interface_join_internal() [all …]
|
D | nx_ip_interface_status_check.c | 86 UINT _nx_ip_interface_status_check(NX_IP *ip_ptr, UINT interface_index, ULONG needed_status, in _nx_ip_interface_status_check() argument 101 …NX_TRACE_IN_LINE_INSERT(NX_TRACE_IP_STATUS_CHECK, ip_ptr, needed_status, 0, wait_option, NX_TRACE_… in _nx_ip_interface_status_check() 116 if (ip_ptr -> nx_ip_initialize_done) in _nx_ip_interface_status_check() 129 if (ip_ptr -> nx_ip_interface[interface_index].nx_interface_ip_address) in _nx_ip_interface_status_check() 141 if (ip_ptr -> nx_ip_arp_periodic_update) in _nx_ip_interface_status_check() 154 if (ip_ptr -> nx_ip_interface[interface_index].nx_interface_ip_address) in _nx_ip_interface_status_check() 166 if (ip_ptr -> nx_ip_igmp_packet_receive) in _nx_ip_interface_status_check() 178 tx_mutex_get(&(ip_ptr -> nx_ip_protection), TX_WAIT_FOREVER); in _nx_ip_interface_status_check() 181 driver_request.nx_ip_driver_ptr = ip_ptr; in _nx_ip_interface_status_check() 184 driver_request.nx_ip_driver_interface = &(ip_ptr -> nx_ip_interface[interface_index]); in _nx_ip_interface_status_check() [all …]
|
D | nx_ip_dispatch_process.c | 106 UINT _nx_ip_dispatch_process(NX_IP *ip_ptr, NX_PACKET *packet_ptr, UINT protocol) in _nx_ip_dispatch_process() argument 165 NX_ICMPV6_SEND_PARAMETER_PROBLEM(ip_ptr, packet_ptr, 1, nx_packet_option_offset); in _nx_ip_dispatch_process() 175 drop_packet = _nx_ipv6_process_hop_by_hop_option(ip_ptr, packet_ptr); in _nx_ip_dispatch_process() 221 drop_packet = _nx_ipv6_process_hop_by_hop_option(ip_ptr, packet_ptr); in _nx_ip_dispatch_process() 228 NX_ICMPV6_SEND_PARAMETER_PROBLEM(ip_ptr, packet_ptr, 1, nx_packet_option_offset); in _nx_ip_dispatch_process() 240 NX_ICMPV6_SEND_PARAMETER_PROBLEM(ip_ptr, packet_ptr, 1, nx_packet_option_offset); in _nx_ip_dispatch_process() 250 drop_packet = _nx_ipv6_process_routing_option(ip_ptr, packet_ptr); in _nx_ip_dispatch_process() 262 NX_ICMPV6_SEND_PARAMETER_PROBLEM(ip_ptr, packet_ptr, 1, nx_packet_option_offset); in _nx_ip_dispatch_process() 278 drop_packet = _nx_ipv6_process_fragment_option(ip_ptr, packet_ptr); in _nx_ip_dispatch_process() 314 if (ip_ptr -> nx_ip_ipsec_authentication_header_receive == NX_NULL) in _nx_ip_dispatch_process() [all …]
|
D | nx_nd_cache_fast_periodic_update.c | 88 VOID _nx_nd_cache_fast_periodic_update(NX_IP *ip_ptr) in _nx_nd_cache_fast_periodic_update() argument 98 if (ip_ptr -> nx_ipv6_nd_cache[i].nx_nd_cache_nd_status == ND_CACHE_STATE_INVALID) in _nx_nd_cache_fast_periodic_update() 104 if ((ip_ptr -> nx_ipv6_nd_cache[i].nx_nd_cache_nd_status != ND_CACHE_STATE_PROBE) && in _nx_nd_cache_fast_periodic_update() 105 (ip_ptr -> nx_ipv6_nd_cache[i].nx_nd_cache_nd_status != ND_CACHE_STATE_INCOMPLETE)) in _nx_nd_cache_fast_periodic_update() 115 if (ip_ptr -> nx_ipv6_nd_cache[i].nx_nd_cache_timer_tick == 0) in _nx_nd_cache_fast_periodic_update() 119 if (ip_ptr -> nx_ipv6_nd_cache[i].nx_nd_cache_num_solicit == 0) in _nx_nd_cache_fast_periodic_update() 124 _nx_nd_cache_delete_internal(ip_ptr, &ip_ptr -> nx_ipv6_nd_cache[i]); in _nx_nd_cache_fast_periodic_update() 131 … uniCastNS = (ip_ptr -> nx_ipv6_nd_cache[i].nx_nd_cache_nd_status == ND_CACHE_STATE_PROBE); in _nx_nd_cache_fast_periodic_update() 134 _nx_icmpv6_send_ns(ip_ptr, ip_ptr -> nx_ipv6_nd_cache[i].nx_nd_cache_dest_ip, in _nx_nd_cache_fast_periodic_update() 135 …1, ip_ptr -> nx_ipv6_nd_cache[i].nx_nd_cache_outgoing_address, uniCastNS, &ip_ptr -> nx_ipv6_nd_ca… in _nx_nd_cache_fast_periodic_update() [all …]
|
D | nxd_ipv6_address_set.c | 91 UINT _nxd_ipv6_address_set(NX_IP *ip_ptr, UINT interface_index, NXD_ADDRESS *ip_address, ULONG pre… in _nxd_ipv6_address_set() argument 107 tx_mutex_get(&(ip_ptr -> nx_ip_protection), TX_WAIT_FOREVER); in _nxd_ipv6_address_set() 115 if ((ip_ptr -> nx_ipv6_address[i].nxd_ipv6_address_valid) && in _nxd_ipv6_address_set() 116 … (ip_ptr -> nx_ipv6_address[i].nxd_ipv6_address[0] == ip_address -> nxd_ip_address.v6[0]) && in _nxd_ipv6_address_set() 117 … (ip_ptr -> nx_ipv6_address[i].nxd_ipv6_address[1] == ip_address -> nxd_ip_address.v6[1]) && in _nxd_ipv6_address_set() 118 … (ip_ptr -> nx_ipv6_address[i].nxd_ipv6_address[2] == ip_address -> nxd_ip_address.v6[2]) && in _nxd_ipv6_address_set() 119 … (ip_ptr -> nx_ipv6_address[i].nxd_ipv6_address[3] == ip_address -> nxd_ip_address.v6[3])) in _nxd_ipv6_address_set() 123 tx_mutex_put(&(ip_ptr -> nx_ip_protection)); in _nxd_ipv6_address_set() 133 if (!ip_ptr -> nx_ipv6_address[i].nxd_ipv6_address_valid) in _nxd_ipv6_address_set() 144 tx_mutex_put(&(ip_ptr -> nx_ip_protection)); in _nxd_ipv6_address_set() [all …]
|
D | nx_ip_info_get.c | 92 UINT _nx_ip_info_get(NX_IP *ip_ptr, ULONG *ip_total_packets_sent, ULONG *ip_total_bytes_sent, in _nx_ip_info_get() argument 100 …INE_INSERT(NX_TRACE_IP_INFO_GET, ip_ptr, ip_ptr -> nx_ip_total_bytes_sent, ip_ptr -> nx_ip_total_b… in _nx_ip_info_get() 103 tx_mutex_get(&(ip_ptr -> nx_ip_protection), TX_WAIT_FOREVER); in _nx_ip_info_get() 110 *ip_total_packets_sent = ip_ptr -> nx_ip_total_packets_sent; in _nx_ip_info_get() 118 *ip_total_bytes_sent = ip_ptr -> nx_ip_total_bytes_sent; in _nx_ip_info_get() 126 *ip_total_packets_received = ip_ptr -> nx_ip_total_packets_received; in _nx_ip_info_get() 134 *ip_total_bytes_received = ip_ptr -> nx_ip_total_bytes_received; in _nx_ip_info_get() 142 *ip_invalid_packets = ip_ptr -> nx_ip_invalid_packets; in _nx_ip_info_get() 150 *ip_receive_packets_dropped = ip_ptr -> nx_ip_receive_packets_dropped; in _nx_ip_info_get() 158 *ip_receive_checksum_errors = ip_ptr -> nx_ip_receive_checksum_errors; in _nx_ip_info_get() [all …]
|
D | nx_icmpv6_dest_table_add.c | 90 UINT _nx_icmpv6_dest_table_add(NX_IP *ip_ptr, ULONG *destination_address, in _nx_icmpv6_dest_table_add() argument 102 …status = _nx_icmpv6_dest_table_find(ip_ptr, destination_address, dest_entry_ptr, path_mtu, mtu_tim… in _nx_icmpv6_dest_table_add() 128 ip_ptr -> nx_ipv6_destination_table_size--; in _nx_icmpv6_dest_table_add() 133 table_size = ip_ptr -> nx_ipv6_destination_table_size; in _nx_icmpv6_dest_table_add() 149 if (!ip_ptr -> nx_ipv6_destination_table[i].nx_ipv6_destination_entry_valid) in _nx_icmpv6_dest_table_add() 168 memset(&ip_ptr -> nx_ipv6_destination_table[i], 0, sizeof(NX_IPV6_DESTINATION_ENTRY)); in _nx_icmpv6_dest_table_add() 171 …COPY_IPV6_ADDRESS(destination_address, ip_ptr -> nx_ipv6_destination_table[i].nx_ipv6_destination_… in _nx_icmpv6_dest_table_add() 174 …COPY_IPV6_ADDRESS(next_hop, ip_ptr -> nx_ipv6_destination_table[i].nx_ipv6_destination_entry_next_… in _nx_icmpv6_dest_table_add() 178 …status = _nx_nd_cache_find_entry(ip_ptr, next_hop, &ip_ptr -> nx_ipv6_destination_table[i].nx_ipv6… in _nx_icmpv6_dest_table_add() 183 …status = _nx_nd_cache_add_entry(ip_ptr, next_hop, ipv6_address, &ip_ptr -> nx_ipv6_destination_tab… in _nx_icmpv6_dest_table_add() [all …]
|
/NetX-Duo-v6.2.1/common/inc/ |
D | nx_ip.h | 109 UINT _nx_ip_auxiliary_packet_pool_set(NX_IP *ip_ptr, NX_PACKET_POOL *auxiliary_pool); 112 UINT _nx_ip_interface_address_mapping_configure(NX_IP *ip_ptr, UINT interface_index, UINT mapping… 113 UINT _nx_ip_interface_capability_get(NX_IP *ip_ptr, UINT interface_index, ULONG *interface_capabi… 114 UINT _nx_ip_interface_capability_set(NX_IP *ip_ptr, UINT interface_index, ULONG interface_capabil… 115 UINT _nx_ip_interface_info_get(NX_IP *ip_ptr, UINT interface_index, CHAR **interface_name, ULONG … 118 UINT _nx_ip_interface_mtu_set(NX_IP *ip_ptr, UINT interface_index, ULONG mtu_size); 119 UINT _nx_ip_interface_physical_address_get(NX_IP *ip_ptr, UINT interface_index, ULONG *physical_msw… 120 UINT _nx_ip_interface_physical_address_set(NX_IP *ip_ptr, UINT interface_index, ULONG physical_msw,… 121 UINT _nx_ip_interface_status_check(NX_IP *ip_ptr, UINT interface_index, ULONG needed_status, ULONG … 123 UINT _nx_ip_create(NX_IP *ip_ptr, CHAR *name, ULONG ip_address, ULONG network_mask, [all …]
|
D | nx_arp.h | 95 UINT _nx_arp_dynamic_entry_delete(NX_IP *ip_ptr, NX_ARP *arp_ptr); 96 VOID _nx_arp_static_entry_delete_internal(NX_IP *ip_ptr, NX_ARP *arp_entry); 97 VOID _nx_arp_queue_process(NX_IP *ip_ptr); 98 VOID _nx_arp_queue_send(NX_IP *ip_ptr, NX_ARP *arp_ptr); 99 UINT _nx_arp_entry_allocate(NX_IP *ip_ptr, NX_ARP **arp_ptr, UINT is_static); 101 VOID _nx_arp_packet_send(NX_IP *ip_ptr, ULONG destination_ip, NX_INTERFACE *nx_interface); 102 VOID _nx_arp_packet_receive(NX_IP *ip_ptr, NX_PACKET *packet_ptr); 103 VOID _nx_arp_packet_deferred_receive(NX_IP *ip_ptr, NX_PACKET *packet_ptr); 104 VOID _nx_arp_periodic_update(NX_IP *ip_ptr); 105 UINT _nx_arp_interface_entries_delete(NX_IP *ip_ptr, UINT index); [all …]
|
D | nx_ipv4.h | 158 VOID _nx_ip_forward_packet_process(NX_IP *ip_ptr, NX_PACKET *packet_ptr); 159 VOID _nx_ip_fragment_forward_packet(NX_IP *ip_ptr, NX_PACKET *packet_ptr, ULONG destination_ip, UL… 160 void _nx_ip_packet_send(NX_IP *ip_ptr, NX_PACKET *packet_ptr, ULONG destination_ip, ULONG type_of_… 161 UINT _nx_ip_header_add(NX_IP *ip_ptr, NX_PACKET *packet_ptr, ULONG source_ip, ULONG destination_ip, 163 VOID _nx_ip_driver_packet_send(NX_IP *ip_ptr, NX_PACKET *packet_ptr, ULONG destination_ip, ULONG f… 164 ULONG _nx_ip_route_find(NX_IP *ip_ptr, ULONG destination_address, NX_INTERFACE **nx_ip_interface, U… 165 VOID _nx_ipv4_packet_receive(NX_IP *ip_ptr, NX_PACKET *packet_ptr); 166 UINT _nx_ipv4_option_process(NX_IP *ip_ptr, NX_PACKET *packet_ptr); 171 UINT _nx_ip_address_change_notify(NX_IP *ip_ptr, VOID (*ip_address_change_notify)(NX_IP *, VOID *),… 172 UINT _nx_ip_address_get(NX_IP *ip_ptr, ULONG *ip_address, ULONG *network_mask); [all …]
|
D | nx_igmp.h | 170 UINT _nx_igmp_multicast_interface_join_internal(NX_IP *ip_ptr, ULONG group_address, UINT interface_… 171 UINT _nx_igmp_multicast_interface_leave_internal(NX_IP *ip_ptr, ULONG group_address, UINT interface… 172 UINT _nx_igmp_interface_report_send(NX_IP *ip_ptr, ULONG group_address, UINT interface_index, UINT … 173 VOID _nx_igmp_periodic_processing(NX_IP *ip_ptr); 174 VOID _nx_igmp_packet_process(NX_IP *ip_ptr, NX_PACKET *packet_ptr); 175 VOID _nx_igmp_packet_receive(NX_IP *ip_ptr, NX_PACKET *packet_ptr); 176 VOID _nx_igmp_queue_process(NX_IP *ip_ptr); 177 UINT _nx_igmp_multicast_check(NX_IP *ip_ptr, ULONG group_address, NX_INTERFACE *nx_interface); 183 UINT _nx_igmp_enable(NX_IP *ip_ptr); 184 UINT _nx_igmp_info_get(NX_IP *ip_ptr, ULONG *igmp_reports_sent, ULONG *igmp_queries_received, [all …]
|
D | nx_ipv6.h | 229 UINT _nxd_ipv6_default_router_add_internal(NX_IP *ip_ptr, ULONG *router_addr, ULONG router_lifetim… 230 VOID _nxd_ipv6_default_router_table_init(NX_IP *ip_ptr); 233 UINT _nx_ipv6_header_add(NX_IP *ip_ptr, NX_PACKET **packet_pptr, 239 UINT _nx_ipv6_option_error(NX_IP *ip_ptr, NX_PACKET *packet_ptr, UCHAR option_type, UINT offset); 240 VOID _nx_ipv6_packet_receive(NX_IP *ip_ptr, NX_PACKET *packet_ptr); 241 VOID _nx_ipv6_packet_send(NX_IP *ip_ptr, NX_PACKET *packet_ptr, ULONG protocol, ULONG payload_size… 242 UINT _nx_ipv6_prefix_list_add_entry(NX_IP *ip_ptr, ULONG *prefix, ULONG prefix_length, ULONG valid… 243 VOID _nx_ipv6_prefix_list_delete(NX_IP *ip_ptr, ULONG *prefix, INT prefix_length); 244 VOID _nx_ipv6_prefix_list_delete_entry(NX_IP *ip_ptr, NX_IPV6_PREFIX_ENTRY *entry); 245 UINT _nx_ipv6_process_hop_by_hop_option(NX_IP *ip_ptr, NX_PACKET *packet_ptr); [all …]
|