/Zephyr-latest/subsys/net/ip/ |
D | ipv4_acd.c | 94 static void ipv4_acd_send_probe(struct net_if_addr *ifaddr) in ipv4_acd_send_probe() argument 96 struct net_if *iface = net_if_get_by_index(ifaddr->ifindex); in ipv4_acd_send_probe() 100 pkt = ipv4_acd_prepare_arp(iface, &unspecified, &ifaddr->address.in_addr); in ipv4_acd_send_probe() 111 static void ipv4_acd_send_announcement(struct net_if_addr *ifaddr) in ipv4_acd_send_announcement() argument 113 struct net_if *iface = net_if_get_by_index(ifaddr->ifindex); in ipv4_acd_send_announcement() 116 pkt = ipv4_acd_prepare_arp(iface, &ifaddr->address.in_addr, in ipv4_acd_send_announcement() 117 &ifaddr->address.in_addr); in ipv4_acd_send_announcement() 135 struct net_if_addr *ifaddr = in acd_timer_reschedule() local 138 if (sys_timepoint_cmp(ifaddr->acd_timeout, expiry) < 0) { in acd_timer_reschedule() 139 expiry = ifaddr->acd_timeout; in acd_timer_reschedule() [all …]
|
D | net_if.c | 1225 struct net_if_addr *ifaddr, *next; in dad_timeout() local 1236 ifaddr, next, dad_node) { in dad_timeout() 1240 delay = (int32_t)(ifaddr->dad_start + in dad_timeout() 1247 sys_slist_remove(&active_dad_timers, NULL, &ifaddr->dad_node); in dad_timeout() 1248 sys_slist_append(&expired_list, &ifaddr->dad_node); in dad_timeout() 1250 ifaddr = NULL; in dad_timeout() 1253 if ((ifaddr != NULL) && (delay > 0)) { in dad_timeout() 1259 SYS_SLIST_FOR_EACH_CONTAINER(&expired_list, ifaddr, dad_node) { in dad_timeout() 1263 net_sprint_ipv6_addr(&ifaddr->address.in6_addr), in dad_timeout() 1264 ifaddr->ifindex); in dad_timeout() [all …]
|
/Zephyr-latest/tests/net/lib/dns_dispatcher/src/ |
D | main.c | 131 struct net_if_addr *ifaddr; in test_init() local 142 ifaddr = net_if_ipv6_addr_add(iface1, &my_addr1, in test_init() 144 if (!ifaddr) { in test_init() 147 zassert_not_null(ifaddr, "addr1"); in test_init() 153 ifaddr->addr_state = NET_ADDR_PREFERRED; in test_init() 157 ifaddr = net_if_ipv4_addr_add(iface1, &my_addr2, in test_init() 159 if (!ifaddr) { in test_init() 162 zassert_not_null(ifaddr, "addr2"); in test_init() 167 ifaddr->addr_state = NET_ADDR_PREFERRED; in test_init()
|
/Zephyr-latest/tests/net/promiscuous/src/ |
D | main.c | 203 struct net_if_addr *ifaddr; in test_iface_setup() local 223 ifaddr = net_if_ipv6_addr_add(iface1, &my_addr1, in test_iface_setup() 225 if (!ifaddr) { in test_iface_setup() 228 zassert_not_null(ifaddr, "addr1"); in test_iface_setup() 232 ifaddr->addr_state = NET_ADDR_PREFERRED; in test_iface_setup() 234 ifaddr = net_if_ipv6_addr_add(iface1, &ll_addr, in test_iface_setup() 236 if (!ifaddr) { in test_iface_setup() 239 zassert_not_null(ifaddr, "ll_addr"); in test_iface_setup() 242 ifaddr->addr_state = NET_ADDR_PREFERRED; in test_iface_setup() 244 ifaddr = net_if_ipv6_addr_add(iface2, &my_addr2, in test_iface_setup() [all …]
|
/Zephyr-latest/samples/net/sockets/coap_server/src/ |
D | main.c | 37 struct net_if_addr *ifaddr; in join_coap_multicast_group() local 56 ifaddr = net_if_ipv6_addr_add(iface, &my_addr, NET_ADDR_MANUAL, 0); in join_coap_multicast_group() 57 if (!ifaddr) { in join_coap_multicast_group() 62 ifaddr->addr_state = NET_ADDR_PREFERRED; in join_coap_multicast_group()
|
/Zephyr-latest/samples/net/sockets/echo_client/src/ |
D | vlan.c | 45 struct net_if_addr *ifaddr; in setup_iface() local 60 ifaddr = net_if_ipv6_addr_add(iface, &addr6, NET_ADDR_MANUAL, 0); in setup_iface() 61 if (!ifaddr) { in setup_iface() 71 ifaddr = net_if_ipv4_addr_add(iface, &addr4, NET_ADDR_MANUAL, 0); in setup_iface() 72 if (!ifaddr) { in setup_iface()
|
/Zephyr-latest/samples/boards/nxp/s32/netc/src/ |
D | main.c | 23 struct net_if_addr *ifaddr; in setup_iface() local 35 ifaddr = net_if_ipv6_addr_add(iface, &addr6, NET_ADDR_MANUAL, 0); in setup_iface() 36 if (!ifaddr) { in setup_iface() 49 ifaddr = net_if_ipv4_addr_add(iface, &addr4, NET_ADDR_MANUAL, 0); in setup_iface() 50 if (!ifaddr) { in setup_iface()
|
/Zephyr-latest/tests/net/hostname/src/ |
D | main.c | 244 struct net_if_addr *ifaddr; in test_iface_setup() local 261 ifaddr = net_if_ipv6_addr_add(iface1, &my_addr1, in test_iface_setup() 263 if (!ifaddr) { in test_iface_setup() 266 zassert_not_null(ifaddr, "addr1"); in test_iface_setup() 269 ifaddr = net_if_ipv4_addr_add(iface1, &my_ipv4_addr1, in test_iface_setup() 271 if (!ifaddr) { in test_iface_setup() 274 zassert_not_null(ifaddr, "ipv4 addr1"); in test_iface_setup() 278 ifaddr->addr_state = NET_ADDR_PREFERRED; in test_iface_setup() 280 ifaddr = net_if_ipv6_addr_add(iface1, &ll_addr, in test_iface_setup() 282 if (!ifaddr) { in test_iface_setup() [all …]
|
/Zephyr-latest/drivers/net/ |
D | loopback.c | 47 struct net_if_addr *ifaddr; in loopback_init() local 57 ifaddr = net_if_ipv4_addr_add(iface, &ipv4_loopback, in loopback_init() 59 if (!ifaddr) { in loopback_init() 69 ifaddr = net_if_ipv6_addr_add(iface, &ipv6_loopback, in loopback_init() 71 if (!ifaddr) { in loopback_init()
|
/Zephyr-latest/samples/net/mdns_responder/src/ |
D | vlan.c | 46 struct net_if_addr *ifaddr; in setup_iface() local 62 ifaddr = net_if_ipv6_addr_add(iface, &addr6, in setup_iface() 64 if (!ifaddr) { in setup_iface() 77 ifaddr = net_if_ipv4_addr_add(iface, &addr4, in setup_iface() 79 if (!ifaddr) { in setup_iface()
|
/Zephyr-latest/samples/net/sockets/echo_server/src/ |
D | vlan.c | 49 struct net_if_addr *ifaddr; in setup_iface() local 65 ifaddr = net_if_ipv6_addr_add(vlan, &addr6, in setup_iface() 67 if (!ifaddr) { in setup_iface() 80 ifaddr = net_if_ipv4_addr_add(vlan, &addr4, in setup_iface() 82 if (!ifaddr) { in setup_iface()
|
D | tunnel.c | 45 struct net_if_addr *ifaddr; in setup_iface() local 57 ifaddr = net_if_ipv6_addr_add(iface, in setup_iface() 60 if (!ifaddr) { in setup_iface() 68 ifaddr = net_if_ipv4_addr_add(iface, in setup_iface() 71 if (!ifaddr) { in setup_iface()
|
/Zephyr-latest/samples/net/sockets/txtime/src/ |
D | vlan.c | 45 struct net_if_addr *ifaddr; in setup_iface() local 66 ifaddr = net_if_ipv6_addr_add(iface, &addr6, in setup_iface() 68 if (!ifaddr) { in setup_iface() 81 ifaddr = net_if_ipv4_addr_add(iface, &addr4, in setup_iface() 83 if (!ifaddr) { in setup_iface()
|
/Zephyr-latest/tests/net/tx_timestamp/src/ |
D | main.c | 346 struct net_if_addr *ifaddr; in test_address_setup() local 359 ifaddr = net_if_ipv6_addr_add(iface1, &my_addr1, in test_address_setup() 361 if (!ifaddr) { in test_address_setup() 364 zassert_not_null(ifaddr, "addr1\n"); in test_address_setup() 368 ifaddr->addr_state = NET_ADDR_PREFERRED; in test_address_setup() 370 ifaddr = net_if_ipv6_addr_add(iface1, &ll_addr, in test_address_setup() 372 if (!ifaddr) { in test_address_setup() 375 zassert_not_null(ifaddr, "ll_addr\n"); in test_address_setup() 378 ifaddr->addr_state = NET_ADDR_PREFERRED; in test_address_setup() 380 ifaddr = net_if_ipv6_addr_add(iface2, &my_addr2, in test_address_setup() [all …]
|
/Zephyr-latest/samples/net/vlan/src/ |
D | main.c | 43 struct net_if_addr *ifaddr; in setup_iface() local 59 ifaddr = net_if_ipv6_addr_add(vlan, &addr6, in setup_iface() 61 if (!ifaddr) { in setup_iface() 88 ifaddr = net_if_ipv4_addr_add(vlan, &addr4, in setup_iface() 90 if (!ifaddr) { in setup_iface()
|
/Zephyr-latest/tests/net/ptp/clock/src/ |
D | main.c | 355 struct net_if_addr *ifaddr; in test_address_setup() local 366 ifaddr = net_if_ipv6_addr_add(iface1, &my_addr1, in test_address_setup() 368 if (!ifaddr) { in test_address_setup() 371 zassert_not_null(ifaddr, "addr1\n"); in test_address_setup() 375 ifaddr->addr_state = NET_ADDR_PREFERRED; in test_address_setup() 377 ifaddr = net_if_ipv6_addr_add(iface1, &ll_addr, in test_address_setup() 379 if (!ifaddr) { in test_address_setup() 382 zassert_not_null(ifaddr, "ll_addr\n"); in test_address_setup() 385 ifaddr->addr_state = NET_ADDR_PREFERRED; in test_address_setup() 387 ifaddr = net_if_ipv6_addr_add(iface2, &my_addr2, in test_address_setup() [all …]
|
/Zephyr-latest/tests/net/ipv6/src/ |
D | main.c | 581 struct net_if_addr *ifaddr = NULL, *ifaddr2; in ipv6_setup() local 603 ifaddr = &iface->config.ip.ipv6->unicast[i]; in ipv6_setup() 605 ifaddr->is_used = true; in ipv6_setup() 606 ifaddr->address.family = AF_INET6; in ipv6_setup() 607 ifaddr->addr_type = NET_ADDR_MANUAL; in ipv6_setup() 608 ifaddr->addr_state = NET_ADDR_PREFERRED; in ipv6_setup() 609 ifaddr_record = ifaddr; in ipv6_setup() 610 net_ipaddr_copy(&ifaddr->address.in6_addr, &my_addr); in ipv6_setup() 615 zassert_true(ifaddr2 == ifaddr, "Invalid ifaddr (%p vs %p)\n", ifaddr, ifaddr2); in ipv6_setup() 895 struct net_if_addr *ifaddr; in ra_message() local [all …]
|
/Zephyr-latest/subsys/net/lib/zperf/ |
D | zperf_common.c | 54 struct net_if_addr *ifaddr; in zperf_get_ipv6_addr() local 69 ifaddr = net_if_ipv6_addr_add(net_if_get_default(), in zperf_get_ipv6_addr() 71 if (!ifaddr) { in zperf_get_ipv6_addr() 90 struct net_if_addr *ifaddr; in zperf_get_ipv4_addr() local 102 ifaddr = net_if_ipv4_addr_add(net_if_get_default(), in zperf_get_ipv4_addr() 104 if (!ifaddr) { in zperf_get_ipv4_addr()
|
/Zephyr-latest/tests/net/virtual/src/ |
D | main.c | 384 struct net_if_addr *ifaddr; in test_address_setup() local 398 ifaddr = net_if_ipv6_addr_add(eth, &my_addr1, NET_ADDR_MANUAL, 0); in test_address_setup() 399 if (!ifaddr) { in test_address_setup() 402 zassert_not_null(ifaddr, "eth addr"); in test_address_setup() 406 ifaddr->addr_state = NET_ADDR_PREFERRED; in test_address_setup() 408 ifaddr = net_if_ipv4_addr_add(eth, &my_addr, NET_ADDR_MANUAL, 0); in test_address_setup() 409 if (!ifaddr) { in test_address_setup() 412 zassert_not_null(ifaddr, "eth addr"); in test_address_setup() 415 ifaddr->addr_state = NET_ADDR_PREFERRED; in test_address_setup() 419 ifaddr = net_if_ipv6_addr_add(eth, &ll_addr, NET_ADDR_MANUAL, 0); in test_address_setup() [all …]
|
/Zephyr-latest/tests/net/iface/src/ |
D | main.c | 329 struct net_if_addr *ifaddr; in iface_setup() local 396 ifaddr = net_if_ipv6_addr_add(iface1, &my_addr1, in iface_setup() 398 if (!ifaddr) { in iface_setup() 401 zassert_not_null(ifaddr, "addr1"); in iface_setup() 404 ifaddr = net_if_ipv4_addr_add(iface1, &my_ipv4_addr1, in iface_setup() 406 if (!ifaddr) { in iface_setup() 409 zassert_not_null(ifaddr, "ipv4 addr1"); in iface_setup() 413 ifaddr->addr_state = NET_ADDR_PREFERRED; in iface_setup() 415 ifaddr = net_if_ipv6_addr_add(iface1, &ll_addr, in iface_setup() 417 if (!ifaddr) { in iface_setup() [all …]
|
/Zephyr-latest/subsys/net/lib/config/ |
D | init.c | 272 struct net_if_addr *ifaddr; in ipv6_event_handler() local 274 ifaddr = net_if_ipv6_addr_lookup(&laddr, &iface); in ipv6_event_handler() 275 if (!ifaddr || in ipv6_event_handler() 276 !(net_ipv6_addr_cmp(&ifaddr->address.in6_addr, &laddr) && in ipv6_event_handler() 277 ifaddr->addr_state == NET_ADDR_PREFERRED)) { in ipv6_event_handler() 286 if (ifaddr->addr_type == NET_ADDR_DHCP) { in ipv6_event_handler() 290 remaining = net_timeout_remaining(&ifaddr->lifetime, in ipv6_event_handler() 293 if (!ifaddr->is_infinite) { in ipv6_event_handler() 312 struct net_if_addr *ifaddr; in setup_ipv6() local 341 ifaddr = net_if_ipv6_addr_add(iface, &laddr, in setup_ipv6() [all …]
|
/Zephyr-latest/samples/net/lldp/src/ |
D | main.c | 66 struct net_if_addr *ifaddr; in setup_iface() local 81 ifaddr = net_if_ipv6_addr_add(iface, &addr6, NET_ADDR_MANUAL, 0); in setup_iface() 82 if (!ifaddr) { in setup_iface() 92 ifaddr = net_if_ipv4_addr_add(iface, &addr4, NET_ADDR_MANUAL, 0); in setup_iface() 93 if (!ifaddr) { in setup_iface()
|
/Zephyr-latest/tests/net/vlan/src/ |
D | main.c | 416 struct net_if_addr *ifaddr; in test_address_setup() local 427 ifaddr = net_if_ipv6_addr_add(iface1, &my_addr1, in test_address_setup() 429 if (!ifaddr) { in test_address_setup() 432 zassert_not_null(ifaddr, "addr1"); in test_address_setup() 436 ifaddr->addr_state = NET_ADDR_PREFERRED; in test_address_setup() 438 ifaddr = net_if_ipv6_addr_add(iface1, &ll_addr, in test_address_setup() 440 if (!ifaddr) { in test_address_setup() 443 zassert_not_null(ifaddr, "ll_addr"); in test_address_setup() 446 ifaddr->addr_state = NET_ADDR_PREFERRED; in test_address_setup() 448 ifaddr = net_if_ipv6_addr_add(iface2, &my_addr2, in test_address_setup() [all …]
|
/Zephyr-latest/tests/net/traffic_class/src/ |
D | main.c | 280 struct net_if_addr *ifaddr; in address_setup() local 287 ifaddr = net_if_ipv6_addr_add(iface1, &my_addr1, in address_setup() 289 if (!ifaddr) { in address_setup() 292 zassert_not_null(ifaddr, "addr1"); in address_setup() 296 ifaddr->addr_state = NET_ADDR_PREFERRED; in address_setup() 298 ifaddr = net_if_ipv6_addr_add(iface1, &ll_addr, in address_setup() 300 if (!ifaddr) { in address_setup() 303 zassert_not_null(ifaddr, "ll_addr"); in address_setup() 306 ifaddr->addr_state = NET_ADDR_PREFERRED; in address_setup() 308 ifaddr = net_if_ipv6_addr_add(iface1, &my_addr2, in address_setup() [all …]
|
/Zephyr-latest/tests/net/shell/src/ |
D | main.c | 147 struct net_if_addr *ifaddr; in test_setup() local 192 ifaddr = net_if_ipv6_addr_add(iface, &in6addr_my, NET_ADDR_MANUAL, 0); in test_setup() 193 if (!ifaddr) { in test_setup() 199 ifaddr = net_if_ipv4_addr_add(iface, &in4addr_my, NET_ADDR_MANUAL, 0); in test_setup() 200 if (!ifaddr) { in test_setup()
|