Home
last modified time | relevance | path

Searched refs:hdr_vlan (Results 1 – 3 of 3) sorted by relevance

/Zephyr-Core-3.7.0/subsys/net/l2/ethernet/
Dethernet.c274 struct net_eth_vlan_hdr *hdr_vlan = in ethernet_recv() local
278 net_pkt_set_vlan_tci(pkt, ntohs(hdr_vlan->vlan.tci)); in ethernet_recv()
279 type = ntohs(hdr_vlan->type); in ethernet_recv()
533 struct net_eth_vlan_hdr *hdr_vlan; in ethernet_fill_header() local
535 hdr_vlan = (struct net_eth_vlan_hdr *)(hdr_frag->data); in ethernet_fill_header()
538 (!ethernet_fill_in_dst_on_ipv4_mcast(pkt, &hdr_vlan->dst) && in ethernet_fill_header()
539 !ethernet_fill_in_dst_on_ipv6_mcast(pkt, &hdr_vlan->dst))) { in ethernet_fill_header()
540 memcpy(&hdr_vlan->dst, net_pkt_lladdr_dst(pkt)->addr, in ethernet_fill_header()
544 memcpy(&hdr_vlan->src, net_pkt_lladdr_src(pkt)->addr, in ethernet_fill_header()
547 hdr_vlan->type = ptype; in ethernet_fill_header()
[all …]
/Zephyr-Core-3.7.0/drivers/net/
Dslip.c171 struct net_eth_vlan_hdr *hdr_vlan = in process_msg() local
174 net_pkt_set_vlan_tci(pkt, ntohs(hdr_vlan->vlan.tci)); in process_msg()
/Zephyr-Core-3.7.0/drivers/ethernet/nxp_enet/
Deth_nxp_enet.c142 struct net_eth_vlan_hdr *hdr_vlan = (struct net_eth_vlan_hdr *)NET_ETH_HDR(pkt); in eth_get_ptp_data() local
147 pkt_is_ptp = ntohs(hdr_vlan->type) == NET_ETH_PTYPE_PTP; in eth_get_ptp_data()