/Zephyr-Core-3.5.0/tests/net/neighbor/src/ |
D | main.c | 74 struct net_linkaddr lladdr; in ZTEST() local 93 lladdr.len = sizeof(struct net_eth_addr); in ZTEST() 98 lladdr.addr = eth_addr->addr; in ZTEST() 100 ret = net_nbr_link(nbr, iface1, &lladdr); in ZTEST() 104 net_sprint_ll_addr(lladdr.addr, lladdr.len), in ZTEST() 114 lladdr.addr = addrs[0]->addr; in ZTEST() 115 nbr = net_nbr_lookup(&net_test_neighbor.table, iface1, &lladdr); in ZTEST() 121 lladdr.addr = eth_addr->addr; in ZTEST() 123 ret = net_nbr_unlink(nbr, &lladdr); in ZTEST() 125 net_sprint_ll_addr(lladdr.addr, lladdr.len), in ZTEST() [all …]
|
/Zephyr-Core-3.5.0/subsys/net/ip/ |
D | nbr.c | 87 const struct net_linkaddr *lladdr) in net_nbr_link() argument 101 !memcmp(lladdr->addr, in net_nbr_link() 102 net_neighbor_lladdr[i].lladdr.addr, in net_nbr_link() 103 lladdr->len)) { in net_nbr_link() 126 net_linkaddr_set(&net_neighbor_lladdr[avail].lladdr, lladdr->addr, in net_nbr_link() 127 lladdr->len); in net_nbr_link() 128 net_neighbor_lladdr[avail].lladdr.len = lladdr->len; in net_nbr_link() 129 net_neighbor_lladdr[avail].lladdr.type = lladdr->type; in net_nbr_link() 136 int net_nbr_unlink(struct net_nbr *nbr, struct net_linkaddr *lladdr) in net_nbr_unlink() argument 138 ARG_UNUSED(lladdr); in net_nbr_unlink() [all …]
|
D | nbr.h | 31 struct net_linkaddr_storage lladdr; member 171 struct net_linkaddr *lladdr); 181 const struct net_linkaddr *lladdr); 189 int net_nbr_unlink(struct net_nbr *nbr, struct net_linkaddr *lladdr);
|
D | ipv6_nbr.c | 460 struct net_linkaddr lladdr = { in dbg_update_neighbor_lladdr_raw() local 465 dbg_update_neighbor_lladdr(&lladdr, old_lladdr, addr); in dbg_update_neighbor_lladdr_raw() 583 const struct net_linkaddr *lladdr, in net_ipv6_nbr_add() argument 597 lladdr ? net_sprint_ll_addr(lladdr->addr, lladdr->len) : "unknown"); in net_ipv6_nbr_add() 601 if (lladdr && net_nbr_link(nbr, iface, lladdr) == -EALREADY && in net_ipv6_nbr_add() 608 if (memcmp(cached_lladdr->addr, lladdr->addr, lladdr->len)) { in net_ipv6_nbr_add() 609 dbg_update_neighbor_lladdr(lladdr, cached_lladdr, addr); in net_ipv6_nbr_add() 611 net_linkaddr_set(cached_lladdr, lladdr->addr, in net_ipv6_nbr_add() 612 lladdr->len); in net_ipv6_nbr_add() 634 lladdr ? net_sprint_ll_addr(lladdr->addr, lladdr->len) : "[unknown]", in net_ipv6_nbr_add() [all …]
|
D | route.c | 998 struct net_linkaddr_storage *lladdr; in net_route_packet() local 1012 lladdr = net_nbr_get_lladdr(nbr->idx); in net_route_packet() 1013 if (!lladdr) { in net_route_packet() 1041 if (!memcmp(net_pkt_lladdr_src(pkt)->addr, lladdr->addr, in net_route_packet() 1042 lladdr->len)) { in net_route_packet() 1063 net_pkt_lladdr_dst(pkt)->addr = lladdr->addr; in net_route_packet() 1064 net_pkt_lladdr_dst(pkt)->type = lladdr->type; in net_route_packet() 1065 net_pkt_lladdr_dst(pkt)->len = lladdr->len; in net_route_packet()
|
D | ipv6.h | 342 const struct net_linkaddr *lladdr, 348 const struct net_linkaddr *lladdr, in net_ipv6_nbr_add() argument
|
D | dhcpv6.c | 2077 struct net_linkaddr *lladdr = net_if_get_link_addr(iface); in dhcpv6_generate_client_duid() local 2086 memcpy(duid_ll->ll_addr, lladdr->addr, lladdr->len); in dhcpv6_generate_client_duid() 2088 clientid->length = DHCPV6_DUID_LL_HEADER_SIZE + lladdr->len; in dhcpv6_generate_client_duid()
|
D | net_pkt.c | 1771 struct net_linkaddr *lladdr) argument 1775 if (!lladdr->addr) 1778 ll_addr_offset = net_pkt_find_offset(pkt, lladdr->addr); 1783 lladdr->addr = net_pkt_cursor_get_pos(clone_pkt);
|
D | net_shell.c | 764 struct net_linkaddr_storage *lladdr; in route_cb() local 777 lladdr = net_nbr_get_lladdr(nexthop_route->nbr->idx); in route_cb() 779 PR("addr : %s\t", net_sprint_ll_addr(lladdr->addr, in route_cb() 780 lladdr->len)); in route_cb()
|
D | net_if.c | 4157 void net_if_call_link_cb(struct net_if *iface, struct net_linkaddr *lladdr, in net_if_call_link_cb() argument 4165 link->cb(iface, lladdr, status); in net_if_call_link_cb()
|
/Zephyr-Core-3.5.0/include/zephyr/net/ |
D | net_ip.h | 1249 struct net_linkaddr *lladdr) in net_ipv6_addr_create_iid() argument 1254 switch (lladdr->len) { in net_ipv6_addr_create_iid() 1259 if (lladdr->type == NET_LINK_IEEE802154) { in net_ipv6_addr_create_iid() 1264 addr->s6_addr[14] = lladdr->addr[0]; in net_ipv6_addr_create_iid() 1265 addr->s6_addr[15] = lladdr->addr[1]; in net_ipv6_addr_create_iid() 1273 memcpy(&addr->s6_addr[8], lladdr->addr, 3); in net_ipv6_addr_create_iid() 1276 memcpy(&addr->s6_addr[13], lladdr->addr + 3, 3); in net_ipv6_addr_create_iid() 1282 if (lladdr->type == NET_LINK_BLUETOOTH) { in net_ipv6_addr_create_iid() 1287 if (lladdr->type == NET_LINK_ETHERNET) { in net_ipv6_addr_create_iid() 1293 memcpy(&addr->s6_addr[8], lladdr->addr, lladdr->len); in net_ipv6_addr_create_iid() [all …]
|
D | virtual.h | 150 struct net_linkaddr_storage lladdr; member
|
D | net_if.h | 2292 void net_if_call_link_cb(struct net_if *iface, struct net_linkaddr *lladdr,
|
/Zephyr-Core-3.5.0/subsys/net/l2/virtual/ |
D | virtual.c | 182 random_linkaddr(ctx->lladdr.addr, sizeof(ctx->lladdr.addr)); in net_virtual_interface_attach() 184 ctx->lladdr.len = sizeof(ctx->lladdr.addr); in net_virtual_interface_attach() 185 ctx->lladdr.type = NET_LINK_UNKNOWN; in net_virtual_interface_attach() 187 net_if_set_link_addr(virtual_iface, ctx->lladdr.addr, in net_virtual_interface_attach() 188 ctx->lladdr.len, ctx->lladdr.type); in net_virtual_interface_attach()
|
/Zephyr-Core-3.5.0/tests/net/ipv6/src/ |
D | main.c | 339 struct net_linkaddr lladdr; in add_neighbor() local 348 lladdr.len = 6U; in add_neighbor() 349 lladdr.addr = llstorage.addr; in add_neighbor() 350 lladdr.type = NET_LINK_ETHERNET; in add_neighbor() 352 nbr = net_ipv6_nbr_add(TEST_NET_IF, &peer_addr, &lladdr, in add_neighbor() 361 struct net_linkaddr lladdr; in rm_neighbor() local 370 lladdr.len = 6U; in rm_neighbor() 371 lladdr.addr = llstorage.addr; in rm_neighbor() 372 lladdr.type = NET_LINK_ETHERNET; in rm_neighbor() 386 struct net_linkaddr lladdr; in add_max_neighbors() local [all …]
|
/Zephyr-Core-3.5.0/tests/net/tx_timestamp/src/ |
D | main.c | 403 struct net_linkaddr lladdr; in add_neighbor() local 413 lladdr.len = 6U; in add_neighbor() 414 lladdr.addr = llstorage.addr; in add_neighbor() 415 lladdr.type = NET_LINK_ETHERNET; in add_neighbor() 417 nbr = net_ipv6_nbr_add(iface, addr, &lladdr, false, in add_neighbor()
|
/Zephyr-Core-3.5.0/tests/net/checksum_offload/src/ |
D | main.c | 156 uint8_t lladdr[6]; in eth_tx_offloading_disabled() local 186 memcpy(lladdr, in eth_tx_offloading_disabled() 188 sizeof(lladdr)); in eth_tx_offloading_disabled() 191 sizeof(lladdr)); in eth_tx_offloading_disabled() 193 lladdr, sizeof(lladdr)); in eth_tx_offloading_disabled() 439 struct net_linkaddr lladdr; in add_neighbor() local 449 lladdr.len = 6U; in add_neighbor() 450 lladdr.addr = llstorage.addr; in add_neighbor() 451 lladdr.type = NET_LINK_ETHERNET; in add_neighbor() 453 nbr = net_ipv6_nbr_add(iface, addr, &lladdr, false, in add_neighbor()
|
/Zephyr-Core-3.5.0/tests/net/virtual/src/ |
D | main.c | 498 struct net_linkaddr lladdr; in add_neighbor() local 508 lladdr.len = 6U; in add_neighbor() 509 lladdr.addr = llstorage.addr; in add_neighbor() 510 lladdr.type = NET_LINK_ETHERNET; in add_neighbor() 512 nbr = net_ipv6_nbr_add(iface, addr, &lladdr, false, in add_neighbor() 526 struct net_eth_addr lladdr; in add_to_arp() local 528 lladdr.addr[0] = sys_rand32_get(); in add_to_arp() 529 lladdr.addr[1] = 0x08; in add_to_arp() 530 lladdr.addr[2] = 0x09; in add_to_arp() 531 lladdr.addr[3] = 0x10; in add_to_arp() [all …]
|
/Zephyr-Core-3.5.0/subsys/net/l2/ethernet/ |
D | ethernet.c | 193 struct net_linkaddr *lladdr; in ethernet_recv() local 269 lladdr = net_pkt_lladdr_src(pkt); in ethernet_recv() 270 lladdr->addr = hdr->src.addr; in ethernet_recv() 271 lladdr->len = sizeof(struct net_eth_addr); in ethernet_recv() 272 lladdr->type = NET_LINK_ETHERNET; in ethernet_recv() 274 lladdr = net_pkt_lladdr_dst(pkt); in ethernet_recv() 275 lladdr->addr = hdr->dst.addr; in ethernet_recv() 276 lladdr->len = sizeof(struct net_eth_addr); in ethernet_recv() 277 lladdr->type = NET_LINK_ETHERNET; in ethernet_recv() 301 if (!net_eth_is_addr_broadcast((struct net_eth_addr *)lladdr->addr) && in ethernet_recv() [all …]
|
/Zephyr-Core-3.5.0/subsys/net/lib/sockets/ |
D | sockets_packet.c | 145 struct net_linkaddr *lladdr) in zpacket_set_eth_pkttype() argument 147 if (net_eth_is_addr_broadcast((struct net_eth_addr *)lladdr->addr)) { in zpacket_set_eth_pkttype() 150 (struct net_eth_addr *)lladdr->addr)) { in zpacket_set_eth_pkttype() 152 } else if (!net_linkaddr_cmp(net_if_get_link_addr(iface), lladdr)) { in zpacket_set_eth_pkttype()
|
/Zephyr-Core-3.5.0/tests/net/vlan/src/ |
D | main.c | 685 struct net_linkaddr lladdr; in add_neighbor() local 695 lladdr.len = 6U; in add_neighbor() 696 lladdr.addr = llstorage.addr; in add_neighbor() 697 lladdr.type = NET_LINK_ETHERNET; in add_neighbor() 699 nbr = net_ipv6_nbr_add(iface, addr, &lladdr, false, in add_neighbor()
|
/Zephyr-Core-3.5.0/tests/net/traffic_class/src/ |
D | main.c | 349 struct net_linkaddr lladdr; in add_neighbor() local 359 lladdr.len = 6U; in add_neighbor() 360 lladdr.addr = llstorage.addr; in add_neighbor() 361 lladdr.type = NET_LINK_ETHERNET; in add_neighbor() 363 nbr = net_ipv6_nbr_add(iface, addr, &lladdr, false, in add_neighbor()
|
/Zephyr-Core-3.5.0/tests/net/socket/offload_dispatcher/src/ |
D | main.c | 374 static uint8_t lladdr[] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01 }; variable 380 net_if_set_link_addr(iface, lladdr, 6, NET_LINK_DUMMY); in dummy_native_iface_init()
|
/Zephyr-Core-3.5.0/tests/net/dhcpv6/src/ |
D | main.c | 173 struct in6_addr lladdr; in dhcpv6_tests_setup() local 177 net_ipv6_addr_create_iid(&lladdr, net_if_get_link_addr(test_ctx.iface)); in dhcpv6_tests_setup() 178 (void)net_if_ipv6_addr_add(test_ctx.iface, &lladdr, NET_ADDR_AUTOCONF, 0); in dhcpv6_tests_setup()
|
/Zephyr-Core-3.5.0/tests/net/ipv6_fragment/src/ |
D | main.c | 1601 struct net_linkaddr *lladdr) in add_nbr() argument 1605 nbr = net_ipv6_nbr_add(iface, addr, lladdr, false, in add_nbr()
|