Home
last modified time | relevance | path

Searched refs:veth (Results 1 – 6 of 6) sorted by relevance

/net/netfilter/
Dnf_tables_trace.c47 struct vlan_ethhdr veth; in nf_trace_fill_ll_header() local
50 BUILD_BUG_ON(sizeof(veth) > NFT_TRACETYPE_LL_HSIZE); in nf_trace_fill_ll_header()
56 if (skb_copy_bits(skb, off, &veth, ETH_HLEN)) in nf_trace_fill_ll_header()
59 veth.h_vlan_proto = skb->vlan_proto; in nf_trace_fill_ll_header()
60 veth.h_vlan_TCI = htons(skb_vlan_tag_get(skb)); in nf_trace_fill_ll_header()
61 veth.h_vlan_encapsulated_proto = skb->protocol; in nf_trace_fill_ll_header()
63 return nla_put(nlskb, NFTA_TRACE_LL_HEADER, sizeof(veth), &veth); in nf_trace_fill_ll_header()
Dnf_flow_table_inet.c15 struct vlan_ethhdr *veth; in nf_flow_offload_inet_hook() local
20 if (!pskb_may_pull(skb, skb_mac_offset(skb) + sizeof(*veth))) in nf_flow_offload_inet_hook()
23 veth = (struct vlan_ethhdr *)skb_mac_header(skb); in nf_flow_offload_inet_hook()
24 proto = veth->h_vlan_encapsulated_proto; in nf_flow_offload_inet_hook()
Dnft_inner.c59 struct vlan_ethhdr *veth, _veth; in nft_inner_parse_l2l3() local
74 veth = skb_header_pointer(pkt->skb, off, sizeof(_veth), &_veth); in nft_inner_parse_l2l3()
75 if (!veth) in nft_inner_parse_l2l3()
78 outer_llproto = veth->h_vlan_encapsulated_proto; in nft_inner_parse_l2l3()
79 llproto = veth->h_vlan_proto; in nft_inner_parse_l2l3()
Dnf_flow_table_ip.c144 struct vlan_ethhdr *veth; in nf_flow_tuple_encap() local
155 veth = (struct vlan_ethhdr *)skb_mac_header(skb); in nf_flow_tuple_encap()
156 tuple->encap[i].id = ntohs(veth->h_vlan_TCI); in nf_flow_tuple_encap()
279 struct vlan_ethhdr *veth; in nf_flow_skb_encap_protocol() local
284 if (!pskb_may_pull(skb, skb_mac_offset(skb) + sizeof(*veth))) in nf_flow_skb_encap_protocol()
287 veth = (struct vlan_ethhdr *)skb_mac_header(skb); in nf_flow_skb_encap_protocol()
288 if (veth->h_vlan_encapsulated_proto == proto) { in nf_flow_skb_encap_protocol()
Dnft_payload.c29 struct vlan_ethhdr *veth) in nft_payload_rebuild_vlan_hdr() argument
31 if (skb_copy_bits(skb, mac_off, veth, ETH_HLEN)) in nft_payload_rebuild_vlan_hdr()
34 veth->h_vlan_proto = skb->vlan_proto; in nft_payload_rebuild_vlan_hdr()
35 veth->h_vlan_TCI = htons(skb_vlan_tag_get(skb)); in nft_payload_rebuild_vlan_hdr()
36 veth->h_vlan_encapsulated_proto = skb->protocol; in nft_payload_rebuild_vlan_hdr()
47 struct vlan_ethhdr veth; in nft_payload_copy_vlan() local
49 vlanh = (u8 *) &veth; in nft_payload_copy_vlan()
53 if (!nft_payload_rebuild_vlan_hdr(skb, mac_off, &veth)) in nft_payload_copy_vlan()
/net/8021q/
Dvlan_dev.c103 struct vlan_ethhdr *veth = (struct vlan_ethhdr *)(skb->data); in vlan_dev_hard_start_xmit() local
113 veth->h_vlan_proto != vlan->vlan_proto) { in vlan_dev_hard_start_xmit()
531 struct vlan_ethhdr *veth = (struct vlan_ethhdr *)(skb->data); in vlan_parse_protocol() local
533 return __vlan_get_protocol(skb, veth->h_vlan_proto, NULL); in vlan_parse_protocol()