Lines Matching +full:ext +full:- +full:address +full:- +full:match
1 /* main.c - Application main entry point */
6 * SPDX-License-Identifier: Apache-2.0
65 struct net_udp_context *net_udp_context = dev->data; in net_udp_dev_init()
74 struct net_udp_context *context = dev->data; in net_udp_get_mac()
76 if (context->mac_addr[2] == 0x00) { in net_udp_get_mac()
77 /* 00-00-5E-00-53-xx Documentation RFC 7042 */ in net_udp_get_mac()
78 context->mac_addr[0] = 0x00; in net_udp_get_mac()
79 context->mac_addr[1] = 0x00; in net_udp_get_mac()
80 context->mac_addr[2] = 0x5E; in net_udp_get_mac()
81 context->mac_addr[3] = 0x00; in net_udp_get_mac()
82 context->mac_addr[4] = 0x53; in net_udp_get_mac()
83 context->mac_addr[5] = sys_rand8_get(); in net_udp_get_mac()
86 return context->mac_addr; in net_udp_get_mac()
96 static int send_status = -EINVAL;
100 if (!pkt->frags) { in tester_send()
102 return -ENODATA; in tester_send()
117 if (iface->config.ip.ipv4->unicast[i].ipv4.is_used && in if_get_addr()
118 iface->config.ip.ipv4->unicast[i].ipv4.address.family == in if_get_addr()
120 iface->config.ip.ipv4->unicast[i].ipv4.addr_state == in if_get_addr()
123 &iface->config.ip.ipv4->unicast[i].ipv4.address.in_addr; in if_get_addr()
170 DBG("Test %s failed.", ud->test); in test_ok()
304 printk("Cannot write IPv6 ext header pkt %p", pkt); in send_ipv6_udp_long_msg()
317 printk("Cannot write IPv6 ext header pkt %p", pkt); in send_ipv6_udp_long_msg()
403 ((struct sockaddr_in6 *)raddr)-> in set_port()
407 ((struct sockaddr_in6 *)laddr)-> in set_port()
412 ((struct sockaddr_in *)raddr)-> in set_port()
416 ((struct sockaddr_in *)laddr)-> in set_port()
426 K_PRIO_COOP(CONFIG_NUM_COOP_PRIORITIES - 1)); in ZTEST()
504 user_data.test = "DST="#raddr"-SRC="#laddr"-RP="#rport \ in ZTEST()
505 "-LP="#lport; \ in ZTEST()
533 printk("UDP register invalid match %s failed\n", \ in ZTEST()
534 "DST="#raddr"-SRC="#laddr"-RP="#rport"-LP="#lport); \ in ZTEST()
539 ret = net_udp_unregister(ud->handle); \ in ZTEST()
541 printk("UDP unregister %p failed (%d)\n", ud->handle, \ in ZTEST()
551 ud->test); \ in ZTEST()
560 ud->test); \ in ZTEST()
569 ud->test); \ in ZTEST()
578 ud->test); \ in ZTEST()
587 ud->test); \ in ZTEST()
649 /* Remote addr same as local addr, these two will never match */ in ZTEST()
659 i--; in ZTEST()
662 if (ret < 0 && ret != -ENOENT) { in ZTEST()
667 i--; in ZTEST()