Home
last modified time | relevance | path

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

/Zephyr-latest/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-latest/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()
Droute.c1088 net_pkt_lladdr_dst(pkt)->addr = lladdr->addr; in net_route_packet()
1089 net_pkt_lladdr_dst(pkt)->type = lladdr->type; in net_route_packet()
1090 net_pkt_lladdr_dst(pkt)->len = lladdr->len; in net_route_packet()
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.c198 memcpy(net_pkt_lladdr_dst(pkt), net_pkt_lladdr_if(pkt), in copy_ll_addr()
Dnet_pkt.c2084 memcpy(net_pkt_lladdr_dst(clone_pkt), net_pkt_lladdr_dst(pkt),
2095 clone_pkt_lladdr(pkt, clone_pkt, net_pkt_lladdr_dst(clone_pkt));
Dipv6_nbr.c863 if ((net_pkt_lladdr_dst(pkt)->addr && in net_ipv6_prepare_for_send()
961 net_pkt_lladdr_dst(pkt)->addr = lladdr->addr; in net_ipv6_prepare_for_send()
962 net_pkt_lladdr_dst(pkt)->len = lladdr->len; in net_ipv6_prepare_for_send()
Dnet_if.c243 net_pkt_lladdr_dst(pkt)->addr, in net_if_tx()
244 net_pkt_lladdr_dst(pkt)->len) == 0) { in net_if_tx()
247 ll_dst.type = net_pkt_lladdr_dst(pkt)->type; in net_if_tx()
456 struct net_linkaddr *dst = net_pkt_lladdr_dst(pkt); in net_if_send_data()
Dtcp.c367 net_pkt_lladdr_dst(pkt)->type == NET_LINK_IEEE802154))
/Zephyr-latest/subsys/net/l2/ethernet/
Darp.c313 net_pkt_lladdr_dst(pkt)->addr = (uint8_t *)net_eth_broadcast_addr(); in arp_prepare()
314 net_pkt_lladdr_dst(pkt)->len = sizeof(struct net_eth_addr); in arp_prepare()
456 net_pkt_lladdr_dst(pkt)->addr = (uint8_t *)&entry->eth; in net_arp_prepare()
457 net_pkt_lladdr_dst(pkt)->len = sizeof(struct net_eth_addr); in net_arp_prepare()
460 net_sprint_ll_addr(net_pkt_lladdr_dst(pkt)->addr, in net_arp_prepare()
521 net_pkt_lladdr_dst(pkt)->addr = (uint8_t *)net_eth_broadcast_addr(); in arp_gratuitous_send()
522 net_pkt_lladdr_dst(pkt)->len = sizeof(struct net_eth_addr); in arp_gratuitous_send()
685 net_pkt_lladdr_dst(pkt)->len = sizeof(struct net_eth_addr); in net_arp_update()
686 net_pkt_lladdr_dst(pkt)->addr = in net_arp_update()
751 net_pkt_lladdr_dst(pkt)->addr = (uint8_t *)&hdr->dst_hwaddr.addr; in arp_prepare_reply()
[all …]
Dethernet.c358 lladdr = net_pkt_lladdr_dst(pkt); in ethernet_recv()
369 net_pkt_lladdr_dst(pkt), in ethernet_recv()
374 net_pkt_lladdr_dst(pkt)); in ethernet_recv()
599 memcpy(&hdr_vlan->dst, net_pkt_lladdr_dst(pkt)->addr, in ethernet_fill_header()
625 memcpy(&hdr->dst, net_pkt_lladdr_dst(pkt)->addr, in ethernet_fill_header()
745 net_pkt_lladdr_dst(pkt)->addr = dst_addr->sll_addr; in ethernet_send()
746 net_pkt_lladdr_dst(pkt)->len = in ethernet_send()
773 if (!net_pkt_lladdr_dst(pkt)->addr) { in ethernet_send()
774 net_pkt_lladdr_dst(pkt)->addr = (uint8_t *)broadcast_eth_addr.addr; in ethernet_send()
775 net_pkt_lladdr_dst(pkt)->len = sizeof(struct net_eth_addr); in ethernet_send()
Dbridge.c346 if (is_link_local_addr((struct net_eth_addr *)net_pkt_lladdr_dst(pkt))) { in bridge_iface_process()
/Zephyr-latest/subsys/net/l2/ieee802154/
Dieee802154.c444 swap_and_set_pkt_ll_addr(net_pkt_lladdr_dst(pkt), true, fs->fc.dst_addr_mode, in ieee802154_recv()
507 net_pkt_lladdr_dst(pkt)->addr = dst_addr->sll_addr; in ieee802154_send()
508 net_pkt_lladdr_dst(pkt)->len = dst_addr->sll_halen; in ieee802154_send()
517 ieee802154_compute_header_and_authtag_len(iface, net_pkt_lladdr_dst(pkt), in ieee802154_send()
564 if (!(send_raw || ieee802154_create_data_frame(ctx, net_pkt_lladdr_dst(pkt), in ieee802154_send()
/Zephyr-latest/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-latest/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-latest/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-latest/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-latest/subsys/net/lib/sockets/
Dsockets_packet.c195 net_pkt_lladdr_dst(pkt)); in zpacket_set_source_addr()
/Zephyr-latest/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-latest/include/zephyr/net/
Dnet_pkt.h1285 static inline struct net_linkaddr *net_pkt_lladdr_dst(struct net_pkt *pkt) in net_pkt_lladdr_dst() function
1294 net_pkt_lladdr_src(pkt)->addr = net_pkt_lladdr_dst(pkt)->addr; in net_pkt_lladdr_swap()
1295 net_pkt_lladdr_dst(pkt)->addr = addr; in net_pkt_lladdr_swap()
/Zephyr-latest/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-latest/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()