/NetX-Duo-v6.3.0/common/src/ |
D | nx_ip_thread_entry.c | 128 NX_IP *ip_ptr; in _nx_ip_thread_entry() local 140 NX_THREAD_EXTENSION_PTR_GET(ip_ptr, NX_IP, ip_ptr_value) in _nx_ip_thread_entry() 143 tx_mutex_get(&(ip_ptr -> nx_ip_protection), TX_WAIT_FOREVER); in _nx_ip_thread_entry() 146 ip_ptr -> nx_ip_initialize_done = NX_TRUE; in _nx_ip_thread_entry() 153 …if ((ip_ptr -> nx_ip_interface[i].nx_interface_valid) && (ip_ptr -> nx_ip_interface[i].nx_interfac… in _nx_ip_thread_entry() 158 ip_ptr -> nx_ip_interface[i].nx_interface_capability_flag = 0; in _nx_ip_thread_entry() 162 ip_ptr -> nx_ip_interface[i].nx_interface_link_up = NX_TRUE; in _nx_ip_thread_entry() 165 driver_request.nx_ip_driver_ptr = ip_ptr; in _nx_ip_thread_entry() 167 driver_request.nx_ip_driver_interface = &(ip_ptr -> nx_ip_interface[i]); in _nx_ip_thread_entry() 168 (ip_ptr -> nx_ip_interface[i].nx_interface_link_driver_entry)(&driver_request); in _nx_ip_thread_entry() [all …]
|
D | nx_ip_delete.c | 91 UINT _nx_ip_delete(NX_IP *ip_ptr) in _nx_ip_delete() argument 109 NX_TRACE_IN_LINE_INSERT(NX_TRACE_IP_DELETE, ip_ptr, 0, 0, 0, NX_TRACE_IP_EVENTS, 0, 0); in _nx_ip_delete() 112 tx_mutex_get(&(ip_ptr -> nx_ip_protection), TX_WAIT_FOREVER); in _nx_ip_delete() 115 if ((ip_ptr -> nx_ip_udp_created_sockets_count) || (ip_ptr -> nx_ip_tcp_created_sockets_count)) in _nx_ip_delete() 121 tx_mutex_put(&(ip_ptr -> nx_ip_protection)); in _nx_ip_delete() 131 if (!(ip_ptr -> nx_ip_interface[i].nx_interface_valid)) in _nx_ip_delete() 136 driver_request.nx_ip_driver_ptr = ip_ptr; in _nx_ip_delete() 138 driver_request.nx_ip_driver_interface = &(ip_ptr -> nx_ip_interface[i]); in _nx_ip_delete() 141 …NX_TRACE_IN_LINE_INSERT(NX_TRACE_INTERNAL_IO_DRIVER_LINK_DISABLE, ip_ptr, 0, 0, 0, NX_TRACE_INTERN… in _nx_ip_delete() 144 (ip_ptr -> nx_ip_interface[i].nx_interface_link_driver_entry)(&driver_request); in _nx_ip_delete() [all …]
|
D | nxd_ipv6_enable.c | 80 UINT _nxd_ipv6_enable(NX_IP *ip_ptr) in _nxd_ipv6_enable() argument 94 if (ip_ptr -> nx_ipv6_packet_receive) in _nxd_ipv6_enable() 100 NX_TRACE_IN_LINE_INSERT(NX_TRACE_IPV6_ENABLE, ip_ptr, 0, 0, 0, NX_TRACE_IP_EVENTS, 0, 0); in _nxd_ipv6_enable() 104 tx_mutex_get(&(ip_ptr -> nx_ip_protection), TX_WAIT_FOREVER); in _nxd_ipv6_enable() 110 ip_ptr -> nx_ipv6_packet_receive = _nx_ipv6_packet_receive; in _nxd_ipv6_enable() 116 _nxd_ipv6_default_router_table_init(ip_ptr); in _nxd_ipv6_enable() 119 ip_ptr -> nx_ipv6_reachable_timer = NX_REACHABLE_TIME; in _nxd_ipv6_enable() 130 ip_ptr -> nx_ipv6_retrans_timer_ticks = (NX_RETRANS_TIMER * NX_IP_FAST_TIMER_RATE) / 1000; in _nxd_ipv6_enable() 132 ip_ptr -> nx_ipv6_retrans_timer_ticks = 1; in _nxd_ipv6_enable() 136 ip_ptr -> nx_ipv6_hop_limit = 0xFF; in _nxd_ipv6_enable() [all …]
|
D | nxd_ipv6_disable.c | 80 UINT _nxd_ipv6_disable(NX_IP *ip_ptr) in _nxd_ipv6_disable() argument 94 if ((ALIGN_TYPE)ip_ptr -> nx_ipv6_packet_receive == NX_NULL) in _nxd_ipv6_disable() 100 NX_TRACE_IN_LINE_INSERT(NX_TRACE_IPV6_DISABLE, ip_ptr, 0, 0, 0, NX_TRACE_IP_EVENTS, 0, 0); in _nxd_ipv6_disable() 104 tx_mutex_get(&(ip_ptr -> nx_ip_protection), TX_WAIT_FOREVER); in _nxd_ipv6_disable() 110 ip_ptr -> nx_ipv6_packet_receive = NX_NULL; in _nxd_ipv6_disable() 116 _nxd_ipv6_default_router_table_init(ip_ptr); in _nxd_ipv6_disable() 119 ip_ptr -> nx_ipv6_reachable_timer = 0; in _nxd_ipv6_disable() 120 ip_ptr -> nx_ipv6_retrans_timer_ticks = 0; in _nxd_ipv6_disable() 136 if (ip_ptr -> nx_ip_interface[i].nx_interface_valid == NX_TRUE) in _nxd_ipv6_disable() 138 ip_ptr -> nx_ip_interface[i].nxd_interface_ipv6_address_list_head = NX_NULL; in _nxd_ipv6_disable() [all …]
|
D | nx_ip_create.c | 90 UINT _nx_ip_create(NX_IP *ip_ptr, CHAR *name, ULONG ip_address, ULONG network_mask, in _nx_ip_create() argument 117 memset((void *)ip_ptr, 0, sizeof(NX_IP)); in _nx_ip_create() 120 ip_ptr -> nx_ip_interface[0].nx_interface_valid = 1; in _nx_ip_create() 124 ip_ptr -> nx_ip_interface[0].nx_interface_ip_address = ip_address; in _nx_ip_create() 127 ip_ptr -> nx_ip_interface[0].nx_interface_ip_network_mask = network_mask; in _nx_ip_create() 130 ip_ptr -> nx_ip_interface[0].nx_interface_ip_network = ip_address & network_mask; in _nx_ip_create() 133 ip_ptr -> nx_ip_interface[0].nx_interface_arp_defend_timeout = 0; in _nx_ip_create() 137 ip_ptr -> nx_ip_interface[0].nx_interface_link_driver_entry = ip_link_driver; in _nx_ip_create() 141 ip_ptr -> nx_ip_interface[0].nx_interface_name = (CHAR *)"PRI"; in _nx_ip_create() 146 ip_ptr -> nx_ip_interface[i].nx_interface_index = (UCHAR)i; in _nx_ip_create() [all …]
|
D | nx_ip_static_route_add.c | 82 UINT _nx_ip_static_route_add(NX_IP *ip_ptr, ULONG network_address, in _nx_ip_static_route_add() argument 90 …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() 95 tx_mutex_get(&(ip_ptr -> nx_ip_protection), TX_WAIT_FOREVER); in _nx_ip_static_route_add() 101 if (ip_ptr -> nx_ip_interface[i].nx_interface_valid && in _nx_ip_static_route_add() 102 …((next_hop & (ip_ptr -> nx_ip_interface[i].nx_interface_ip_network_mask)) == ip_ptr -> nx_ip_inter… in _nx_ip_static_route_add() 105 nx_ip_interface = &(ip_ptr -> nx_ip_interface[i]); in _nx_ip_static_route_add() 117 tx_mutex_put(&(ip_ptr -> nx_ip_protection)); in _nx_ip_static_route_add() 126 for (i = 0; i < (INT)ip_ptr -> nx_ip_routing_table_entry_count; i++) in _nx_ip_static_route_add() 129 if (ip_ptr -> nx_ip_routing_table[i].nx_ip_routing_dest_ip == network_address && in _nx_ip_static_route_add() 130 ip_ptr -> nx_ip_routing_table[i].nx_ip_routing_net_mask == net_mask) in _nx_ip_static_route_add() [all …]
|
D | nx_ip_interface_detach.c | 88 UINT _nx_ip_interface_detach(NX_IP *ip_ptr, UINT index) in _nx_ip_interface_detach() argument 106 interface_ptr = &(ip_ptr -> nx_ip_interface[index]); in _nx_ip_interface_detach() 117 tx_mutex_get(&(ip_ptr -> nx_ip_protection), TX_WAIT_FOREVER); in _nx_ip_interface_detach() 120 socket_ptr = ip_ptr -> nx_ip_tcp_created_sockets_ptr; in _nx_ip_interface_detach() 133 } while (socket_ptr != ip_ptr -> nx_ip_tcp_created_sockets_ptr); in _nx_ip_interface_detach() 137 tx_mutex_put(&(ip_ptr -> nx_ip_protection)); in _nx_ip_interface_detach() 141 _nx_arp_interface_entries_delete(ip_ptr, index); in _nx_ip_interface_detach() 146 _nx_nd_cache_interface_entries_delete(ip_ptr, index); in _nx_ip_interface_detach() 150 tx_mutex_get(&(ip_ptr -> nx_ip_protection), TX_WAIT_FOREVER); in _nx_ip_interface_detach() 155 for (i = 0; i < ip_ptr -> nx_ip_routing_table_entry_count; i++) in _nx_ip_interface_detach() [all …]
|
D | nxd_ipv6_default_router_table_init.c | 76 VOID _nxd_ipv6_default_router_table_init(NX_IP *ip_ptr) in _nxd_ipv6_default_router_table_init() argument 85 ip_ptr -> nx_ipv6_default_router_table[i].nx_ipv6_default_router_entry_flag = 0; in _nxd_ipv6_default_router_table_init() 86 ip_ptr -> nx_ipv6_default_router_table[i].nx_ipv6_default_router_entry_life_time = 0; in _nxd_ipv6_default_router_table_init() 87 …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() 91 ip_ptr -> nx_ipv6_default_router_table_size = 0; in _nxd_ipv6_default_router_table_init() 95 ip_ptr -> nx_ipv6_default_router_table_round_robin_index = 0; in _nxd_ipv6_default_router_table_init() 98 ip_ptr -> nx_ipv6_prefix_list_table[0].nx_ipv6_prefix_entry_prev = NX_NULL; in _nxd_ipv6_default_router_table_init() 99 …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() 105 …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() 106 …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_ip_static_route_delete.c | 83 UINT _nx_ip_static_route_delete(NX_IP *ip_ptr, ULONG network_address, ULONG net_mask) in _nx_ip_static_route_delete() argument 95 …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() 100 tx_mutex_get(&(ip_ptr -> nx_ip_protection), TX_WAIT_FOREVER); in _nx_ip_static_route_delete() 103 if (ip_ptr -> nx_ip_routing_table_entry_count == 0) in _nx_ip_static_route_delete() 107 tx_mutex_put(&(ip_ptr -> nx_ip_protection)); in _nx_ip_static_route_delete() 112 for (i = 0; i < ip_ptr -> nx_ip_routing_table_entry_count; i++) in _nx_ip_static_route_delete() 115 if (ip_ptr -> nx_ip_routing_table[i].nx_ip_routing_dest_ip == network_address && in _nx_ip_static_route_delete() 116 ip_ptr -> nx_ip_routing_table[i].nx_ip_routing_net_mask == net_mask) in _nx_ip_static_route_delete() 126 for (j = i; j < ip_ptr -> nx_ip_routing_table_entry_count; j++) in _nx_ip_static_route_delete() 128 …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 | nx_igmp_multicast_interface_leave_internal.c | 79 UINT _nx_igmp_multicast_interface_leave_internal(NX_IP *ip_ptr, ULONG group_address, UINT interfac… in _nx_igmp_multicast_interface_leave_internal() argument 88 …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() 91 tx_mutex_get(&(ip_ptr -> nx_ip_protection), TX_WAIT_FOREVER); in _nx_igmp_multicast_interface_leave_internal() 93 nx_interface = &ip_ptr -> nx_ip_interface[interface_index]; in _nx_igmp_multicast_interface_leave_internal() 101 if ((ip_ptr -> nx_ipv4_multicast_entry[i].nx_ipv4_multicast_join_list == group_address) && in _nx_igmp_multicast_interface_leave_internal() 102 … (ip_ptr -> nx_ipv4_multicast_entry[i].nx_ipv4_multicast_join_interface_list == nx_interface)) in _nx_igmp_multicast_interface_leave_internal() 108 ip_ptr -> nx_ipv4_multicast_entry[i].nx_ipv4_multicast_join_count--; in _nx_igmp_multicast_interface_leave_internal() 111 if (ip_ptr -> nx_ipv4_multicast_entry[i].nx_ipv4_multicast_join_count == 0) in _nx_igmp_multicast_interface_leave_internal() 115 ip_ptr -> nx_ipv4_multicast_entry[i].nx_ipv4_multicast_join_list = 0; in _nx_igmp_multicast_interface_leave_internal() 118 driver_request.nx_ip_driver_ptr = ip_ptr; in _nx_igmp_multicast_interface_leave_internal() [all …]
|
D | nx_ipv4_packet_receive.c | 88 VOID _nx_ipv4_packet_receive(NX_IP *ip_ptr, NX_PACKET *packet_ptr) in _nx_ipv4_packet_receive() argument 128 …NX_TRACE_IN_LINE_INSERT(NX_TRACE_INTERNAL_IP_RECEIVE, ip_ptr, ip_header_ptr -> nx_ip_header_source… in _nx_ipv4_packet_receive() 155 ip_ptr -> nx_ip_invalid_packets++; in _nx_ipv4_packet_receive() 158 ip_ptr -> nx_ip_receive_packets_dropped++; in _nx_ipv4_packet_receive() 275 ip_ptr -> nx_ip_invalid_packets++; in _nx_ipv4_packet_receive() 278 ip_ptr -> nx_ip_receive_packets_dropped++; in _nx_ipv4_packet_receive() 315 ip_ptr -> nx_ip_invalid_packets++; in _nx_ipv4_packet_receive() 318 ip_ptr -> nx_ip_receive_checksum_errors++; in _nx_ipv4_packet_receive() 321 ip_ptr -> nx_ip_receive_packets_dropped++; in _nx_ipv4_packet_receive() 357 ip_ptr -> nx_ip_invalid_receive_address++; in _nx_ipv4_packet_receive() [all …]
|
D | nx_nd_cache_fast_periodic_update.c | 89 VOID _nx_nd_cache_fast_periodic_update(NX_IP *ip_ptr) in _nx_nd_cache_fast_periodic_update() argument 99 if (ip_ptr -> nx_ipv6_nd_cache[i].nx_nd_cache_nd_status == ND_CACHE_STATE_INVALID) in _nx_nd_cache_fast_periodic_update() 105 if ((ip_ptr -> nx_ipv6_nd_cache[i].nx_nd_cache_nd_status != ND_CACHE_STATE_PROBE) && in _nx_nd_cache_fast_periodic_update() 106 (ip_ptr -> nx_ipv6_nd_cache[i].nx_nd_cache_nd_status != ND_CACHE_STATE_INCOMPLETE)) in _nx_nd_cache_fast_periodic_update() 116 if (ip_ptr -> nx_ipv6_nd_cache[i].nx_nd_cache_timer_tick == 0) in _nx_nd_cache_fast_periodic_update() 120 if (ip_ptr -> nx_ipv6_nd_cache[i].nx_nd_cache_num_solicit == 0) in _nx_nd_cache_fast_periodic_update() 125 _nx_nd_cache_delete_internal(ip_ptr, &ip_ptr -> nx_ipv6_nd_cache[i]); in _nx_nd_cache_fast_periodic_update() 132 … uniCastNS = (ip_ptr -> nx_ipv6_nd_cache[i].nx_nd_cache_nd_status == ND_CACHE_STATE_PROBE); in _nx_nd_cache_fast_periodic_update() 135 _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() 136 …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 | nx_tcp_server_socket_listen.c | 82 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 93 …NX_TRACE_IN_LINE_INSERT(NX_TRACE_TCP_SERVER_SOCKET_LISTEN, ip_ptr, port, socket_ptr, listen_queue_… in _nx_tcp_server_socket_listen() 96 tx_mutex_get(&(ip_ptr -> nx_ip_protection), TX_WAIT_FOREVER); in _nx_tcp_server_socket_listen() 103 tx_mutex_put(&(ip_ptr -> nx_ip_protection)); in _nx_tcp_server_socket_listen() 116 tx_mutex_put(&(ip_ptr -> nx_ip_protection)); in _nx_tcp_server_socket_listen() 127 listen_ptr = ip_ptr -> nx_ip_tcp_active_listen_requests; in _nx_tcp_server_socket_listen() 142 tx_mutex_put(&(ip_ptr -> nx_ip_protection)); in _nx_tcp_server_socket_listen() 150 } while (listen_ptr != ip_ptr -> nx_ip_tcp_active_listen_requests); in _nx_tcp_server_socket_listen() 155 if (ip_ptr -> nx_ip_nat_port_verify) in _nx_tcp_server_socket_listen() 159 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 | 77 UINT _nx_igmp_multicast_interface_join_internal(NX_IP *ip_ptr, ULONG group_address, in _nx_igmp_multicast_interface_join_internal() argument 87 …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() 90 tx_mutex_get(&(ip_ptr -> nx_ip_protection), TX_WAIT_FOREVER); in _nx_igmp_multicast_interface_join_internal() 92 nx_interface = &ip_ptr -> nx_ip_interface[interface_index]; in _nx_igmp_multicast_interface_join_internal() 101 if ((ip_ptr -> nx_ipv4_multicast_entry[i].nx_ipv4_multicast_join_list == group_address) && in _nx_igmp_multicast_interface_join_internal() 102 … (ip_ptr -> nx_ipv4_multicast_entry[i].nx_ipv4_multicast_join_interface_list == nx_interface)) in _nx_igmp_multicast_interface_join_internal() 107 ip_ptr -> nx_ipv4_multicast_entry[i].nx_ipv4_multicast_join_count++; in _nx_igmp_multicast_interface_join_internal() 110 tx_mutex_put(&(ip_ptr -> nx_ip_protection)); in _nx_igmp_multicast_interface_join_internal() 117 if ((ip_ptr -> nx_ipv4_multicast_entry[i].nx_ipv4_multicast_join_list == 0) && in _nx_igmp_multicast_interface_join_internal() 132 tx_mutex_put(&(ip_ptr -> nx_ip_protection)); in _nx_igmp_multicast_interface_join_internal() [all …]
|
D | nxd_icmp_enable.c | 73 UINT _nxd_icmp_enable(NX_IP *ip_ptr) in _nxd_icmp_enable() argument 78 NX_TRACE_IN_LINE_INSERT(NXD_TRACE_ICMP_ENABLE, ip_ptr, 0, 0, 0, NX_TRACE_ICMP_EVENTS, 0, 0); in _nxd_icmp_enable() 80 tx_mutex_get(&(ip_ptr -> nx_ip_protection), TX_WAIT_FOREVER); in _nxd_icmp_enable() 84 ip_ptr -> nx_ip_icmp_packet_receive = _nx_icmp_packet_receive; in _nxd_icmp_enable() 88 ip_ptr -> nx_ip_icmp_queue_process = _nx_icmp_queue_process; in _nxd_icmp_enable() 91 ip_ptr -> nx_ip_icmpv4_packet_process = _nx_icmpv4_packet_process; in _nxd_icmp_enable() 96 ip_ptr -> nx_ip_icmpv6_packet_process = _nx_icmpv6_packet_process; in _nxd_icmp_enable() 99 ip_ptr -> nx_nd_cache_fast_periodic_update = _nx_nd_cache_fast_periodic_update; in _nxd_icmp_enable() 100 ip_ptr -> nx_nd_cache_slow_periodic_update = _nx_nd_cache_slow_periodic_update; in _nxd_icmp_enable() 104 memset(&ip_ptr -> nx_ipv6_nd_cache[0], 0, sizeof(ND_CACHE_ENTRY) * NX_IPV6_NEIGHBOR_CACHE_SIZE); in _nxd_icmp_enable() [all …]
|
D | nx_ip_info_get.c | 93 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 101 …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() 104 tx_mutex_get(&(ip_ptr -> nx_ip_protection), TX_WAIT_FOREVER); in _nx_ip_info_get() 111 *ip_total_packets_sent = ip_ptr -> nx_ip_total_packets_sent; in _nx_ip_info_get() 119 *ip_total_bytes_sent = ip_ptr -> nx_ip_total_bytes_sent; in _nx_ip_info_get() 127 *ip_total_packets_received = ip_ptr -> nx_ip_total_packets_received; in _nx_ip_info_get() 135 *ip_total_bytes_received = ip_ptr -> nx_ip_total_bytes_received; in _nx_ip_info_get() 143 *ip_invalid_packets = ip_ptr -> nx_ip_invalid_packets; in _nx_ip_info_get() 151 *ip_receive_packets_dropped = ip_ptr -> nx_ip_receive_packets_dropped; in _nx_ip_info_get() 159 *ip_receive_checksum_errors = ip_ptr -> nx_ip_receive_checksum_errors; in _nx_ip_info_get() [all …]
|
D | nx_ip_packet_receive.c | 82 VOID _nx_ip_packet_receive(NX_IP *ip_ptr, NX_PACKET *packet_ptr) in _nx_ip_packet_receive() argument 91 ip_ptr -> nx_ip_total_packets_received++; in _nx_ip_packet_receive() 101 packet_ptr -> nx_packet_address.nx_packet_interface_ptr = &(ip_ptr -> nx_ip_interface[0]); in _nx_ip_packet_receive() 117 if (ip_ptr -> nx_ip_packet_filter) in _nx_ip_packet_receive() 121 if (ip_ptr -> nx_ip_packet_filter((VOID *)(packet_ptr -> nx_packet_prepend_ptr), in _nx_ip_packet_receive() 132 if (ip_ptr -> nx_ip_packet_filter_extended) in _nx_ip_packet_receive() 136 … if (ip_ptr -> nx_ip_packet_filter_extended(ip_ptr, packet_ptr, NX_IP_PACKET_IN) != NX_SUCCESS) in _nx_ip_packet_receive() 149 if (ip_version == NX_IP_VERSION_V4 && ip_ptr -> nx_ipv4_packet_receive) in _nx_ip_packet_receive() 153 (ip_ptr -> nx_ipv4_packet_receive)(ip_ptr, packet_ptr); in _nx_ip_packet_receive() 159 if (ip_version == NX_IP_VERSION_V6 && ip_ptr -> nx_ipv6_packet_receive) in _nx_ip_packet_receive() [all …]
|
D | nx_ip_interface_status_check.c | 87 UINT _nx_ip_interface_status_check(NX_IP *ip_ptr, UINT interface_index, ULONG needed_status, in _nx_ip_interface_status_check() argument 102 …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() 117 if (ip_ptr -> nx_ip_initialize_done) in _nx_ip_interface_status_check() 130 if (ip_ptr -> nx_ip_interface[interface_index].nx_interface_ip_address) in _nx_ip_interface_status_check() 142 if (ip_ptr -> nx_ip_arp_periodic_update) in _nx_ip_interface_status_check() 155 if (ip_ptr -> nx_ip_interface[interface_index].nx_interface_ip_address) in _nx_ip_interface_status_check() 167 if (ip_ptr -> nx_ip_igmp_packet_receive) in _nx_ip_interface_status_check() 179 tx_mutex_get(&(ip_ptr -> nx_ip_protection), TX_WAIT_FOREVER); in _nx_ip_interface_status_check() 182 driver_request.nx_ip_driver_ptr = ip_ptr; in _nx_ip_interface_status_check() 185 driver_request.nx_ip_driver_interface = &(ip_ptr -> nx_ip_interface[interface_index]); in _nx_ip_interface_status_check() [all …]
|
D | nx_ip_interface_address_set.c | 80 UINT _nx_ip_interface_address_set(NX_IP *ip_ptr, UINT interface_index, ULONG ip_address, ULONG net… in _nx_ip_interface_address_set() argument 94 …NX_TRACE_IN_LINE_INSERT(NX_TRACE_IP_ADDRESS_SET, ip_ptr, ip_address, network_mask, 0, NX_TRACE_IP_… in _nx_ip_interface_address_set() 98 tx_mutex_get(&(ip_ptr -> nx_ip_protection), TX_WAIT_FOREVER); in _nx_ip_interface_address_set() 104 previous_ip_address = ip_ptr -> nx_ip_interface[interface_index].nx_interface_ip_address; in _nx_ip_interface_address_set() 105 … previous_network_mask = ip_ptr -> nx_ip_interface[interface_index].nx_interface_ip_network_mask; in _nx_ip_interface_address_set() 108 address_change_notify = ip_ptr -> nx_ip_address_change_notify; in _nx_ip_interface_address_set() 109 additional_info = ip_ptr -> nx_ip_address_change_notify_additional_info; in _nx_ip_interface_address_set() 112 address_change_notify_internal = ip_ptr -> nx_ip_address_change_notify_internal; in _nx_ip_interface_address_set() 115 ip_ptr -> nx_ip_interface[interface_index].nx_interface_ip_address = ip_address; in _nx_ip_interface_address_set() 116 ip_ptr -> nx_ip_interface[interface_index].nx_interface_ip_network_mask = network_mask; in _nx_ip_interface_address_set() [all …]
|
D | nx_arp_info_get.c | 89 UINT _nx_arp_info_get(NX_IP *ip_ptr, ULONG *arp_requests_sent, ULONG *arp_requests_received, in _nx_arp_info_get() argument 97 …E_INSERT(NX_TRACE_ARP_INFO_GET, ip_ptr, ip_ptr -> nx_ip_arp_requests_sent, ip_ptr -> nx_ip_arp_res… in _nx_arp_info_get() 100 tx_mutex_get(&(ip_ptr -> nx_ip_protection), TX_WAIT_FOREVER); in _nx_arp_info_get() 107 *arp_requests_sent = ip_ptr -> nx_ip_arp_requests_sent; in _nx_arp_info_get() 115 *arp_requests_received = ip_ptr -> nx_ip_arp_requests_received; in _nx_arp_info_get() 123 *arp_responses_sent = ip_ptr -> nx_ip_arp_responses_sent; in _nx_arp_info_get() 131 *arp_responses_received = ip_ptr -> nx_ip_arp_responses_received; in _nx_arp_info_get() 139 *arp_dynamic_entries = ip_ptr -> nx_ip_arp_dynamic_active_count; in _nx_arp_info_get() 147 *arp_static_entries = ip_ptr -> nx_ip_arp_static_entries; in _nx_arp_info_get() 155 *arp_aged_entries = ip_ptr -> nx_ip_arp_aged_entries; in _nx_arp_info_get() [all …]
|
D | nx_icmpv6_dest_table_add.c | 91 UINT _nx_icmpv6_dest_table_add(NX_IP *ip_ptr, ULONG *destination_address, in _nx_icmpv6_dest_table_add() argument 103 …status = _nx_icmpv6_dest_table_find(ip_ptr, destination_address, dest_entry_ptr, path_mtu, mtu_tim… in _nx_icmpv6_dest_table_add() 129 ip_ptr -> nx_ipv6_destination_table_size--; in _nx_icmpv6_dest_table_add() 134 table_size = ip_ptr -> nx_ipv6_destination_table_size; in _nx_icmpv6_dest_table_add() 150 if (!ip_ptr -> nx_ipv6_destination_table[i].nx_ipv6_destination_entry_valid) in _nx_icmpv6_dest_table_add() 169 memset(&ip_ptr -> nx_ipv6_destination_table[i], 0, sizeof(NX_IPV6_DESTINATION_ENTRY)); in _nx_icmpv6_dest_table_add() 172 …COPY_IPV6_ADDRESS(destination_address, ip_ptr -> nx_ipv6_destination_table[i].nx_ipv6_destination_… in _nx_icmpv6_dest_table_add() 175 …COPY_IPV6_ADDRESS(next_hop, ip_ptr -> nx_ipv6_destination_table[i].nx_ipv6_destination_entry_next_… in _nx_icmpv6_dest_table_add() 179 …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() 184 …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 …]
|
D | nx_nd_cache_slow_periodic_update.c | 83 VOID _nx_nd_cache_slow_periodic_update(NX_IP *ip_ptr) in _nx_nd_cache_slow_periodic_update() argument 92 if (ip_ptr -> nx_ipv6_nd_cache[i].nx_nd_cache_nd_status == ND_CACHE_STATE_INVALID) in _nx_nd_cache_slow_periodic_update() 98 if (ip_ptr -> nx_ipv6_nd_cache[i].nx_nd_cache_is_static) in _nx_nd_cache_slow_periodic_update() 104 if (ip_ptr -> nx_ipv6_nd_cache[i].nx_nd_cache_nd_status == ND_CACHE_STATE_REACHABLE) in _nx_nd_cache_slow_periodic_update() 107 ip_ptr -> nx_ipv6_nd_cache[i].nx_nd_cache_timer_tick--; in _nx_nd_cache_slow_periodic_update() 110 if (ip_ptr -> nx_ipv6_nd_cache[i].nx_nd_cache_timer_tick == 0) in _nx_nd_cache_slow_periodic_update() 114 ip_ptr -> nx_ipv6_nd_cache[i].nx_nd_cache_nd_status = ND_CACHE_STATE_STALE; in _nx_nd_cache_slow_periodic_update() 118 else if (ip_ptr -> nx_ipv6_nd_cache[i].nx_nd_cache_nd_status == ND_CACHE_STATE_DELAY) in _nx_nd_cache_slow_periodic_update() 121 ip_ptr -> nx_ipv6_nd_cache[i].nx_nd_cache_timer_tick--; in _nx_nd_cache_slow_periodic_update() 124 if (ip_ptr -> nx_ipv6_nd_cache[i].nx_nd_cache_timer_tick == 0) in _nx_nd_cache_slow_periodic_update() [all …]
|
/NetX-Duo-v6.3.0/common/inc/ |
D | nx_arp.h | 96 UINT _nx_arp_dynamic_entry_delete(NX_IP *ip_ptr, NX_ARP *arp_ptr); 97 VOID _nx_arp_static_entry_delete_internal(NX_IP *ip_ptr, NX_ARP *arp_entry); 98 VOID _nx_arp_queue_process(NX_IP *ip_ptr); 99 VOID _nx_arp_queue_send(NX_IP *ip_ptr, NX_ARP *arp_ptr); 100 UINT _nx_arp_entry_allocate(NX_IP *ip_ptr, NX_ARP **arp_ptr, UINT is_static); 102 VOID _nx_arp_packet_send(NX_IP *ip_ptr, ULONG destination_ip, NX_INTERFACE *nx_interface); 103 VOID _nx_arp_packet_receive(NX_IP *ip_ptr, NX_PACKET *packet_ptr); 104 VOID _nx_arp_packet_deferred_receive(NX_IP *ip_ptr, NX_PACKET *packet_ptr); 105 VOID _nx_arp_periodic_update(NX_IP *ip_ptr); 106 UINT _nx_arp_interface_entries_delete(NX_IP *ip_ptr, UINT index); [all …]
|
D | nx_ip.h | 110 UINT _nx_ip_auxiliary_packet_pool_set(NX_IP *ip_ptr, NX_PACKET_POOL *auxiliary_pool); 113 UINT _nx_ip_interface_address_mapping_configure(NX_IP *ip_ptr, UINT interface_index, UINT mapping… 114 UINT _nx_ip_interface_capability_get(NX_IP *ip_ptr, UINT interface_index, ULONG *interface_capabi… 115 UINT _nx_ip_interface_capability_set(NX_IP *ip_ptr, UINT interface_index, ULONG interface_capabil… 116 UINT _nx_ip_interface_info_get(NX_IP *ip_ptr, UINT interface_index, CHAR **interface_name, ULONG … 119 UINT _nx_ip_interface_mtu_set(NX_IP *ip_ptr, UINT interface_index, ULONG mtu_size); 120 UINT _nx_ip_interface_physical_address_get(NX_IP *ip_ptr, UINT interface_index, ULONG *physical_msw… 121 UINT _nx_ip_interface_physical_address_set(NX_IP *ip_ptr, UINT interface_index, ULONG physical_msw,… 122 UINT _nx_ip_interface_status_check(NX_IP *ip_ptr, UINT interface_index, ULONG needed_status, ULONG … 124 UINT _nx_ip_create(NX_IP *ip_ptr, CHAR *name, ULONG ip_address, ULONG network_mask, [all …]
|
D | nx_igmp.h | 171 UINT _nx_igmp_multicast_interface_join_internal(NX_IP *ip_ptr, ULONG group_address, UINT interface_… 172 UINT _nx_igmp_multicast_interface_leave_internal(NX_IP *ip_ptr, ULONG group_address, UINT interface… 173 UINT _nx_igmp_interface_report_send(NX_IP *ip_ptr, ULONG group_address, UINT interface_index, UINT … 174 VOID _nx_igmp_periodic_processing(NX_IP *ip_ptr); 175 VOID _nx_igmp_packet_process(NX_IP *ip_ptr, NX_PACKET *packet_ptr); 176 VOID _nx_igmp_packet_receive(NX_IP *ip_ptr, NX_PACKET *packet_ptr); 177 VOID _nx_igmp_queue_process(NX_IP *ip_ptr); 178 UINT _nx_igmp_multicast_check(NX_IP *ip_ptr, ULONG group_address, NX_INTERFACE *nx_interface); 184 UINT _nx_igmp_enable(NX_IP *ip_ptr); 185 UINT _nx_igmp_info_get(NX_IP *ip_ptr, ULONG *igmp_reports_sent, ULONG *igmp_queries_received, [all …]
|