Lines Matching refs:hdr_vlan
281 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()
607 hdr_vlan->vlan.tpid = htons(NET_ETH_PTYPE_VLAN); in ethernet_fill_header()
608 hdr_vlan->vlan.tci = htons(net_pkt_vlan_tci(pkt)); in ethernet_fill_header()
610 print_vlan_ll_addrs(pkt, ntohs(hdr_vlan->type), in ethernet_fill_header()
613 &hdr_vlan->src, &hdr_vlan->dst, false); in ethernet_fill_header()