| /linux/tools/testing/selftests/net/ |
| H A D | test_vxlan_under_vrf.sh | 50 ip link del veth-hv-1 2>/dev/null || true 51 ip link del veth-tap 2>/dev/null || true 69 ip link add veth-hv-1 type veth peer name veth-hv-2 73 ip link set veth-hv-$id netns ${hv[$id]} 74 ip -netns ${hv[$id]} link set veth-hv-$id name veth0 100 ip link add veth-tap type veth peer name veth-hv 102 ip link set veth-tap netns ${hv[$id]} 103 ip -netns ${hv[$id]} link set veth-tap master br0 104 ip -netns ${hv[$id]} link set veth-tap up 106 ip link set veth-hv address 02:1d:8d:dd:0c:6$id [all …]
|
| H A D | test_vxlan_vnifiltering.sh | 164 ip link del veth-hv-1 2>/dev/null || true 179 ip link set veth-hv-$id netns ${hv[$id]} 180 ip -netns ${hv[$id]} link set veth-hv-$id name veth0 213 ip link add $hvvethif type veth peer name $vmvethif 301 ip link add veth-host type veth peer name veth-testns 303 ip link set veth-testns netns $testns 308 ip link del veth-host 2>/dev/null || true 389 ip link add veth-hv-1 type veth peer name veth-hv-2 422 ip link add veth-hv-1 type veth peer name veth-hv-2 455 ip link add veth-hv-1 type veth peer name veth-hv-2 [all …]
|
| H A D | srv6_end_dx6_netfilter_test.sh | 167 ip link del veth-rt-1 2>/dev/null || true 168 ip link del veth-rt-2 2>/dev/null || true 187 ip link set veth-rt-${rt} netns ${nsname} 188 ip -netns ${nsname} link set veth-rt-${rt} name veth0 213 local rtveth=veth-t${tid} 218 ip -netns ${hsname} link add veth0 type veth peer name ${rtveth} 245 local rtveth=veth-t${tid} 260 encap seg6local action End.DX6 nh6 ${IPv6_HS_NETWORK}::${hsdst} dev veth-t${tid} 265 ip link add veth-rt-1 type veth peer name veth-rt-2
|
| H A D | srv6_end_dx4_netfilter_test.sh | 167 ip link del veth-rt-1 2>/dev/null || true 168 ip link del veth-rt-2 2>/dev/null || true 187 ip link set veth-rt-${rt} netns ${nsname} 188 ip -netns ${nsname} link set veth-rt-${rt} name veth0 214 local rtveth=veth-t${tid} 219 ip -netns ${hsname} link add veth0 type veth peer name ${rtveth} 255 encap seg6local action End.DX4 nh4 ${IPv4_HS_NETWORK}.${hsdst} dev veth-t${tid} 260 ip link add veth-rt-1 type veth peer name veth-rt-2
|
| H A D | lwt_dst_cache_ref_loop.sh | 33 ip link add name veth0 netns $tmp_node type veth \ 87 ip link add name veth-alpha netns $alpha type veth \ 88 peer name veth-betaL netns $beta &>/dev/null 90 ip link add name veth-betaR netns $beta type veth \ 91 peer name veth-gamma netns $gamma &>/dev/null 93 ip -netns $alpha link set veth-alpha name veth0 &>/dev/null 94 ip -netns $beta link set veth-betaL name veth0 &>/dev/null 95 ip -netns $beta link set veth-betaR name veth1 &>/dev/null 96 ip -netns $gamma link set veth-gamma name veth0 &>/dev/null
|
| H A D | srv6_end_dt6_l3vpn_test.sh | 219 ip link del veth-rt-1 2>/dev/null || true 220 ip link del veth-rt-2 2>/dev/null || true 231 ip link set veth-rt-${id} netns ${nsname} 232 ip -netns ${nsname} link set veth-rt-${id} name veth0 251 local rtveth=veth-t${tid} 257 ip -netns ${hsname} link add veth0 type veth peer name ${rtveth} 291 local rtveth=veth-t${tid} 323 ip link add veth-rt-1 type veth peer name veth-rt-2
|
| H A D | srv6_end_dt4_l3vpn_test.sh | 34 # router rt-1 receives the packet on the internal veth-t100 interface. Such 45 # hs-t100-2 through the veth-t100 interface. 71 # | | veth-t100 | | | | veth-t100 | | 85 # | | veth-t200 | | | | veth-t200 | | 218 ip link del veth-rt-1 2>/dev/null || true 219 ip link del veth-rt-2 2>/dev/null || true 233 ip link set veth-rt-${id} netns ${nsname} 234 ip -netns ${nsname} link set veth [all...] |
| H A D | srv6_end_dt46_l3vpn_test.sh | 44 # the router rt-1 receives the packet on the internal veth-t100 interface. Such 55 # host hs-t100-2 through the veth-t100 interface. 82 # | | veth-t100 | | | | veth-t100 | | 97 # | | veth-t200 | | | | veth-t200 | | 139 # |cafe::/64 |forward to dev veth-t100 | 143 # |10.0.0.0/24|forward to dev veth-t100 | 152 # |cafe::/64 |forward to dev veth-t200 | 156 # |10.0.0.0/24|forward to dev veth [all...] |
| H A D | unicast_extensions.sh | 117 ip link add foo netns $foo_ns type veth peer name bar netns $bar_ns 141 ip link add foo netns $foo_ns type veth peer name foo1 netns $router_ns 142 ip link add bar netns $bar_ns type veth peer name bar1 netns $router_ns
|
| 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/arch/arm/boot/dts/arm/ |
| H A D | arm-realview-eb-bbrevd.dtsi | 25 veth: regulator-veth { label 27 regulator-name = "veth"; 43 vdd33a-supply = <&veth>; 44 vddvario-supply = <&veth>;
|
| /linux/net/netfilter/ |
| H A D | nf_tables_trace.c | 48 struct vlan_ethhdr veth; in nf_trace_fill_ll_header() local 51 BUILD_BUG_ON(sizeof(veth) > NFT_TRACETYPE_LL_HSIZE); in nf_trace_fill_ll_header() 57 if (skb_copy_bits(skb, off, &veth, ETH_HLEN)) in nf_trace_fill_ll_header() 60 veth.h_vlan_proto = skb->vlan_proto; in nf_trace_fill_ll_header() 61 veth.h_vlan_TCI = htons(skb_vlan_tag_get(skb)); in nf_trace_fill_ll_header() 62 veth.h_vlan_encapsulated_proto = skb->protocol; in nf_trace_fill_ll_header() 64 return nla_put(nlskb, NFTA_TRACE_LL_HEADER, sizeof(veth), &veth); in nf_trace_fill_ll_header()
|
| H A D | nf_flow_table_inet.c | 15 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()
|
| H A D | nft_inner.c | 66 struct vlan_ethhdr *veth, _veth; in nft_inner_parse_l2l3() 81 veth = skb_header_pointer(pkt->skb, off, sizeof(_veth), &_veth); in nft_inner_parse_l2l3() 82 if (!veth) in nft_inner_parse_l2l3() 85 outer_llproto = veth->h_vlan_encapsulated_proto; in nft_inner_parse_l2l3() 86 llproto = veth->h_vlan_proto; in nft_inner_parse_l2l3() 59 struct vlan_ethhdr *veth, _veth; nft_inner_parse_l2l3() local
|
| /linux/tools/testing/selftests/net/hsr/ |
| H A D | hsr_redbox.sh | 75 ip link add ns1eth1 netns "${ns1}" type veth peer name ns2eth1 netns "${ns2}" 76 ip link add ns1eth2 netns "${ns1}" type veth peer name ns2eth2 netns "${ns2}" 77 ip link add ns2eth3 netns "${ns2}" type veth peer name ns3eth1 netns "${ns3}" 78 ip link add ns3eth2 netns "${ns3}" type veth peer name ns4eth1 netns "${ns4}" 79 ip link add ns3eth3 netns "${ns3}" type veth peer name ns5eth1 netns "${ns5}"
|
| /linux/tools/testing/selftests/net/netfilter/ |
| H A D | conntrack_ipip_mtu.sh | 81 ip link add veth0 netns "$r_a" type veth peer name veth0 netns "$r_w" 82 ip link add veth1 netns "$r_a" type veth peer name veth0 netns "$c_a" 111 ip link add veth0 netns "$r_b" type veth peer name veth1 netns "$r_w" 112 ip link add veth1 netns "$r_b" type veth peer name veth0 netns "$c_b"
|
| H A D | br_netfilter.sh | 63 if ! ip link add veth1 netns "$ns0" type veth peer name eth0 netns "$ns1"; then 64 echo "SKIP: Can't create veth device" 68 ip link add veth2 netns "$ns0" type veth peer name eth0 netns "$ns2" 69 ip link add veth3 netns "$ns0" type veth peer name eth0 netns "$ns3" 70 ip link add veth4 netns "$ns0" type veth peer name eth0 netns "$ns4" 73 ip -net "$ns0" link set "veth$i" up 83 ip -net "$ns0" link set "veth$i" master br0
|
| H A D | nft_nat_zones.sh | 64 ip link add veth0 netns "$gw" type veth peer name eth0 netns "$srv" 79 if ! ip link add veth"$i" netns "$gw" type veth peer name eth0 netns "$cl" > /dev/null 2>&1;then 89 echo netns exec "$gw" ip link set "veth$i" up 90 echo netns exec "$gw" sysctl -q net.ipv4.conf.veth"$i".arp_ignore=2 99 echo netns exec "$gw" ip addr add 10.1.0.2/24 dev "veth$i" 100 echo netns exec "$gw" ip addr add dead:1::2/64 dev "veth$i" nodad 103 echo netns exec "$gw" ip route add 10.1.0.0/24 dev "veth$i" table $((1000+i)) 104 echo netns exec "$gw" ip route add dead:1::0/64 dev "veth$i" table $((1000+i)) 168 echo \"veth" [all...] |
| /linux/tools/testing/selftests/bpf/ |
| H A D | test_xdp_redirect_multi.sh | |
| H A D | xsk_prereqs.sh | 27 if [ $(ip link add $1 type veth 2>/dev/null; echo $?;) != 0 ]; then 28 echo $msg veth kernel support not available >&2
|
| H A D | test_lwt_seg6local.sh | |
| /linux/tools/testing/selftests/net/tcp_ao/lib/ |
| H A D | setup.c | 164 static void link_init(const char *veth, int family, uint8_t prefix, in link_init() argument 167 if (link_set_up(veth)) in link_init() 169 if (ip_addr_add(veth, family, addr, prefix)) in link_init() 171 if (ip_route_add(veth, family, addr, dest)) in link_init()
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | xdp_bonding.c | 384 int veth, bond, err; in test_xdp_bonding_attach() local 391 veth = if_nametoindex("veth"); in test_xdp_bonding_attach() 392 if (!ASSERT_GE(veth, 0, "if_nametoindex veth")) in test_xdp_bonding_attach() 399 link = bpf_program__attach_xdp(skeletons->xdp_dummy->progs.xdp_dummy_prog, veth); in test_xdp_bonding_attach() 411 link = bpf_program__attach_xdp(skeletons->xdp_dummy->progs.xdp_dummy_prog, veth); in test_xdp_bonding_attach() 429 link2 = bpf_program__attach_xdp(skeletons->xdp_dummy->progs.xdp_dummy_prog, veth); in test_xdp_bonding_attach()
|
| /linux/tools/testing/selftests/drivers/net/bonding/ |
| H A D | bond-break-lacpdu-tx.sh | 55 ip link add name veth1-bond type veth peer name veth1-end 56 ip link add name veth2-bond type veth peer name veth2-end
|
| H A D | bond-lladdr-target.sh | 49 ip -n $host link add veth0 type veth peer name veth0 netns $sw 50 ip -n $host link add veth1 type veth peer name veth1 netns $sw
|