Lines Matching refs:ns1
11 ns1=""
45 mptcp_lib_ns_exit "${ns1}" "${ns2}" "${ns3}"
71 mptcp_lib_ns_init ns1 ns2 ns3
73 ip link add ns1eth1 netns "$ns1" type veth peer name ns2eth1 netns "$ns2"
74 ip link add ns1eth2 netns "$ns1" type veth peer name ns2eth2 netns "$ns2"
77 ip -net "$ns1" addr add 10.0.1.1/24 dev ns1eth1
78 ip -net "$ns1" addr add dead:beef:1::1/64 dev ns1eth1 nodad
79 ip -net "$ns1" link set ns1eth1 up mtu 1500
80 ip -net "$ns1" route add default via 10.0.1.2
81 ip -net "$ns1" route add default via dead:beef:1::2
83 ip -net "$ns1" addr add 10.0.2.1/24 dev ns1eth2
84 ip -net "$ns1" addr add dead:beef:2::1/64 dev ns1eth2 nodad
85 ip -net "$ns1" link set ns1eth2 up mtu 1500
86 ip -net "$ns1" route add default via 10.0.2.2 metric 101
87 ip -net "$ns1" route add default via dead:beef:2::2 metric 101
89 mptcp_lib_pm_nl_set_limits "${ns1}" 1 1
90 mptcp_lib_pm_nl_add_endpoint "${ns1}" 10.0.2.1 dev ns1eth2 flags subflow
152 ip netns exec ${ns1} tcpdump ${capopt} -w "${capfile}-connector.pcap" >> "${capout}" 2>&1 &
167 ip netns exec ${ns1} \
200 echo -e "\nnetns ${ns1} socket stat for $port:" 1>&2
201 ip netns exec ${ns1} ss -nita 1>&2 -o "dport = :$port"
224 tc -n $ns1 qdisc del dev $dev root >/dev/null 2>&1
229 tc -n $ns1 qdisc add dev ns1eth1 root netem rate ${rate1}mbit $delay1
230 tc -n $ns1 qdisc add dev ns1eth2 root netem rate ${rate2}mbit $delay2