Home
last modified time | relevance | path

Searched refs:ret (Results 1 – 25 of 61) sorted by relevance

123

/NetX-Duo-v6.4.1/test/regression/bsd_test/
Dnetx_bsd_ioctl_nonblocking_test.c148 int ret; in bsd_server_blocking_helper_thread_entry() local
156 ret = recv(sockfd, buf, sizeof(buf), 0); in bsd_server_blocking_helper_thread_entry()
159 if((ret != (int)strlen(requests[message_id&3])) || strncmp(buf, requests[message_id&3], ret)) in bsd_server_blocking_helper_thread_entry()
163 ret = send(sockfd, response[message_id&3], strlen(response[message_id&3]), 0); in bsd_server_blocking_helper_thread_entry()
164 if(ret != (int)strlen(response[message_id&3])) in bsd_server_blocking_helper_thread_entry()
170 ret = soc_close(sockfd); in bsd_server_blocking_helper_thread_entry()
171 if(ret < 0) in bsd_server_blocking_helper_thread_entry()
180 int ret; in bsd_server_helper_thread_entry() local
198 ret = select(sockfd + 1, &read_fd, NULL, &except_fd, &tv); in bsd_server_helper_thread_entry()
199 if(ret < 0) in bsd_server_helper_thread_entry()
[all …]
Dnetx_bsd_raw_tx_test.c219 int ret; in test_raw_ipv4_sendto() local
228 ret = setsockopt(sockfd, IPPROTO_IP, IP_HDRINCL, &hdrincl, sizeof(hdrincl)); in test_raw_ipv4_sendto()
229 if(ret) in test_raw_ipv4_sendto()
243 ret = sendto(sockfd, buffer, sizeof(ipv4_packet), 0, (struct sockaddr*)&remote_addr, in test_raw_ipv4_sendto()
245 if(ret < 0) in test_raw_ipv4_sendto()
260 ret = sendto(sockfd, buffer, sizeof(ipv4_packet), 0, (struct sockaddr*)&remote_addr, in test_raw_ipv4_sendto()
262 if(ret < 0) in test_raw_ipv4_sendto()
265 ret = soc_close(sockfd); in test_raw_ipv4_sendto()
266 if(ret < 0) in test_raw_ipv4_sendto()
276 int ret; in test_raw_ipv6_sendto() local
[all …]
Dnetx_bsd_tcp_basic_nonblocking_test.c144 int ret; in bsd_server_helper_thread_entry() local
160 ret = select(sockfd + 1, &read_fd, NULL, NULL, &tv); in bsd_server_helper_thread_entry()
161 if(ret < 0) in bsd_server_helper_thread_entry()
166 if(ret == 1) in bsd_server_helper_thread_entry()
171 ret = recv(sockfd, buf, sizeof(buf), 0); in bsd_server_helper_thread_entry()
174 … if((ret != (int)strlen(requests[message_id&3])) || strncmp(buf, requests[message_id&3], ret)) in bsd_server_helper_thread_entry()
178 ret = send(sockfd, response[message_id&3], strlen(response[message_id&3]), 0); in bsd_server_helper_thread_entry()
179 if(ret != (int)strlen(response[message_id&3])) in bsd_server_helper_thread_entry()
189 ret = select(sockfd + 1, &read_fd, NULL, NULL, &tv); in bsd_server_helper_thread_entry()
190 if(ret != 1) in bsd_server_helper_thread_entry()
[all …]
Dnetx_bsd_tcp_rcvbuf_test.c147 int ret; in bsd_server_helper_thread_entry() local
169ret = recvfrom(sockfd, (char*)buf, sizeof(buf), 0, (struct sockaddr*)&remote_address, &sockaddr_le… in bsd_server_helper_thread_entry()
171 if(ret < 0) in bsd_server_helper_thread_entry()
199 ret = recv(sockfd, buf, sizeof(buf), MSG_PEEK); in bsd_server_helper_thread_entry()
202 … if((ret != (int)strlen(requests[message_id & 3])) || strncmp(buf, requests[message_id & 3], ret)) in bsd_server_helper_thread_entry()
205 ret = recv(sockfd, buf, sizeof(buf), 0); in bsd_server_helper_thread_entry()
207 if(ret <= 0) in bsd_server_helper_thread_entry()
211 … if((ret != (int)strlen(requests[message_id & 3])) || strncmp(buf, requests[message_id & 3], ret)) in bsd_server_helper_thread_entry()
215ret = recvfrom(sockfd, (char*)buf, sizeof(buf), MSG_DONTWAIT, (struct sockaddr*)&remote_address, &… in bsd_server_helper_thread_entry()
216 if(ret >= 0) in bsd_server_helper_thread_entry()
[all …]
Dnetx_bsd_tcp_basic_blocking_test.c148 int ret; in bsd_server_helper_thread_entry() local
170ret = recvfrom(sockfd, (char*)buf, sizeof(buf), 0, (struct sockaddr*)&remote_address, &sockaddr_le… in bsd_server_helper_thread_entry()
172 if(ret < 0) in bsd_server_helper_thread_entry()
200 ret = recv(sockfd, buf, sizeof(buf), MSG_PEEK); in bsd_server_helper_thread_entry()
203 … if((ret != (int)strlen(requests[message_id & 3])) || strncmp(buf, requests[message_id & 3], ret)) in bsd_server_helper_thread_entry()
206 ret = recv(sockfd, buf, sizeof(buf), 0); in bsd_server_helper_thread_entry()
208 if(ret <= 0) in bsd_server_helper_thread_entry()
212 … if((ret != (int)strlen(requests[message_id & 3])) || strncmp(buf, requests[message_id & 3], ret)) in bsd_server_helper_thread_entry()
216ret = recvfrom(sockfd, (char*)buf, sizeof(buf), MSG_DONTWAIT, (struct sockaddr*)&remote_address, &… in bsd_server_helper_thread_entry()
217 if(ret >= 0) in bsd_server_helper_thread_entry()
[all …]
Dnetx_bsd_getaddrinfo_test.c199 int ret; in bsd_server_helper_thread_entry() local
221ret = recvfrom(sockfd, (char*)buf, sizeof(buf), 0, (struct sockaddr*)&remote_address, &sockaddr_le… in bsd_server_helper_thread_entry()
223 if(ret < 0) in bsd_server_helper_thread_entry()
251 ret = recv(sockfd, buf, sizeof(buf), MSG_PEEK); in bsd_server_helper_thread_entry()
254 … if((ret != (int)strlen(requests[message_id & 3])) || strncmp(buf, requests[message_id & 3], ret)) in bsd_server_helper_thread_entry()
257 ret = recv(sockfd, buf, sizeof(buf), 0); in bsd_server_helper_thread_entry()
259 if(ret <= 0) in bsd_server_helper_thread_entry()
263 … if((ret != (int)strlen(requests[message_id & 3])) || strncmp(buf, requests[message_id & 3], ret)) in bsd_server_helper_thread_entry()
267ret = recvfrom(sockfd, (char*)buf, sizeof(buf), MSG_DONTWAIT, (struct sockaddr*)&remote_address, &… in bsd_server_helper_thread_entry()
268 if(ret >= 0) in bsd_server_helper_thread_entry()
[all …]
Dnetx_bsd_udp_basic_nonblocking_test.c128 int ret; in test_udp_server6() local
147 ret = bind(sockfd, (struct sockaddr*)&local_addr, sizeof(local_addr)); in test_udp_server6()
148 if(ret < 0) in test_udp_server6()
153 ret = recvfrom(sockfd, buf, sizeof(buf), 0, (struct sockaddr*)&remote_addr, &addrlen); in test_udp_server6()
154 if(ret > 0) in test_udp_server6()
171 ret = select(sockfd + 1, &read_fd, NULL, NULL, &tv); in test_udp_server6()
172 if(ret != 1) in test_udp_server6()
179 ret = recvfrom(sockfd, buf, sizeof(buf), 0, (struct sockaddr*)&remote_addr, &addrlen); in test_udp_server6()
180 if(ret < 0) in test_udp_server6()
196 if((ret != (INT)strlen(requests[1])) || strncmp(buf, requests[1], ret)) in test_udp_server6()
[all …]
Dnetx_bsd_raw_basic_rx_nohdr_nonblocking_test.c132 int ret; in test_raw_server4() local
147 ret = setsockopt(sockfd, IPPROTO_IP, IP_RAW_RX_NO_HEADER, (void*)&option, sizeof(option)); in test_raw_server4()
149 if(ret != 0) in test_raw_server4()
157 ret = recvfrom(sockfd, buf, sizeof(buf), 0, (struct sockaddr*)&remote_addr, &addrlen); in test_raw_server4()
158 if(ret > 0) in test_raw_server4()
175 ret = select(sockfd + 1, &read_fd, NULL, NULL, &tv); in test_raw_server4()
176 if(ret != 1) in test_raw_server4()
189 ret = recvfrom(sockfd, buf, sizeof(buf), 0, (struct sockaddr*)&remote_addr, &addrlen); in test_raw_server4()
190 if(ret < 0) in test_raw_server4()
201 if((ret != (int)strlen(requests[0])) || strncmp((buf ), requests[0], (ret))) in test_raw_server4()
[all …]
Dnetx_bsd_tcp_fionread_test.c135 int ret; in bsd_server_helper_thread_entry() local
144 ret = recv(sockfd, buf, 4, 0); in bsd_server_helper_thread_entry()
145 if(ret != 4) in bsd_server_helper_thread_entry()
148 ret = ioctl(sockfd, FIONREAD, &size); in bsd_server_helper_thread_entry()
149 if(ret) in bsd_server_helper_thread_entry()
152 ret = recv(sockfd, buf + 4, sizeof(buf) - 4, 0); in bsd_server_helper_thread_entry()
153 if(ret != size) in bsd_server_helper_thread_entry()
157 if((ret + 4) != (int)strlen(request) || strncmp(buf, request, (ret + 4))) in bsd_server_helper_thread_entry()
161 ret = send(sockfd, response, strlen(response), 0); in bsd_server_helper_thread_entry()
162 if(ret != (int)strlen(response)) in bsd_server_helper_thread_entry()
[all …]
Dnetx_bsd_udp_bind_test.c168 int ret; in test_udp_server6_bind_to_ANY() local
182 ret = bind(sockfd, (struct sockaddr*)&local_addr, sizeof(local_addr)); in test_udp_server6_bind_to_ANY()
183 if(ret < 0) in test_udp_server6_bind_to_ANY()
192 ret = recvfrom(sockfd, buf, sizeof(buf), 0, (struct sockaddr*)&remote_addr, &addrlen); in test_udp_server6_bind_to_ANY()
193 if(ret <= 0) in test_udp_server6_bind_to_ANY()
205 …else if((ret != (INT)strlen(requests[message_count & 3])) || strncmp(buf, requests[message_count &… in test_udp_server6_bind_to_ANY()
211ret = sendto(sockfd, response[message_count & 3], strlen(response[message_count & 3]), 0, (struct … in test_udp_server6_bind_to_ANY()
212 if(ret != (INT)strlen(response[message_count & 3])) in test_udp_server6_bind_to_ANY()
219 ret = soc_close(sockfd); in test_udp_server6_bind_to_ANY()
220 if(ret < 0) in test_udp_server6_bind_to_ANY()
[all …]
Dnetx_bsd_raw_ping_test.c130 int ret; in ntest_0_entry() local
153 ret = setsockopt(sockfd, IPPROTO_IP, IP_RAW_RX_NO_HEADER, (void*)&option, sizeof(option)); in ntest_0_entry()
154 if(ret != 0) in ntest_0_entry()
169ret = sendto(sockfd, echo_request, sizeof(echo_request) - 1, 0, (struct sockaddr*)&remote_addr, in ntest_0_entry()
171 if(ret < 0) in ntest_0_entry()
179 ret = soc_close(sockfd); in ntest_0_entry()
180 if(ret < 0) in ntest_0_entry()
192ret = recvfrom(sockfd, receive_buffer, sizeof(receive_buffer), 0, (struct sockaddr*)&remote_addr, … in ntest_0_entry()
193 if(ret <= 0) in ntest_0_entry()
200 if ((ret != (sizeof(echo_reply) - 1)) || (memcmp(receive_buffer, echo_reply, ret))) in ntest_0_entry()
[all …]
Dnetx_bsd_raw_basic_nonblocking_test.c132 int ret; in test_raw_server4() local
150 ret = recvfrom(sockfd, buf, sizeof(buf), 0, (struct sockaddr*)&remote_addr, &addrlen); in test_raw_server4()
151 if(ret > 0) in test_raw_server4()
168 ret = select(sockfd + 1, &read_fd, NULL, NULL, &tv); in test_raw_server4()
169 if(ret != 1) in test_raw_server4()
182 ret = recvfrom(sockfd, buf, sizeof(buf), 0, (struct sockaddr*)&remote_addr, &addrlen); in test_raw_server4()
183 if(ret < 0) in test_raw_server4()
194 if(((ret - 20) != (int)strlen(requests[0])) || strncmp((buf + 20), requests[0], (ret - 20))) in test_raw_server4()
198ret = sendto(sockfd, response[0], strlen(response[0]), 0, (struct sockaddr*)&remote_addr, addrlen); in test_raw_server4()
199 if(ret != (int)strlen(response[0])) in test_raw_server4()
[all …]
Dnetx_bsd_raw_basic_rx_nohdr_blocking_test.c125 int ret; in test_raw_server_ipv4() local
137 ret = setsockopt(sockfd, IPPROTO_IP, IP_RAW_RX_NO_HEADER, (void*)&option, sizeof(option)); in test_raw_server_ipv4()
139 if(ret != 0) in test_raw_server_ipv4()
144 ret = recvfrom(sockfd, buf, sizeof(buf), 0, (struct sockaddr*)&remote_addr, &addrlen); in test_raw_server_ipv4()
145 if(ret <= 0) in test_raw_server_ipv4()
156 if((ret != (int)(strlen(requests[0]))) || strncmp((buf ), requests[0], (ret))) in test_raw_server_ipv4()
160ret = sendto(sockfd, response[0], strlen(response[0]), 0, (struct sockaddr*)&remote_addr, addrlen); in test_raw_server_ipv4()
161 if(ret != (int)strlen(response[0])) in test_raw_server_ipv4()
166 ret = soc_close(sockfd); in test_raw_server_ipv4()
167 if(ret < 0) in test_raw_server_ipv4()
[all …]
Dnetx_bsd_udp_basic_blocking_test.c127 int ret; in test_udp_server6() local
140 ret = bind(sockfd, (struct sockaddr*)&local_addr, sizeof(local_addr)); in test_udp_server6()
141 if(ret < 0) in test_udp_server6()
146 ret = recvfrom(sockfd, buf, sizeof(buf), 0, (struct sockaddr*)&remote_addr, &addrlen); in test_udp_server6()
147 if(ret <= 0) in test_udp_server6()
162 if((ret != (INT)strlen(requests[1])) || strncmp(buf, requests[1], ret)) in test_udp_server6()
166ret = sendto(sockfd, response[1], strlen(response[1]), 0, (struct sockaddr*)&remote_addr, addrlen); in test_udp_server6()
167 if(ret != (INT)strlen(response[1])) in test_udp_server6()
172 ret = soc_close(sockfd); in test_udp_server6()
173 if(ret < 0) in test_udp_server6()
[all …]
Dnetx_bsd_raw_basic_blocking_test.c126 int ret; in test_raw_server_ipv4() local
137 ret = recvfrom(sockfd, buf, sizeof(buf), 0, (struct sockaddr*)&remote_addr, &addrlen); in test_raw_server_ipv4()
138 if(ret <= 0) in test_raw_server_ipv4()
149 if((ret != (int)(strlen(requests[0]) + 20)) || strncmp((buf + 20), requests[0], (ret - 20))) in test_raw_server_ipv4()
153ret = sendto(sockfd, response[0], strlen(response[0]), 0, (struct sockaddr*)&remote_addr, addrlen); in test_raw_server_ipv4()
154 if(ret != (int)strlen(response[0])) in test_raw_server_ipv4()
159 ret = soc_close(sockfd); in test_raw_server_ipv4()
160 if(ret < 0) in test_raw_server_ipv4()
171ret = sendto(sockfd, response[0], strlen(response[0]), 0, (struct sockaddr*)&sock_addr, sizeof(soc… in test_raw_server_ipv4()
172 if(ret != (int)strlen(response[0])) in test_raw_server_ipv4()
[all …]
Dnetx_bsd_udp_blocking_bidirection_test.c177 int ret; in transmit_entry() local
189ret = sendto(sockfd, bsd_send_buffer, strlen(bsd_send_buffer), 0, (struct sockaddr*)&peer_addr, si… in transmit_entry()
191 if(ret != (int)strlen(bsd_send_buffer)) in transmit_entry()
204 int ret; in receive_entry() local
215ret = recvfrom(sockfd, buffer, sizeof(buffer), 0, (struct sockaddr*)&peer_addr, &peer_addr_len); in receive_entry()
223 if(ret != (int)strlen(netx_send_buffer)) in receive_entry()
225 else if(strncmp(buffer, netx_send_buffer, ret)) in receive_entry()
239 int ret; in transmit6_entry() local
255ret = sendto(sockfd, bsd_send_buffer6, strlen(bsd_send_buffer6), 0, (struct sockaddr*)&peer_addres… in transmit6_entry()
257 if(ret != (INT)strlen(bsd_send_buffer6)) in transmit6_entry()
[all …]
Dnetx_bsd_raw_rx_nohdr_basic_blocking_test.c125 int ret; in test_raw_server_ipv4() local
144 ret = recvfrom(sockfd, buf, sizeof(buf), 0, (struct sockaddr*)&remote_addr, &addrlen); in test_raw_server_ipv4()
145 if(ret <= 0) in test_raw_server_ipv4()
156 if((ret != (int)strlen(requests[0])) || strncmp(buf, requests[0], ret)) in test_raw_server_ipv4()
160ret = sendto(sockfd, response[0], strlen(response[0]), 0, (struct sockaddr*)&remote_addr, addrlen); in test_raw_server_ipv4()
161 if(ret != (int)strlen(response[0])) in test_raw_server_ipv4()
166 ret = soc_close(sockfd); in test_raw_server_ipv4()
167 if(ret < 0) in test_raw_server_ipv4()
181 int ret; in test_raw_server_ipv6() local
200 ret = recvfrom(sockfd, buf, sizeof(buf), 0, (struct sockaddr*)&remote_addr, &addrlen); in test_raw_server_ipv6()
[all …]
Dnetx_bsd_tcp_blocking_bidirection_test.c189 int ret; in transmit_entry() local
195 ret = send(sockfd, bsd_send_buffer, strlen(bsd_send_buffer), 0); in transmit_entry()
197 if(ret != (int)strlen(bsd_send_buffer)) in transmit_entry()
210 int ret; in receive_entry() local
217 ret = recv(sockfd, buffer, sizeof(buffer), 0); in receive_entry()
219 if(ret != (int)strlen(netx_send_buffer)) in receive_entry()
221 else if(strncmp(buffer, netx_send_buffer, ret)) in receive_entry()
233 int ret; in transmit6_entry() local
239 ret = send(sockfd, bsd_send_buffer6, strlen(bsd_send_buffer6), 0); in transmit6_entry()
241 if(ret != (INT)strlen(bsd_send_buffer6)) in transmit6_entry()
[all …]
Dnetx_bsd_tcp_accept_nonblocking_test.c135 int ret; in bsd_server_helper_thread_entry() local
151 ret = select(sockfd + 1, &read_fd, NULL, NULL, &tv); in bsd_server_helper_thread_entry()
152 if(ret < 0) in bsd_server_helper_thread_entry()
157 if(ret == 1) in bsd_server_helper_thread_entry()
162 ret = recv(sockfd, buf, sizeof(buf), 0); in bsd_server_helper_thread_entry()
165 … if((ret != (int)strlen(requests[message_id & 3])) || strncmp(buf, requests[message_id & 3], ret)) in bsd_server_helper_thread_entry()
169 ret = send(sockfd, response[message_id & 3], strlen(response[message_id & 3]), 0); in bsd_server_helper_thread_entry()
170 if(ret != (int)strlen(response[message_id & 3])) in bsd_server_helper_thread_entry()
179 ret = soc_close(sockfd); in bsd_server_helper_thread_entry()
180 if(ret < 0) in bsd_server_helper_thread_entry()
[all …]
Dnetx_bsd_tcp_accept_nonblocking_timeout_test.c135 int ret; in bsd_server_helper_thread_entry() local
151 ret = select(sockfd + 1, &read_fd, NULL, NULL, &tv); in bsd_server_helper_thread_entry()
152 if(ret < 0) in bsd_server_helper_thread_entry()
157 if(ret == 1) in bsd_server_helper_thread_entry()
162 ret = recv(sockfd, buf, sizeof(buf), 0); in bsd_server_helper_thread_entry()
165 … if((ret != (int)strlen(requests[message_id & 3])) || strncmp(buf, requests[message_id & 3], ret)) in bsd_server_helper_thread_entry()
169 ret = send(sockfd, response[message_id & 3], strlen(response[message_id & 3]), 0); in bsd_server_helper_thread_entry()
170 if(ret != (int)strlen(response[message_id & 3])) in bsd_server_helper_thread_entry()
179 ret = soc_close(sockfd); in bsd_server_helper_thread_entry()
180 if(ret < 0) in bsd_server_helper_thread_entry()
[all …]
Dnetx_bsd_tcp_getsockname_test.c131 int ret; in bsd_server_helper_thread_entry() local
138 ret = recv(sockfd, buf, sizeof(buf), 0); in bsd_server_helper_thread_entry()
139 if(ret <= 0) in bsd_server_helper_thread_entry()
142 buf[ret] = 0; in bsd_server_helper_thread_entry()
145 …if((ret != (int)strlen(requests[message_id & 3])) || (strncmp(buf, requests[message_id & 3], ret))) in bsd_server_helper_thread_entry()
149 ret = send(sockfd, response[message_id & 3], strlen(response[message_id & 3]), 0); in bsd_server_helper_thread_entry()
150 if(ret != (int)strlen(response[message_id & 3])) in bsd_server_helper_thread_entry()
154 ret = soc_close(sockfd); in bsd_server_helper_thread_entry()
155 if(ret < 0) in bsd_server_helper_thread_entry()
248 int ret; in tcp_server_entry() local
[all …]
Dnetx_bsd_udp_connect_test.c153 int ret; in test_udp4_connect() local
165 ret = bind(sockfd, (struct sockaddr*)&local_addr, sizeof(local_addr)); in test_udp4_connect()
166 if(ret < 0) in test_udp4_connect()
173 ret = connect(sockfd, (struct sockaddr*)&remote_addr, sizeof(remote_addr)); in test_udp4_connect()
174 if(ret < 0) in test_udp4_connect()
177 ret = recv(sockfd, buf, sizeof(buf), 0); in test_udp4_connect()
179 …if((ret != (int)strlen(requests_ipv4[1])) || (strncmp(buf, requests_ipv4[1], strlen(requests_ipv4[… in test_udp4_connect()
182 ret = send(sockfd, response_ipv4[1], strlen(response_ipv4[1]), 0); in test_udp4_connect()
183 if(ret != (int)strlen(response_ipv4[1])) in test_udp4_connect()
189 ret = soc_close(sockfd); in test_udp4_connect()
[all …]
Dnetx_bsd_tcp_2nd_bind_test.c110 int ret; in ntest_0_entry() local
132 ret = bind(sockfd1, (struct sockaddr*)&local_addr, sizeof(local_addr)); in ntest_0_entry()
133 if(ret < 0) in ntest_0_entry()
145 ret = bind(sockfd2, (struct sockaddr*)&local_addr, sizeof(local_addr)); in ntest_0_entry()
146 if(ret >= 0) in ntest_0_entry()
151 ret = soc_close(sockfd1); in ntest_0_entry()
152 ret += soc_close(sockfd2); in ntest_0_entry()
154 if(ret) in ntest_0_entry()
Dnetx_bsd_tcp_accept_blocking_test.c137 int ret; in bsd_server_helper_thread_entry() local
144 ret = recv(sockfd, buf, sizeof(buf), 0); in bsd_server_helper_thread_entry()
145 if(ret <= 0) in bsd_server_helper_thread_entry()
149 … if((ret != (int)strlen(requests[message_id & 3])) || strncmp(buf, requests[message_id & 3], ret)) in bsd_server_helper_thread_entry()
153 ret = send(sockfd, response[message_id & 3], strlen(response[message_id & 3]), 0); in bsd_server_helper_thread_entry()
154 if(ret != (int)strlen(response[message_id & 3])) in bsd_server_helper_thread_entry()
162 ret = soc_close(sockfd); in bsd_server_helper_thread_entry()
163 if(ret < 0) in bsd_server_helper_thread_entry()
177 int ret; in test_tcp_server4() local
193 ret = bind(sockfd, (struct sockaddr*)&local_addr, sizeof(local_addr)); in test_tcp_server4()
[all …]
/NetX-Duo-v6.4.1/common/src/
Dnxd_ipv6_default_router_add_internal.c98 NX_IPV6_DEFAULT_ROUTER_ENTRY *ret = NX_NULL; in _nxd_ipv6_default_router_add_internal() local
165 ret = &ip_ptr -> nx_ipv6_default_router_table[i]; in _nxd_ipv6_default_router_add_internal()
168 ret -> nx_ipv6_default_router_entry_life_time = (USHORT)router_lifetime; in _nxd_ipv6_default_router_add_internal()
173 *_ret = ret; in _nxd_ipv6_default_router_add_internal()
195 ret = &ip_ptr -> nx_ipv6_default_router_table[first_available]; in _nxd_ipv6_default_router_add_internal()
198 COPY_IPV6_ADDRESS(router_addr, ret -> nx_ipv6_default_router_entry_router_address); in _nxd_ipv6_default_router_add_internal()
201 ret -> nx_ipv6_default_router_entry_flag = (UCHAR)(router_type | NX_IPV6_ROUTE_TYPE_VALID); in _nxd_ipv6_default_router_add_internal()
202 ret -> nx_ipv6_default_router_entry_life_time = (USHORT)router_lifetime; in _nxd_ipv6_default_router_add_internal()
205 ret -> nx_ipv6_default_router_entry_interface_ptr = if_ptr; in _nxd_ipv6_default_router_add_internal()
209 ret -> nx_ipv6_default_router_entry_neighbor_cache_ptr = NX_NULL; in _nxd_ipv6_default_router_add_internal()
[all …]

123