Home
last modified time | relevance | path

Searched refs:net_pkt_lladdr_dst (Results 1 – 23 of 23) sorted by relevance

/Zephyr-Core-3.7.0/subsys/net/l2/canbus/
Dcanbus_raw.c22 net_pkt_lladdr_dst(pkt)->addr = NULL; in canbus_recv()
23 net_pkt_lladdr_dst(pkt)->len = 0U; in canbus_recv()
24 net_pkt_lladdr_dst(pkt)->type = NET_LINK_CANBUS_RAW; in canbus_recv()
/Zephyr-Core-3.7.0/subsys/net/ip/
Dicmpv6.c148 net_pkt_lladdr_dst(reply)->addr = NULL; in icmpv6_handle_echo_request()
267 net_pkt_lladdr_dst(pkt)->addr = pkt->buffer->data; in net_icmpv6_send_error()
269 ret = net_pkt_write(pkt, net_pkt_lladdr_dst(orig)->addr, in net_icmpv6_send_error()
270 net_pkt_lladdr_dst(orig)->len); in net_icmpv6_send_error()
276 net_buf_pull_mem(pkt->buffer, net_pkt_lladdr_dst(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()
D6lo.c513 NET_ASSERT(net_pkt_lladdr_dst(pkt)->addr); in compress_da()
517 net_pkt_lladdr_dst(pkt))) { in compress_da()
563 net_pkt_lladdr_dst(pkt))) { in compress_da_ctx()
1183 net_ipv6_addr_create_iid(&dst_ip, net_pkt_lladdr_dst(pkt)); in uncompress_da()
1241 net_ipv6_addr_create_iid(&dst_ip, net_pkt_lladdr_dst(pkt)); in uncompress_da_ctx()
Dicmpv4.c582 net_pkt_lladdr_dst(pkt)->addr = net_pkt_lladdr_src(orig)->addr; in net_icmpv4_send_error()
583 net_pkt_lladdr_dst(pkt)->len = net_pkt_lladdr_src(orig)->len; in net_icmpv4_send_error()
Droute.c1087 net_pkt_lladdr_dst(pkt)->addr = lladdr->addr; in net_route_packet()
1088 net_pkt_lladdr_dst(pkt)->type = lladdr->type; in net_route_packet()
1089 net_pkt_lladdr_dst(pkt)->len = lladdr->len; in net_route_packet()
Dnet_core.c210 memcpy(net_pkt_lladdr_dst(pkt), net_pkt_lladdr_if(pkt), in copy_ll_addr()
Dnet_pkt.c1888 memcpy(net_pkt_lladdr_dst(clone_pkt), net_pkt_lladdr_dst(pkt),
1899 clone_pkt_lladdr(pkt, clone_pkt, net_pkt_lladdr_dst(clone_pkt));
Dipv6_nbr.c853 if ((net_pkt_lladdr_dst(pkt)->addr && in net_ipv6_prepare_for_send()
929 net_pkt_lladdr_dst(pkt)->addr = lladdr->addr; in net_ipv6_prepare_for_send()
930 net_pkt_lladdr_dst(pkt)->len = lladdr->len; in net_ipv6_prepare_for_send()
Dnet_if.c239 net_pkt_lladdr_dst(pkt)->addr, in net_if_tx()
240 net_pkt_lladdr_dst(pkt)->len) == 0) { in net_if_tx()
243 ll_dst.type = net_pkt_lladdr_dst(pkt)->type; in net_if_tx()
445 struct net_linkaddr *dst = net_pkt_lladdr_dst(pkt); in net_if_send_data()
Dtcp.c366 net_pkt_lladdr_dst(pkt)->type == NET_LINK_IEEE802154))
/Zephyr-Core-3.7.0/subsys/net/l2/ethernet/
Dethernet.c262 net_pkt_lladdr_dst(pkt)->addr = hdr->dst.addr; in ethernet_recv()
263 net_pkt_lladdr_dst(pkt)->len = sizeof(struct net_eth_addr); in ethernet_recv()
264 net_pkt_lladdr_dst(pkt)->type = NET_LINK_ETHERNET; in ethernet_recv()
351 lladdr = net_pkt_lladdr_dst(pkt); in ethernet_recv()
362 net_pkt_lladdr_dst(pkt), in ethernet_recv()
367 net_pkt_lladdr_dst(pkt)); in ethernet_recv()
540 memcpy(&hdr_vlan->dst, net_pkt_lladdr_dst(pkt)->addr, in ethernet_fill_header()
562 memcpy(&hdr->dst, net_pkt_lladdr_dst(pkt)->addr, in ethernet_fill_header()
675 net_pkt_lladdr_dst(pkt)->addr = dst_addr->sll_addr; in ethernet_send()
676 net_pkt_lladdr_dst(pkt)->len = in ethernet_send()
[all …]
Darp.c312 net_pkt_lladdr_dst(pkt)->addr = (uint8_t *)net_eth_broadcast_addr(); in arp_prepare()
313 net_pkt_lladdr_dst(pkt)->len = sizeof(struct net_eth_addr); in arp_prepare()
453 net_pkt_lladdr_dst(pkt)->addr = (uint8_t *)&entry->eth; in net_arp_prepare()
454 net_pkt_lladdr_dst(pkt)->len = sizeof(struct net_eth_addr); in net_arp_prepare()
457 net_sprint_ll_addr(net_pkt_lladdr_dst(pkt)->addr, in net_arp_prepare()
518 net_pkt_lladdr_dst(pkt)->addr = (uint8_t *)net_eth_broadcast_addr(); in arp_gratuitous_send()
519 net_pkt_lladdr_dst(pkt)->len = sizeof(struct net_eth_addr); in arp_gratuitous_send()
682 net_pkt_lladdr_dst(pkt)->len = sizeof(struct net_eth_addr); in net_arp_update()
683 net_pkt_lladdr_dst(pkt)->addr = in net_arp_update()
748 net_pkt_lladdr_dst(pkt)->addr = (uint8_t *)&hdr->dst_hwaddr.addr; in arp_prepare_reply()
[all …]
Dbridge.c177 if (is_link_local_addr((struct net_eth_addr *)net_pkt_lladdr_dst(pkt))) { in net_eth_bridge_input()
/Zephyr-Core-3.7.0/subsys/net/l2/ieee802154/
Dieee802154.c445 swap_and_set_pkt_ll_addr(net_pkt_lladdr_dst(pkt), true, fs->fc.dst_addr_mode, in ieee802154_recv()
508 net_pkt_lladdr_dst(pkt)->addr = dst_addr->sll_addr; in ieee802154_send()
509 net_pkt_lladdr_dst(pkt)->len = dst_addr->sll_halen; in ieee802154_send()
518 ieee802154_compute_header_and_authtag_len(iface, net_pkt_lladdr_dst(pkt), in ieee802154_send()
565 if (!(send_raw || ieee802154_create_data_frame(ctx, net_pkt_lladdr_dst(pkt), in ieee802154_send()
/Zephyr-Core-3.7.0/subsys/net/lib/capture/
Dcooked.c452 net_pkt_lladdr_dst(pkt)->addr = NULL; in net_capture_data()
453 net_pkt_lladdr_dst(pkt)->len = 0U; in net_capture_data()
454 net_pkt_lladdr_dst(pkt)->type = NET_LINK_DUMMY; in net_capture_data()
/Zephyr-Core-3.7.0/tests/net/ieee802154/6lo_fragment/src/
Dmain.c293 net_pkt_lladdr_dst(pkt)->addr = (uint8_t *)&dummy_short_addr; in create_pkt()
294 net_pkt_lladdr_dst(pkt)->len = sizeof(dummy_short_addr); in create_pkt()
295 net_pkt_lladdr_dst(pkt)->type = NET_LINK_IEEE802154; in create_pkt()
/Zephyr-Core-3.7.0/tests/net/net_pkt/src/
Dmain.c812 net_pkt_lladdr_dst(pkt)->addr = net_pkt_cursor_get_pos(pkt); in ZTEST()
813 net_pkt_lladdr_dst(pkt)->len = NET_LINK_ADDR_MAX_LENGTH; in ZTEST()
814 net_pkt_lladdr_dst(pkt)->type = NET_LINK_ETHERNET; in ZTEST()
815 zassert_mem_equal(net_pkt_lladdr_dst(pkt)->addr, &buf[6], NET_LINK_ADDR_MAX_LENGTH); in ZTEST()
881 zassert_mem_equal(net_pkt_lladdr_dst(cloned_pkt)->addr, &buf[6], NET_LINK_ADDR_MAX_LENGTH); in ZTEST()
882 zassert_true(net_pkt_lladdr_dst(cloned_pkt)->addr == net_pkt_cursor_get_pos(cloned_pkt), in ZTEST()
/Zephyr-Core-3.7.0/subsys/net/l2/ethernet/lldp/
Dlldp.c146 net_pkt_lladdr_dst(pkt)->addr = (uint8_t *)lldp_multicast_eth_addr.addr; in lldp_send()
147 net_pkt_lladdr_dst(pkt)->len = sizeof(struct net_eth_addr); in lldp_send()
/Zephyr-Core-3.7.0/subsys/net/lib/sockets/
Dsockets_packet.c195 net_pkt_lladdr_dst(pkt)); in zpacket_set_source_addr()
/Zephyr-Core-3.7.0/subsys/net/l2/ethernet/gptp/
Dgptp_messages.c177 net_pkt_lladdr_dst(pkt)->addr = (uint8_t *)&gptp_multicast_eth_addr; in setup_gptp_frame_debug()
178 net_pkt_lladdr_dst(pkt)->len = sizeof(struct net_eth_addr); in setup_gptp_frame_debug()
/Zephyr-Core-3.7.0/include/zephyr/net/
Dnet_pkt.h1253 static inline struct net_linkaddr *net_pkt_lladdr_dst(struct net_pkt *pkt) in net_pkt_lladdr_dst() function
1262 net_pkt_lladdr_src(pkt)->addr = net_pkt_lladdr_dst(pkt)->addr; in net_pkt_lladdr_swap()
1263 net_pkt_lladdr_dst(pkt)->addr = addr; in net_pkt_lladdr_swap()
/Zephyr-Core-3.7.0/tests/net/ieee802154/l2/src/
Dieee802154_test.c832 net_iface, net_pkt_lladdr_dst(pkt), net_pkt_lladdr_src(pkt), in test_dgram_packet_reception()
851 frame_result = ieee802154_create_data_frame(ctx, net_pkt_lladdr_dst(pkt), in test_dgram_packet_reception()
/Zephyr-Core-3.7.0/tests/net/6lo/src/
Dmain.c480 net_pkt_lladdr_dst(pkt)->addr = dst_mac; in create_pkt()
481 net_pkt_lladdr_dst(pkt)->len = 8U; in create_pkt()