/linux-master/tools/testing/selftests/net/netfilter/ |
H A D | nf_nat_edemux.sh | 25 # Connect the namespaces using a veth pair 26 ip link add name veth2 type veth peer name veth1
|
H A D | nft_conntrack_helper.sh | 31 if ! ip link add veth0 netns "$ns1" type veth peer name veth0 netns "$ns2" > /dev/null 2>&1;then
|
H A D | nft_fib.sh | 108 if ! ip link add veth0 netns "$nsrouter" type veth peer name eth0 netns "$ns1" > /dev/null 2>&1; then 112 ip link add veth1 netns "$nsrouter" type veth peer name eth0 netns "$ns2"
|
H A D | nft_flowtable.sh | 48 ip link add veth0 netns "$nsr1" type veth peer name eth0 netns "$ns1" 49 ip link add veth1 netns "$nsr1" type veth peer name veth0 netns "$nsr2" 51 ip link add veth1 netns "$nsr2" type veth peer name eth0 netns "$ns2" 123 ip netns exec "$nsr1" sysctl net.ipv4.conf.veth$i.forwarding=1 > /dev/null 124 ip netns exec "$nsr2" sysctl net.ipv4.conf.veth$i.forwarding=1 > /dev/null
|
H A D | nft_concat_range.sh | 450 # Setup veth pair: this namespace receives traffic, B generates it 453 ip link add veth_a type veth peer name veth_b || return 1 1226 setup veth send_"${proto}" set || return ${ksft_skip} 1275 setup veth flood_"${proto}" set || return ${ksft_skip} 1375 setup veth send_"${proto}" set || return ${ksft_skip} 1421 setup veth perf set || return ${ksft_skip} 1508 setup veth send_"${proto}" set || return ${ksft_skip}
|
/linux-master/tools/testing/selftests/net/ |
H A D | udpgro_frglist.sh | 31 ip link add type veth 63 echo "udp gso - over veth touching data" 66 echo "udp gso and gro - over veth touching data" 73 echo "tcp - over veth touching data"
|
H A D | sctp_vrf.sh | 27 ip -n $SERVER_NS link add veth1 type veth peer name veth1 netns $CLIENT_NS1 28 ip -n $SERVER_NS link add veth2 type veth peer name veth1 netns $CLIENT_NS2
|
H A D | big_tcp.sh | 31 ip -net $ROUTER_NS link add link1 type veth peer name link0 netns $CLIENT_NS 32 ip -net $ROUTER_NS link add link2 type veth peer name link3 netns $SERVER_NS
|
H A D | bareudp.sh | 13 # * A chain of 4 network namespaces, connected with veth pairs. Each veth 14 # is assigned an IPv4 and an IPv6 address. A host-route allows a veth to 21 # veth address as gateway. For MPLS reachability tests, an MPLS header is 184 # * set up a veth pair to connect each netns in sequence (NS0 with NS1, 186 # * add and IPv4 and an IPv6 address on each veth interface, 195 ip link add name veth01 netns "${NS0}" type veth peer name veth10 netns "${NS1}" 196 ip link add name veth12 netns "${NS1}" type veth peer name veth21 netns "${NS2}" 197 ip link add name veth23 netns "${NS2}" type veth peer name veth32 netns "${NS3}" 225 # Add the overlay IP addresses and route them through the veth device [all...] |
H A D | pmtu.sh | 73 # R1. R2 is unused in these tests. A has a veth connection to C, and is 82 # C---veth A B else: 5000 93 # has a veth connection to C, and is connected to B via a VXLAN endpoint, 102 # C---veth init B else: 5000 123 # Set up vti tunnel on top of veth, with xfrm states and policies, in two 134 # Set up vti tunnel on top of veth connected through routing namespace and 141 # Set up vti6 tunnel on top of veth, with xfrm states and policies, in two 155 # Set up vti4 tunnel on top of veth, in two namespaces with matching 157 # lower layer (veth) minus additional lower layer headers (zero, for veth) [all...] |
H A D | xfrm_policy.sh | 356 ip link add $DEV netns ${ns[1]} type veth peer name eth1 netns ${ns[3]} 357 ip link add $DEV netns ${ns[2]} type veth peer name eth1 netns ${ns[4]} 359 ip link add $DEV netns ${ns[3]} type veth peer name veth0 netns ${ns[4]}
|
H A D | srv6_hencap_red_l3vpn_test.sh | 175 readonly RT2HS_DEVNAME="veth-t${VRF_TID}" 342 ip link add "veth-rt-${rt}-${neigh}" netns "${nsname}" \ 343 type veth peer name "veth-rt-${neigh}-${rt}" \ 375 devname="veth-rt-${rt}-${neigh}" 409 devname="veth-rt-${rt}-${neigh}" 525 ip -netns "${hsname}" link add veth0 type veth \ 541 # enslave the veth interface connecting the router with the host to the
|
H A D | srv6_hl2encap_red_l2vpn_test.sh | 124 readonly RT2HS_DEVNAME="veth-hs" 293 ip link add "veth-rt-${rt}-${neigh}" netns "${nsname}" \ 294 type veth peer name "veth-rt-${neigh}-${rt}" \ 326 devname="veth-rt-${rt}-${neigh}" 363 devname="veth-rt-${rt}-${neigh}" 472 ip -netns "${hsname}" link add "${HS_VETH_NAME}" type veth \ 569 # we have to set the mac address of the veth-host (on ingress router)
|
H A D | srv6_end_flavors_test.sh | 369 ip link add "veth-rt-${rt}-${neigh}" netns "${nsname}" \ 370 type veth peer name "veth-rt-${neigh}-${rt}" \ 430 devname="veth-rt-${rt}-${neigh}" 463 devname="veth-rt-${rt}-${neigh}" 592 ip -netns "${hsname}" link add veth0 type veth \
|
H A D | traceroute.sh | 90 # create veth pair to connect namespaces and apply addresses. 102 ip netns exec ${ns1} ip li add ${ns1_dev} type veth peer name tmp
|
H A D | gre_gso.sh | 53 ip link add veth0 type veth peer name veth1
|
/linux-master/net/netfilter/ |
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) {
|
/linux-master/tools/testing/selftests/net/forwarding/ |
H A D | vxlan_asymmetric_ipv6.sh | 51 # | + v1 (veth) | 56 # | + v2 (veth) +lo NS1 (netns) | 81 # | | + w1 (veth) + w3 (veth) | | 88 # | | + w2 (veth) | | + w4 (veth) | | 372 ip link add name w1 type veth peer name w2 373 ip link add name w3 type veth peer name w4 447 ip link add name v1 type veth peer name v2
|
H A D | vxlan_asymmetric.sh | 51 # | + v1 (veth) | 56 # | + v2 (veth) +lo NS1 (netns) | 81 # | | + w1 (veth) + w3 (veth) | | 88 # | | + w2 (veth) | | + w4 (veth) | | 377 ip link add name w1 type veth peer name w2 378 ip link add name w3 type veth peer name w4 450 ip link add name v1 type veth peer name v2
|
/linux-master/drivers/net/ |
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))
|
/linux-master/samples/bpf/ |
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_lwt_bpf.sh | 55 ip link add $2 type veth peer name $3
|
/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/bpf/ |
H A D | test_xdp_vlan.sh | 155 # Create veth pair 156 ip link add veth1 type veth peer name veth2 164 # - For veth REMEMBER TX side VLAN-offload
|
H A D | test_lwt_ip_encap.sh | 132 ip link add veth1 type veth peer name veth2 133 ip link add veth3 type veth peer name veth4 134 ip link add veth5 type veth peer name veth6 135 ip link add veth7 type veth peer name veth8
|