Home
last modified time | relevance | path

Searched refs:net_pkt_lladdr_src (Results 1 – 21 of 21) sorted by relevance

/Zephyr-latest/subsys/net/l2/canbus/
Dcanbus_raw.c19 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/
Dicmpv6.c149 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()
Droute.c1058 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()
D6lo.c368 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()
Dicmpv4.c583 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()
Dnet_core.c196 memcpy(net_pkt_lladdr_src(pkt), net_pkt_lladdr_if(pkt), in copy_ll_addr()
Dnet_pkt.c2082 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));
Dipv6_nbr.c1092 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()
Dnet_if.c495 !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/
Darp.c302 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()
Dethernet.c353 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/
Dieee802154.c441 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/
Dcooked.c449 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/
Dmain.c808 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/
Dlldp.c144 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/
Dieee802154_test.c745 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/
Dnet_pkt.h1280 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/
Dmain.c368 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/
Dgptp_messages.c174 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/
Dmain.c297 memcpy(net_pkt_lladdr_src(pkt), in create_pkt()
/Zephyr-latest/tests/net/6lo/src/
Dmain.c477 net_pkt_lladdr_src(pkt)->addr = src_mac; in create_pkt()
478 net_pkt_lladdr_src(pkt)->len = 8U; in create_pkt()