Lines Matching refs:sockaddr
61 extern uint16_t net_tcp_get_mtu(struct sockaddr *dst);
218 entry = net_pmtu_get_entry((struct sockaddr *)&dest_ipv4); in ZTEST()
236 entry = net_pmtu_get_entry((struct sockaddr *)&dest_ipv6); in ZTEST()
254 ret = net_pmtu_update_mtu((struct sockaddr *)&dest_ipv4, 1300); in ZTEST()
272 ret = net_pmtu_update_mtu((struct sockaddr *)&dest_ipv6, 1600); in ZTEST()
292 ret = net_pmtu_update_mtu((struct sockaddr *)&dest_ipv4, 1300); in ZTEST()
294 entry = net_pmtu_get_entry((struct sockaddr *)&dest_ipv4); in ZTEST()
301 ret = net_pmtu_update_mtu((struct sockaddr *)&dest_ipv4, 1400); in ZTEST()
303 mtu = net_pmtu_get_mtu((struct sockaddr *)&dest_ipv4); in ZTEST()
309 ret = net_pmtu_update_mtu((struct sockaddr *)&dest_ipv4, 1500); in ZTEST()
311 entry = net_pmtu_get_entry((struct sockaddr *)&dest_ipv4); in ZTEST()
316 ret = net_pmtu_get_mtu((struct sockaddr *)&dest_ipv4); in ZTEST()
318 entry = net_pmtu_get_entry((struct sockaddr *)&dest_ipv4); in ZTEST()
336 ret = net_pmtu_update_mtu((struct sockaddr *)&dest_ipv6, 1600); in ZTEST()
338 entry = net_pmtu_get_entry((struct sockaddr *)&dest_ipv6); in ZTEST()
345 ret = net_pmtu_update_mtu((struct sockaddr *)&dest_ipv6, 1700); in ZTEST()
347 mtu = net_pmtu_get_mtu((struct sockaddr *)&dest_ipv6); in ZTEST()
353 ret = net_pmtu_update_mtu((struct sockaddr *)&dest_ipv6, 1800); in ZTEST()
355 entry = net_pmtu_get_entry((struct sockaddr *)&dest_ipv6); in ZTEST()
360 ret = net_pmtu_get_mtu((struct sockaddr *)&dest_ipv6); in ZTEST()
362 entry = net_pmtu_get_entry((struct sockaddr *)&dest_ipv6); in ZTEST()
380 ret = net_pmtu_update_mtu((struct sockaddr *)&dest_ipv4, 1450); in ZTEST()
383 entry = net_pmtu_get_entry((struct sockaddr *)&dest_ipv4); in ZTEST()
390 entry = net_pmtu_get_entry((struct sockaddr *)&dest_ipv4); in ZTEST()
408 ret = net_pmtu_update_mtu((struct sockaddr *)&dest_ipv6, 1650); in ZTEST()
411 entry = net_pmtu_get_entry((struct sockaddr *)&dest_ipv6); in ZTEST()
425 entry = net_pmtu_get_entry((struct sockaddr *)&dest_ipv4); in ZTEST()
428 entry = net_pmtu_get_entry((struct sockaddr *)&dest_ipv6); in ZTEST()
437 static void test_bind(int sock, struct sockaddr *addr, socklen_t addrlen) in test_bind()
452 static void test_connect(int sock, struct sockaddr *addr, socklen_t addrlen) in test_connect()
464 static void test_accept(int sock, int *new_sock, struct sockaddr *addr, in test_accept()
480 struct sockaddr addr; in get_v6_send_recv_sock()
487 test_bind(s_sock, (struct sockaddr *)peer_saddr, sizeof(*peer_saddr)); in get_v6_send_recv_sock()
491 test_bind(c_sock, (struct sockaddr *)my_saddr, sizeof(*my_saddr)); in get_v6_send_recv_sock()
492 test_connect(c_sock, (struct sockaddr *)peer_saddr, sizeof(*peer_saddr)); in get_v6_send_recv_sock()
576 ret = net_pmtu_update_mtu((struct sockaddr *)&c_saddr, 4096); in ZTEST()
589 mtu = net_tcp_get_mtu((struct sockaddr *)&s_saddr); in ZTEST()
606 struct sockaddr addr; in get_v4_send_recv_sock()
613 test_bind(s_sock, (struct sockaddr *)peer_saddr, sizeof(*peer_saddr)); in get_v4_send_recv_sock()
617 test_bind(c_sock, (struct sockaddr *)my_saddr, sizeof(*my_saddr)); in get_v4_send_recv_sock()
618 test_connect(c_sock, (struct sockaddr *)peer_saddr, sizeof(*peer_saddr)); in get_v4_send_recv_sock()
702 ret = net_pmtu_update_mtu((struct sockaddr *)&c_saddr, 4096); in ZTEST()
715 mtu = net_tcp_get_mtu((struct sockaddr *)&s_saddr); in ZTEST()
738 ret = net_pmtu_update_mtu((struct sockaddr *)&dest_ipv4, 1200); in ZTEST()
766 ret = net_pmtu_update_mtu((struct sockaddr *)&dest_ipv6, 1500); in ZTEST()
796 ret = net_pmtu_update_mtu((struct sockaddr *)&c_saddr, 4096); in ZTEST()
835 ret = net_pmtu_update_mtu((struct sockaddr *)&c_saddr, 2048); in ZTEST()