Lines Matching refs:vlan
391 struct vlan_hdr *vlan, _vlan; in PROG() local
395 vlan = bpf_flow_dissect_get_header(skb, sizeof(*vlan), &_vlan); in PROG()
396 if (!vlan) in PROG()
399 if (vlan->h_vlan_encapsulated_proto != bpf_htons(ETH_P_8021Q)) in PROG()
402 keys->nhoff += sizeof(*vlan); in PROG()
403 keys->thoff += sizeof(*vlan); in PROG()
406 vlan = bpf_flow_dissect_get_header(skb, sizeof(*vlan), &_vlan); in PROG()
407 if (!vlan) in PROG()
410 keys->nhoff += sizeof(*vlan); in PROG()
411 keys->thoff += sizeof(*vlan); in PROG()
413 if (vlan->h_vlan_encapsulated_proto == bpf_htons(ETH_P_8021AD) || in PROG()
414 vlan->h_vlan_encapsulated_proto == bpf_htons(ETH_P_8021Q)) in PROG()
417 keys->n_proto = vlan->h_vlan_encapsulated_proto; in PROG()
418 return parse_eth_proto(skb, vlan->h_vlan_encapsulated_proto); in PROG()