Home
last modified time | relevance | path

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

/Zephyr-latest/subsys/net/l2/ethernet/
Dethernet.c281 struct net_eth_vlan_hdr *hdr_vlan = in ethernet_recv() local
285 net_pkt_set_vlan_tci(pkt, ntohs(hdr_vlan->vlan.tci)); in ethernet_recv()
286 type = ntohs(hdr_vlan->type); in ethernet_recv()
587 struct net_eth_vlan_hdr *hdr_vlan; in ethernet_fill_header() local
594 hdr_vlan = (struct net_eth_vlan_hdr *)(hdr_frag->data); in ethernet_fill_header()
597 (!ethernet_fill_in_dst_on_ipv4_mcast(pkt, &hdr_vlan->dst) && in ethernet_fill_header()
598 !ethernet_fill_in_dst_on_ipv6_mcast(pkt, &hdr_vlan->dst))) { in ethernet_fill_header()
599 memcpy(&hdr_vlan->dst, net_pkt_lladdr_dst(pkt)->addr, in ethernet_fill_header()
603 memcpy(&hdr_vlan->src, net_pkt_lladdr_src(pkt)->addr, in ethernet_fill_header()
606 hdr_vlan->type = ptype; in ethernet_fill_header()
[all …]
/Zephyr-latest/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-latest/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()