Home
last modified time | relevance | path

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

/linux-4.4.14/net/netfilter/
Dnft_payload.c27 struct vlan_ethhdr veth; in nft_payload_copy_vlan() local
29 vlanh = (u8 *) &veth; in nft_payload_copy_vlan()
33 if (skb_copy_bits(skb, mac_off, &veth, ETH_HLEN)) in nft_payload_copy_vlan()
36 veth.h_vlan_proto = skb->vlan_proto; in nft_payload_copy_vlan()
51 veth.h_vlan_TCI = htons(skb_vlan_tag_get(skb)); in nft_payload_copy_vlan()
52 veth.h_vlan_encapsulated_proto = skb->protocol; in nft_payload_copy_vlan()
/linux-4.4.14/include/linux/
Dif_vlan.h298 struct vlan_ethhdr *veth; in __vlan_insert_tag() local
303 veth = (struct vlan_ethhdr *)skb_push(skb, VLAN_HLEN); in __vlan_insert_tag()
310 veth->h_vlan_proto = vlan_proto; in __vlan_insert_tag()
313 veth->h_vlan_TCI = htons(vlan_tci); in __vlan_insert_tag()
425 struct vlan_ethhdr *veth = (struct vlan_ethhdr *)skb->data; in __vlan_get_tag() local
427 if (veth->h_vlan_proto != htons(ETH_P_8021Q) && in __vlan_get_tag()
428 veth->h_vlan_proto != htons(ETH_P_8021AD)) in __vlan_get_tag()
431 *vlan_tci = ntohs(veth->h_vlan_TCI); in __vlan_get_tag()
/linux-4.4.14/drivers/net/
Dmacvtap.c887 } veth; in macvtap_put_user() local
888 veth.h_vlan_proto = skb->vlan_proto; in macvtap_put_user()
889 veth.h_vlan_TCI = htons(skb_vlan_tag_get(skb)); in macvtap_put_user()
898 ret = copy_to_iter(&veth, sizeof(veth), iter); in macvtap_put_user()
899 if (ret != sizeof(veth) || !iov_iter_count(iter)) in macvtap_put_user()
DMakefile23 obj-$(CONFIG_VETH) += veth.o
Dtun.c1376 } veth; in tun_put_user() local
1378 veth.h_vlan_proto = skb->vlan_proto; in tun_put_user()
1379 veth.h_vlan_TCI = htons(skb_vlan_tag_get(skb)); in tun_put_user()
1387 ret = copy_to_iter(&veth, sizeof(veth), iter); in tun_put_user()
1388 if (ret != sizeof(veth) || !iov_iter_count(iter)) in tun_put_user()
/linux-4.4.14/drivers/net/ethernet/toshiba/
Dps3_gelic_net.c746 struct vlan_ethhdr *veth; in gelic_put_vlan_tag() local
757 veth = (struct vlan_ethhdr *)skb_push(skb, VLAN_HLEN); in gelic_put_vlan_tag()
762 veth->h_vlan_proto = cpu_to_be16(ETH_P_8021Q); in gelic_put_vlan_tag()
763 veth->h_vlan_TCI = htons(tag); in gelic_put_vlan_tag()
/linux-4.4.14/net/8021q/
Dvlan_dev.c107 struct vlan_ethhdr *veth = (struct vlan_ethhdr *)(skb->data); in vlan_dev_hard_start_xmit() local
116 if (veth->h_vlan_proto != vlan->vlan_proto || in vlan_dev_hard_start_xmit()
/linux-4.4.14/drivers/net/ethernet/intel/i40e/
Di40e_fcoe.c1326 struct vlan_ethhdr *veth = (struct vlan_ethhdr *)eth_hdr(skb); in i40e_fcoe_set_skb_header() local
1328 protocol = veth->h_vlan_encapsulated_proto; in i40e_fcoe_set_skb_header()
/linux-4.4.14/drivers/s390/net/
Dqeth_l2_main.c272 struct vlan_ethhdr *veth = (struct vlan_ethhdr *)skb_mac_header(skb); in qeth_l2_fill_header() local
289 if (veth->h_vlan_proto == __constant_htons(ETH_P_8021Q)) { in qeth_l2_fill_header()
291 hdr->hdr.l2.vlan_id = ntohs(veth->h_vlan_TCI); in qeth_l2_fill_header()
/linux-4.4.14/Documentation/sysctl/
Dnet.txt64 leaves. Virtual devices (like e.g. lo or veth) ignore this setting and instead
/linux-4.4.14/include/uapi/linux/
DKbuild432 header-y += veth.h