Home
last modified time | relevance | path

Searched refs:netns (Results 1 - 5 of 5) sorted by relevance

/third_party/ltp/testcases/kernel/containers/netns/
H A Dnetns_lib.sh93 tst_res TINFO "testing netns over $COMM_TYPE with $NS_EXEC $PROG"
141 # Sets up NS_EXEC to use 'ip netns exec', creates two network namespaces
146 ip netns > /dev/null || \
147 tst_brk TCONF "ip without netns support (required iproute2 >= ss111010 - v3.0.0)"
149 NS_EXEC="ip netns exec"
154 ip netns del $NS_HANDLE0 2>/dev/null
155 ip netns del $NS_HANDLE1 2>/dev/null
157 ROD ip netns add $NS_HANDLE0
158 ROD ip netns add $NS_HANDLE1
161 ROD $NS_EXEC $NS_HANDLE0 ip link set veth1 netns
[all...]
H A Dnetns_helper.sh18 # 'ip netns exec' command according to NS_EXEC_PROGRAM argument specified in
185 # Sets up NS_EXEC to use 'ip netns exec', creates two network namespaces
190 ip netns > /dev/null || \
191 tst_brk TCONF "ip without netns support (required iproute2 >= ss111010 - v3.0.0)"
193 NS_EXEC="ip netns exec"
198 ip netns del $NS_HANDLE0 2>/dev/null
199 ip netns del $NS_HANDLE1 2>/dev/null
201 ip netns add $NS_HANDLE0 || \
203 ip netns add $NS_HANDLE1 || \
209 $NS_EXEC $NS_HANDLE0 ip link set veth1 netns
[all...]
/third_party/libbpf/src/
H A Dbpf_helper_defs.h2187 * network namespace *netns*. The return value must be checked,
2201 * If the *netns* is a negative signed 32-bit integer, then the
2202 * socket lookup table in the netns associated with the *ctx*
2203 * will be used. For the TC hooks, this is the netns of the device
2204 * in the skb. For socket hooks, this is the netns of the socket.
2205 * If *netns* is any other signed 32-bit value greater than or
2206 * equal to zero then it specifies the ID of the netns relative to
2207 * the netns associated with the *ctx*. *netns* values beyond the
2222 static struct bpf_sock *(*bpf_sk_lookup_tcp)(void *ctx, struct bpf_sock_tuple *tuple, __u32 tuple_size, __u64 netns, __u6
[all...]
/third_party/ltp/testcases/lib/
H A Dtst_net.sh174 if [ ! -f /var/run/netns/ltp_ns -a -z "$LTP_NETNS" ]; then
181 mkdir -p /var/run/netns
182 ROD ln -s /proc/$pid/ns/net /var/run/netns/ltp_ns
188 tst_res_ TINFO "using not default LTP netns: '$LTP_NETNS'"
194 pid="$(echo $(readlink /var/run/netns/ltp_ns) | cut -f3 -d'/')"
201 # return 0: use ssh, 1: use netns
989 # It can handle netns case when sysctl not namespaceified.
/third_party/libbpf/include/uapi/linux/
H A Dbpf.h3560 * struct bpf_sock *bpf_sk_lookup_tcp(void *ctx, struct bpf_sock_tuple *tuple, u32 tuple_size, u64 netns, u64 flags)
3563 * network namespace *netns*. The return value must be checked,
3577 * If the *netns* is a negative signed 32-bit integer, then the
3578 * socket lookup table in the netns associated with the *ctx*
3579 * will be used. For the TC hooks, this is the netns of the device
3580 * in the skb. For socket hooks, this is the netns of the socket.
3581 * If *netns* is any other signed 32-bit value greater than or
3582 * equal to zero then it specifies the ID of the netns relative to
3583 * the netns associated with the *ctx*. *netns* value
6546 } netns; global() member
[all...]

Completed in 12 milliseconds