Lines Matching refs:ROUTER_NS
15 ROUTER_NS=$(mktemp -u router-XXXXXXXX)
30 ip netns add $ROUTER_NS
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
46 ip -net $ROUTER_NS link set link1 up
47 ip -net $ROUTER_NS link set link2 up
48 ip -net $ROUTER_NS addr add $CLIENT_GW4/24 dev link1
49 ip -net $ROUTER_NS addr add $CLIENT_GW6/64 dev link1 nodad
50 ip -net $ROUTER_NS addr add $SERVER_GW4/24 dev link2
51 ip -net $ROUTER_NS addr add $SERVER_GW6/64 dev link2 nodad
52 ip -net $ROUTER_NS link set dev link1 \
54 ip -net $ROUTER_NS link set dev link2 \
56 ip -net $ROUTER_NS link set dev link1 \
58 ip -net $ROUTER_NS link set dev link2 \
61 ip net exec $ROUTER_NS tc qdisc add dev link1 ingress
62 ip net exec $ROUTER_NS tc filter add dev link1 ingress \
64 ip net exec $ROUTER_NS tc filter add dev link1 ingress \
66 ip net exec $ROUTER_NS sysctl -wq net.ipv4.ip_forward=1
67 ip net exec $ROUTER_NS sysctl -wq net.ipv6.conf.all.forwarding=1
84 ip -net $ROUTER_NS link del link1
85 ip -net $ROUTER_NS link del link2
88 ip netns del "$ROUTER_NS"
138 ip net exec $ROUTER_NS ethtool -K link1 gro $gw_gro
139 ip net exec $ROUTER_NS ethtool -K link2 tso $gw_tso
142 start_counter link1 $ROUTER_NS
146 if check_counter link1 $ROUTER_NS; then
152 stop_counter link1 $ROUTER_NS