Home
last modified time | relevance | path

Searched refs:ns0 (Results 1 – 9 of 9) sorted by relevance

/linux/tools/testing/selftests/netfilter/
A Dnft_nat.sh12 ns0="ns0-$sfx"
33 ip netns add "$ns0"
60 ip -net "$ns0" link set lo up
61 ip -net "$ns0" link set veth0 up
62 ip -net "$ns0" addr add 10.0.1.1/24 dev veth0
63 ip -net "$ns0" addr add dead:1::1/64 dev veth0
65 ip -net "$ns0" link set veth1 up
66 ip -net "$ns0" addr add 10.0.2.1/24 dev veth1
67 ip -net "$ns0" addr add dead:2::1/64 dev veth1
357 bad_counter "$ns0" ns0$dir "$expect" "test_local_dnat 7"
[all …]
A Dconntrack_vrf.sh39 ns0="ns0-$sfx"
47 ip netns del $ns0 $ns1
62 ip netns add "$ns0"
87 ip -net $ns0 li set lo up
89 ip -net $ns0 li set veth0 master tvrf
90 ip -net $ns0 li set tvrf up
91 ip -net $ns0 li set veth0 up
108 ip netns exec $ns0 nft -f - <<EOF
142 ip netns exec $ns0 conntrack -L
161 ip netns exec $ns0 nft -f - <<EOF
[all …]
A Dbridge_brouter.sh26 ip netns add ns0
30 ip link add veth0 netns ns0 type veth peer name eth0 netns ns1
37 ip -net ns0 link set lo up
38 ip -net ns0 link set veth0 up
39 ip -net ns0 link set veth1 up
41 ip -net ns0 link add br0 type bridge
47 ip -net ns0 link set veth0 master br0
48 ip -net ns0 link set veth1 master br0
49 ip -net ns0 link set br0 up
50 ip -net ns0 addr add 10.0.0.1/24 dev br0
[all …]
A Dnft_meta.sh8 ns0="ns0-$sfx"
17 ip netns del "$ns0"
20 ip netns add "$ns0"
21 ip -net "$ns0" link set lo up
22 ip -net "$ns0" addr add 127.0.0.1 dev lo
28 ip netns exec "$ns0" nft -f /dev/stdin <<EOF
94 if ! ip netns exec "$ns0" nft list counter inet filter $cname | grep -q "$want"; then
97 ip netns exec "$ns0" nft list counter inet filter $cname
116 ip netns exec "$ns0" ping -q -c 1 127.0.0.1 -m 42 > /dev/null
134 ip netns exec "$ns0" nft reset counters > /dev/null
[all …]
A Dipvs.sh69 ip netns add ns0
77 ip netns exec ns0 ip link set veth01 up
78 ip netns exec ns0 ip link set veth02 up
79 ip netns exec ns0 ip link add br0 type bridge
80 ip netns exec ns0 ip link set veth01 master br0
81 ip netns exec ns0 ip link set veth02 master br0
82 ip netns exec ns0 ip link set br0 up
83 ip netns exec ns0 ip addr add ${cip_v4}/24 dev br0
139 ip netns exec ns0 ip route add ${vip_v4} via ${gip_v4} dev br0
158 ip netns exec ns0 ip route add ${vip_v4} via ${gip_v4} dev br0
[all …]
/linux/tools/testing/selftests/bpf/
A Dtest_xdp_redirect_multi.sh54 ip netns del ns0 2> /dev/null
82 ip netns add ns0
86 peer name veth$i netns ns0 index $((1 + $i))
87 ip -n ns0 link set veth$i up
98 veth_mac[$i]=$(ip -n ns0 link show veth$i | awk '/link\/ether/ {print $2}')
183 ip netns exec ns0 ./xdp_redirect_multi $drv_p $IFACES &> ${LOG_DIR}/xdp_redirect_${mode}.log &
/linux/Documentation/networking/
A Dipvlan.rst145 | | NS:ns0 | | NS:ns1 | |
156 (a) Create two network namespaces - ns0, ns1::
158 ip netns add ns0
168 ip link set dev ipvl0 netns ns0
171 (d) Now switch to the namespace (ns0 or ns1) to configure the slave devices
173 - For ns0::
175 (1) ip netns exec ns0 bash
/linux/samples/bpf/
A Dxsk_fwd.c981 u64 ns0; in main() local
1056 ns0 = time.tv_sec * 1000000000UL + time.tv_nsec; in main()
1063 ns_diff = ns1 - ns0; in main()
1064 ns0 = ns1; in main()
/linux/tools/testing/selftests/net/
A Dbareudp.sh113 readonly NS0=$(mktemp -u ns0-XXXXXXXX)

Completed in 13 milliseconds