/Zephyr-latest/samples/net/sockets/net_mgmt/src/ |
D | main.c | 72 static char *get_ip_addr(char *ipaddr, size_t len, sa_family_t family, in get_ip_addr() argument 77 buf = net_addr_ntop(family, hdr->nm_msg, ipaddr, len); in get_ip_addr() 94 char ipaddr[INET6_ADDRSTRLEN]; in listener() local 143 get_ip_addr(ipaddr, sizeof(ipaddr), in listener() 149 get_ip_addr(ipaddr, sizeof(ipaddr), in listener() 155 get_ip_addr(ipaddr, sizeof(ipaddr), in listener()
|
/Zephyr-latest/samples/net/sockets/echo_server/src/ |
D | tunnel.c | 43 static int setup_iface(struct net_if *iface, const char *ipaddr) in setup_iface() argument 51 if (!net_ipaddr_parse(ipaddr, strlen(ipaddr), &addr)) { in setup_iface() 52 LOG_ERR("Tunnel peer address \"%s\" invalid.", ipaddr); in setup_iface() 62 ipaddr, net_if_get_by_iface(iface)); in setup_iface() 73 ipaddr, net_if_get_by_iface(iface)); in setup_iface()
|
/Zephyr-latest/subsys/net/ip/ |
D | utils.c | 734 char ipaddr[INET6_ADDRSTRLEN + 1]; in parse_ipv6() local 755 memcpy(ipaddr, str + 1, end); in parse_ipv6() 758 memcpy(ipaddr, str, end); in parse_ipv6() 761 ipaddr[end] = '\0'; in parse_ipv6() 765 ret = net_addr_pton(AF_INET6, ipaddr, addr6); in parse_ipv6() 792 memcpy(ipaddr, ptr, len); in parse_ipv6() 793 ipaddr[len] = '\0'; in parse_ipv6() 795 ret = convert_port(ipaddr, &port); in parse_ipv6() 803 net_addr_ntop(AF_INET6, addr6, ipaddr, sizeof(ipaddr) - 1), in parse_ipv6() 807 net_addr_ntop(AF_INET6, addr6, ipaddr, sizeof(ipaddr) - 1)); in parse_ipv6() [all …]
|
/Zephyr-latest/tests/net/socket/net_mgmt/src/ |
D | main.c | 334 static char *get_ip_addr(char *ipaddr, size_t len, sa_family_t family, in get_ip_addr() argument 339 buf = net_addr_ntop(family, hdr->nm_msg, ipaddr, len); in get_ip_addr() 398 char ipaddr[INET6_ADDRSTRLEN]; in test_net_mgmt_catch_events() local 427 get_ip_addr(ipaddr, sizeof(ipaddr), in test_net_mgmt_catch_events() 429 zassert_equal(strncmp(ipaddr, "2001:db8::3", in test_net_mgmt_catch_events() 430 sizeof(ipaddr) - 1), 0, in test_net_mgmt_catch_events() 432 ipaddr); in test_net_mgmt_catch_events() 438 get_ip_addr(ipaddr, sizeof(ipaddr), in test_net_mgmt_catch_events() 440 zassert_equal(strncmp(ipaddr, "2001:db8::3", in test_net_mgmt_catch_events() 441 sizeof(ipaddr) - 1), 0, in test_net_mgmt_catch_events() [all …]
|
/Zephyr-latest/subsys/net/lib/shell/ |
D | ipv6.c | 66 char ipaddr[INET6_ADDRSTRLEN + 1]; in ipv6_pe_filter_cb() local 68 net_addr_ntop(AF_INET6, prefix, ipaddr, sizeof(ipaddr) - 1); in ipv6_pe_filter_cb() 75 PR("[%d] %s/64\n", *count, ipaddr); in ipv6_pe_filter_cb()
|
/Zephyr-latest/include/zephyr/net/ |
D | net_pkt_filter.h | 339 void *ipaddr; member 363 .ipaddr = (_ip_addr_array), \ 383 .ipaddr = (_ip_addr_array), \
|
/Zephyr-latest/subsys/net/lib/capture/ |
D | capture.c | 194 static int setup_iface(struct net_if *iface, const char *ipaddr, in setup_iface() argument 199 if (!net_ipaddr_parse(ipaddr, strlen(ipaddr), addr)) { in setup_iface() 201 ipaddr); in setup_iface() 214 ipaddr, net_if_get_by_iface(iface)); in setup_iface() 230 ipaddr, net_if_get_by_iface(iface)); in setup_iface()
|
/Zephyr-latest/subsys/net/pkt_filter/ |
D | base.c | 282 if (net_ipv4_addr_cmp(addr, &((struct in_addr *)test_ip->ipaddr)[ip_it])) { in npf_ip_src_addr_match() 288 if (net_ipv6_addr_cmp(addr, &((struct in6_addr *)test_ip->ipaddr)[ip_it])) { in npf_ip_src_addr_match()
|
/Zephyr-latest/subsys/net/l2/ethernet/ |
D | arp.c | 488 struct in_addr *ipaddr) in arp_gratuitous_send() argument 515 net_ipv4_addr_copy_raw(hdr->dst_ipaddr, (uint8_t *)ipaddr); in arp_gratuitous_send() 516 net_ipv4_addr_copy_raw(hdr->src_ipaddr, (uint8_t *)ipaddr); in arp_gratuitous_send() 570 struct in_addr *ipaddr; in ipv4_event_handler() local 589 ipaddr = (struct in_addr *)cb->info; in ipv4_event_handler() 591 arp_gratuitous_send(iface, ipaddr); in ipv4_event_handler()
|
/Zephyr-latest/samples/net/sockets/echo_client/ |
D | README.rst | 289 ot-ctl ipaddr 330 The ``ot ipaddr`` shall show IPv6 address starting from ``fd11:22:0:0:``.
|