/Zephyr-latest/subsys/net/l2/canbus/ |
D | canbus_raw.c | 19 net_pkt_lladdr_src(pkt)->addr = NULL; in canbus_recv() 20 net_pkt_lladdr_src(pkt)->len = 0U; in canbus_recv() 21 net_pkt_lladdr_src(pkt)->type = NET_LINK_CANBUS_RAW; in canbus_recv()
|
/Zephyr-latest/subsys/net/ip/ |
D | icmpv6.c | 149 net_pkt_lladdr_src(reply)->addr = NULL; in icmpv6_handle_echo_request() 237 net_pkt_lladdr_src(orig)->len * 2 + in net_icmpv6_send_error() 260 ret = net_pkt_write(pkt, net_pkt_lladdr_src(orig)->addr, in net_icmpv6_send_error() 261 net_pkt_lladdr_src(orig)->len); in net_icmpv6_send_error() 278 net_pkt_lladdr_src(pkt)->addr = pkt->buffer->data; in net_icmpv6_send_error() 280 net_buf_pull_mem(pkt->buffer, net_pkt_lladdr_src(orig)->len); in net_icmpv6_send_error() 282 net_pkt_lladdr_src(pkt)->len = net_pkt_lladdr_dst(orig)->len; in net_icmpv6_send_error() 283 net_pkt_lladdr_dst(pkt)->len = net_pkt_lladdr_src(orig)->len; in net_icmpv6_send_error()
|
D | route.c | 1058 if (!net_pkt_lladdr_src(pkt)->addr) { in net_route_packet() 1068 if (!memcmp(net_pkt_lladdr_src(pkt)->addr, lladdr->addr, in net_route_packet() 1082 net_pkt_lladdr_src(pkt)->addr = net_pkt_lladdr_if(pkt)->addr; in net_route_packet() 1083 net_pkt_lladdr_src(pkt)->type = net_pkt_lladdr_if(pkt)->type; in net_route_packet() 1084 net_pkt_lladdr_src(pkt)->len = net_pkt_lladdr_if(pkt)->len; in net_route_packet() 1116 net_pkt_lladdr_src(pkt)->addr = net_pkt_lladdr_if(pkt)->addr; in net_route_packet_if() 1117 net_pkt_lladdr_src(pkt)->type = net_pkt_lladdr_if(pkt)->type; in net_route_packet_if() 1118 net_pkt_lladdr_src(pkt)->len = net_pkt_lladdr_if(pkt)->len; in net_route_packet_if()
|
D | 6lo.c | 368 NET_ASSERT(net_pkt_lladdr_src(pkt)->addr); in compress_sa() 372 net_pkt_lladdr_src(pkt))) { in compress_sa() 414 NET_ASSERT(net_pkt_lladdr_src(pkt)->addr); in compress_sa_ctx() 420 net_pkt_lladdr_src(pkt))) { in compress_sa_ctx() 976 net_ipv6_addr_create_iid(&src_ip, net_pkt_lladdr_src(pkt)); in uncompress_sa() 1032 net_ipv6_addr_create_iid(&src_ip, net_pkt_lladdr_src(pkt)); in uncompress_sa_ctx()
|
D | icmpv4.c | 583 net_pkt_lladdr_dst(pkt)->addr = net_pkt_lladdr_src(orig)->addr; in net_icmpv4_send_error() 584 net_pkt_lladdr_dst(pkt)->len = net_pkt_lladdr_src(orig)->len; in net_icmpv4_send_error()
|
D | net_core.c | 196 memcpy(net_pkt_lladdr_src(pkt), net_pkt_lladdr_if(pkt), in copy_ll_addr()
|
D | net_pkt.c | 2082 memcpy(net_pkt_lladdr_src(clone_pkt), net_pkt_lladdr_src(pkt), 2094 clone_pkt_lladdr(pkt, clone_pkt, net_pkt_lladdr_src(clone_pkt));
|
D | ipv6_nbr.c | 1092 if (net_pkt_lladdr_src(pkt)->len < llstorage->len) { in read_llao() 1093 llstorage->len = net_pkt_lladdr_src(pkt)->len; in read_llao() 1679 lladdr.len = net_pkt_lladdr_src(pkt)->len; in handle_na_neighbor()
|
D | net_if.c | 495 !net_pkt_lladdr_src(pkt)->addr) { in net_if_send_data() 496 net_pkt_lladdr_src(pkt)->addr = net_pkt_lladdr_if(pkt)->addr; in net_if_send_data() 497 net_pkt_lladdr_src(pkt)->len = net_pkt_lladdr_if(pkt)->len; in net_if_send_data()
|
/Zephyr-latest/subsys/net/l2/ethernet/ |
D | arp.c | 302 net_pkt_lladdr_src(pkt)->addr = in arp_prepare() 307 net_pkt_lladdr_src(pkt)->addr = in arp_prepare() 311 net_pkt_lladdr_src(pkt)->len = sizeof(struct net_eth_addr); in arp_prepare() 326 memcpy(hdr->src_hwaddr.addr, net_pkt_lladdr_src(pkt)->addr, in arp_prepare() 452 net_pkt_lladdr_src(pkt)->addr = in net_arp_prepare() 454 net_pkt_lladdr_src(pkt)->len = sizeof(struct net_eth_addr); in net_arp_prepare() 518 net_pkt_lladdr_src(pkt)->addr = net_if_get_link_addr(iface)->addr; in arp_gratuitous_send() 519 net_pkt_lladdr_src(pkt)->len = sizeof(struct net_eth_addr); in arp_gratuitous_send() 748 net_pkt_lladdr_src(pkt)->addr = net_if_get_link_addr(iface)->addr; in arp_prepare_reply() 749 net_pkt_lladdr_src(pkt)->len = sizeof(struct net_eth_addr); in arp_prepare_reply()
|
D | ethernet.c | 353 lladdr = net_pkt_lladdr_src(pkt); in ethernet_recv() 368 net_pkt_lladdr_src(pkt), in ethernet_recv() 373 net_pkt_lladdr_src(pkt), in ethernet_recv() 603 memcpy(&hdr_vlan->src, net_pkt_lladdr_src(pkt)->addr, in ethernet_fill_header() 629 memcpy(&hdr->src, net_pkt_lladdr_src(pkt)->addr, in ethernet_fill_header() 748 net_pkt_lladdr_src(pkt)->addr = src_addr->sll_addr; in ethernet_send() 749 net_pkt_lladdr_src(pkt)->len = in ethernet_send()
|
/Zephyr-latest/subsys/net/l2/ieee802154/ |
D | ieee802154.c | 441 swap_and_set_pkt_ll_addr(net_pkt_lladdr_src(pkt), !fs->fc.pan_id_comp, in ieee802154_recv() 509 net_pkt_lladdr_src(pkt)->addr = src_addr->sll_addr; in ieee802154_send() 510 net_pkt_lladdr_src(pkt)->len = src_addr->sll_halen; in ieee802154_send() 518 net_pkt_lladdr_src(pkt), &ll_hdr_len, in ieee802154_send() 565 net_pkt_lladdr_src(pkt), in ieee802154_send()
|
/Zephyr-latest/subsys/net/lib/capture/ |
D | cooked.c | 449 net_pkt_lladdr_src(pkt)->addr = NULL; in net_capture_data() 450 net_pkt_lladdr_src(pkt)->len = 0U; in net_capture_data() 451 net_pkt_lladdr_src(pkt)->type = NET_LINK_DUMMY; in net_capture_data()
|
/Zephyr-latest/tests/net/net_pkt/src/ |
D | main.c | 808 net_pkt_lladdr_src(pkt)->addr = pkt->buffer->data; in ZTEST() 809 net_pkt_lladdr_src(pkt)->len = NET_LINK_ADDR_MAX_LENGTH; in ZTEST() 810 net_pkt_lladdr_src(pkt)->type = NET_LINK_ETHERNET; in ZTEST() 811 zassert_mem_equal(net_pkt_lladdr_src(pkt)->addr, buf, NET_LINK_ADDR_MAX_LENGTH); in ZTEST() 877 zassert_mem_equal(net_pkt_lladdr_src(cloned_pkt)->addr, buf, NET_LINK_ADDR_MAX_LENGTH); in ZTEST() 878 zassert_true(net_pkt_lladdr_src(cloned_pkt)->addr == cloned_pkt->buffer->data, in ZTEST()
|
/Zephyr-latest/subsys/net/l2/ethernet/lldp/ |
D | lldp.c | 144 net_pkt_lladdr_src(pkt)->addr = net_if_get_link_addr(lldp->iface)->addr; in lldp_send() 145 net_pkt_lladdr_src(pkt)->len = sizeof(struct net_eth_addr); in lldp_send()
|
/Zephyr-latest/tests/net/ieee802154/l2/src/ |
D | ieee802154_test.c | 745 net_pkt_lladdr_src(current_pkt)->addr = net_if_get_link_addr(net_iface)->addr; in test_dgram_packet_sending() 746 net_pkt_lladdr_src(current_pkt)->len = net_if_get_link_addr(net_iface)->len; in test_dgram_packet_sending() 832 net_iface, net_pkt_lladdr_dst(pkt), net_pkt_lladdr_src(pkt), in test_dgram_packet_reception() 852 net_pkt_lladdr_src(pkt), frame_buf, ll_hdr_len); in test_dgram_packet_reception()
|
/Zephyr-latest/include/zephyr/net/ |
D | net_pkt.h | 1280 static inline struct net_linkaddr *net_pkt_lladdr_src(struct net_pkt *pkt) in net_pkt_lladdr_src() function 1292 uint8_t *addr = net_pkt_lladdr_src(pkt)->addr; in net_pkt_lladdr_swap() 1294 net_pkt_lladdr_src(pkt)->addr = net_pkt_lladdr_dst(pkt)->addr; in net_pkt_lladdr_swap() 1300 net_pkt_lladdr_src(pkt)->addr = NULL; in net_pkt_lladdr_clear() 1301 net_pkt_lladdr_src(pkt)->len = 0U; in net_pkt_lladdr_clear()
|
/Zephyr-latest/tests/net/arp/src/ |
D | main.c | 368 net_pkt_lladdr_src(pkt)->addr = (uint8_t *)net_if_get_link_addr(iface); in ZTEST() 369 net_pkt_lladdr_src(pkt)->len = sizeof(struct net_eth_addr); in ZTEST()
|
/Zephyr-latest/subsys/net/l2/ethernet/gptp/ |
D | gptp_messages.c | 174 net_pkt_lladdr_src(pkt)->addr = net_if_get_link_addr(iface)->addr; in setup_gptp_frame_debug() 175 net_pkt_lladdr_src(pkt)->len = net_if_get_link_addr(iface)->len; in setup_gptp_frame_debug()
|
/Zephyr-latest/tests/net/ieee802154/6lo_fragment/src/ |
D | main.c | 297 memcpy(net_pkt_lladdr_src(pkt), in create_pkt()
|
/Zephyr-latest/tests/net/6lo/src/ |
D | main.c | 477 net_pkt_lladdr_src(pkt)->addr = src_mac; in create_pkt() 478 net_pkt_lladdr_src(pkt)->len = 8U; in create_pkt()
|