/linux-master/samples/bpf/ |
H A D | test_cls_bpf.sh | 31 ip link add name $IFC type veth peer name pair_$IFC
|
H A D | lwt_len_hist.sh | 23 ip link add $VETH0 type veth peer name $VETH1
|
H A D | tc_l2_redirect.sh | 19 $IP link add ve1 type veth peer name vens1 20 $IP link add ve2 type veth peer name vens2
|
H A D | test_cgrp2_sock2.sh | 12 ip link add veth0 type veth peer name veth0b
|
/linux-master/tools/testing/selftests/bpf/ |
H A D | test_sock_addr.sh | 29 ip link add dev ${TEST_IF} type veth peer name ${TEST_IF_PEER}
|
/linux-master/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | mirror_gre.sh | 54 ip link add name v1 type veth peer name v2
|
/linux-master/tools/testing/selftests/net/ |
H A D | ip6_gre_headroom.sh | 9 ip link add h1 type veth peer name swp1 10 ip link add h3 type veth peer name swp3
|
/linux-master/tools/testing/selftests/netfilter/ |
H A D | bridge_brouter.sh | 30 ip link add veth0 netns ns0 type veth peer name eth0 netns ns1 32 echo "SKIP: Can't create veth device" 35 ip link add veth1 netns ns0 type veth peer name eth0 netns ns2
|
/linux-master/drivers/net/ |
H A D | Makefile | 34 obj-$(CONFIG_VETH) += veth.o
|
H A D | tap.c | 825 } veth; local 826 veth.h_vlan_proto = skb->vlan_proto; 827 veth.h_vlan_TCI = htons(skb_vlan_tag_get(skb)); 836 ret = copy_to_iter(&veth, sizeof(veth), iter); 837 if (ret != sizeof(veth) || !iov_iter_count(iter))
|
H A D | tun.c | 219 struct veth { struct 2150 struct veth veth; local 2152 veth.h_vlan_proto = skb->vlan_proto; 2153 veth.h_vlan_TCI = htons(skb_vlan_tag_get(skb)); 2161 ret = copy_to_iter(&veth, sizeof(veth), iter); 2162 if (ret != sizeof(veth) || !iov_iter_count(iter))
|
H A D | veth.c | 3 * drivers/net/veth.c 22 #include <linux/veth.h> 31 #define DRV_NAME "veth" 1428 /* veth only receives frames when its peer sends one 1835 * veth behavior
|
/linux-master/drivers/net/ethernet/stmicro/stmmac/ |
H A D | stmmac_main.c | 4763 struct vlan_ethhdr *veth = skb_vlan_eth_hdr(skb); local 4764 __be16 vlan_proto = veth->h_vlan_proto; 4772 vlanid = ntohs(veth->h_vlan_TCI); 4773 memmove(skb->data + VLAN_HLEN, veth, ETH_ALEN * 2);
|
/linux-master/drivers/net/ethernet/toshiba/ |
H A D | ps3_gelic_net.c | 743 struct vlan_ethhdr *veth; local 754 veth = skb_push(skb, VLAN_HLEN); 759 veth->h_vlan_proto = cpu_to_be16(ETH_P_8021Q); 760 veth->h_vlan_TCI = htons(tag);
|
/linux-master/drivers/net/vmxnet3/ |
H A D | vmxnet3_drv.c | 1455 struct vlan_ethhdr *veth; member in union:__anon1669 1475 hdr.veth->h_vlan_encapsulated_proto != htons(ETH_P_IP)); 1482 hdr.veth->h_vlan_encapsulated_proto != htons(ETH_P_IPV6));
|
/linux-master/drivers/s390/net/ |
H A D | qeth_core_main.c | 3844 struct vlan_ethhdr *veth = vlan_eth_hdr(skb); local 3876 if (veth->h_vlan_proto == htons(ETH_P_8021Q)) 3877 return ~ntohs(veth->h_vlan_TCI) >>
|
H A D | qeth_l2_main.c | 163 struct vlan_ethhdr *veth = vlan_eth_hdr(skb); local 186 if (veth->h_vlan_proto == htons(ETH_P_8021Q)) { 188 hdr->hdr.l2.vlan_id = ntohs(veth->h_vlan_TCI);
|
H A D | qeth_l3_main.c | 1631 struct vlan_ethhdr *veth = vlan_eth_hdr(skb); local 1657 } else if (veth->h_vlan_proto == htons(ETH_P_8021Q)) { 1659 hdr->hdr.l3.vlan_id = ntohs(veth->h_vlan_TCI);
|
/linux-master/include/linux/ |
H A D | if_vlan.h | 352 struct vlan_ethhdr *veth; local 365 veth = (struct vlan_ethhdr *)(skb->data + mac_len - ETH_HLEN); 372 veth->h_vlan_proto = vlan_proto; 377 veth->h_vlan_encapsulated_proto = skb->protocol; 381 veth->h_vlan_TCI = htons(vlan_tci); 540 struct vlan_ethhdr *veth = skb_vlan_eth_hdr(skb); local 542 if (!eth_type_vlan(veth->h_vlan_proto)) 545 *vlan_tci = ntohs(veth->h_vlan_TCI);
|
/linux-master/net/8021q/ |
H A D | vlan_dev.c | 103 struct vlan_ethhdr *veth = (struct vlan_ethhdr *)(skb->data); local 113 veth->h_vlan_proto != vlan->vlan_proto) { 509 struct vlan_ethhdr *veth = (struct vlan_ethhdr *)(skb->data); local 511 return __vlan_get_protocol(skb, veth->h_vlan_proto, NULL);
|
/linux-master/net/netfilter/ |
H A D | nf_flow_table_inet.c | 15 struct vlan_ethhdr *veth; local 20 veth = (struct vlan_ethhdr *)skb_mac_header(skb); 21 proto = veth->h_vlan_encapsulated_proto;
|
H A D | nf_flow_table_ip.c | 144 struct vlan_ethhdr *veth; local 155 veth = (struct vlan_ethhdr *)skb_mac_header(skb); 156 tuple->encap[i].id = ntohs(veth->h_vlan_TCI); 279 struct vlan_ethhdr *veth; local 284 veth = (struct vlan_ethhdr *)skb_mac_header(skb); 285 if (veth->h_vlan_encapsulated_proto == proto) {
|
H A D | nf_tables_trace.c | 47 struct vlan_ethhdr veth; local 50 BUILD_BUG_ON(sizeof(veth) > NFT_TRACETYPE_LL_HSIZE); 56 if (skb_copy_bits(skb, off, &veth, ETH_HLEN)) 59 veth.h_vlan_proto = skb->vlan_proto; 60 veth.h_vlan_TCI = htons(skb_vlan_tag_get(skb)); 61 veth.h_vlan_encapsulated_proto = skb->protocol; 63 return nla_put(nlskb, NFTA_TRACE_LL_HEADER, sizeof(veth), &veth);
|
H A D | nft_inner.c | 59 struct vlan_ethhdr *veth, _veth; local 74 veth = skb_header_pointer(pkt->skb, off, sizeof(_veth), &_veth); 75 if (!veth) 78 outer_llproto = veth->h_vlan_encapsulated_proto; 79 llproto = veth->h_vlan_proto;
|
H A D | nft_payload.c | 29 struct vlan_ethhdr *veth) 31 if (skb_copy_bits(skb, mac_off, veth, ETH_HLEN)) 34 veth->h_vlan_proto = skb->vlan_proto; 35 veth->h_vlan_TCI = htons(skb_vlan_tag_get(skb)); 36 veth->h_vlan_encapsulated_proto = skb->protocol; 47 struct vlan_ethhdr veth; local 55 vlanh = (u8 *) &veth; 60 skb_copy_bits(skb, mac_off, &veth, VLAN_ETH_HLEN) < 0) 62 else if (!nft_payload_rebuild_vlan_hdr(skb, mac_off, &veth)) 28 nft_payload_rebuild_vlan_hdr(const struct sk_buff *skb, int mac_off, struct vlan_ethhdr *veth) argument
|