/external/iproute2/include/ |
namespace.h | 10 #define NETNS_RUN_DIR "/var/run/netns" 11 #define NETNS_ETC_DIR "/etc/netns" 46 int netns_switch(char *netns); 47 int netns_get_fd(const char *netns);
|
/external/iproute2/lib/ |
namespace.c | 48 int netns; local 51 netns = open(net_path, O_RDONLY | O_CLOEXEC); 52 if (netns < 0) { 58 if (setns(netns, CLONE_NEWNET) < 0) { 61 close(netns); 64 close(netns);
|
/external/ltp/testcases/kernel/containers/netns/ |
netns_helper.sh | 31 # 'ip netns exec' command according to NS_EXEC_PROGRAM argument specified in 217 # Sets up NS_EXEC to use 'ip netns exec', creates two network namespaces 223 NS_EXEC="ip netns exec" 228 ip netns del $NS_HANDLE0 2>/dev/null 229 ip netns del $NS_HANDLE1 2>/dev/null 231 ip netns add $NS_HANDLE0 || \ 233 ip netns add $NS_HANDLE1 || \ 239 $NS_EXEC $NS_HANDLE0 ip link set veth1 netns $NS_HANDLE1 || \ 313 ip netns del $NS_HANDLE0 2>/dev/null 314 ip netns del $NS_HANDLE1 2>/dev/nul [all...] |
/external/iproute2/ip/ |
ipnetns.c | 27 fprintf(stderr, "Usage: ip netns list\n"); 28 fprintf(stderr, " ip netns add NAME\n"); 29 fprintf(stderr, " ip netns set NAME NETNSID\n"); 30 fprintf(stderr, " ip [-all] netns delete [NAME]\n"); 31 fprintf(stderr, " ip netns identify [PID]\n"); 32 fprintf(stderr, " ip netns pids NAME\n"); 33 fprintf(stderr, " ip [-all] netns exec [NAME] cmd ...\n"); 34 fprintf(stderr, " ip netns monitor\n"); 35 fprintf(stderr, " ip netns list-id\n"); 293 fprintf(fp, "(iproute2 netns name: %s)", c->name) 440 int netns; local 496 int netns; local 711 int netns, nsid; local [all...] |
iplink.c | 73 fprintf(stderr, " [ netns PID ]\n"); 74 fprintf(stderr, " [ netns NAME ]\n"); 412 int netns = -1; local 469 } else if (strcmp(*argv, "netns") == 0) { 471 if (netns != -1) 472 duparg("netns", *argv); 473 netns = netns_get_fd(*argv); 474 if (netns >= 0) 475 addattr_l(&req->n, sizeof(*req), IFLA_NET_NS_FD, &netns, 4); 476 else if (get_integer(&netns, *argv, 0) == 0 [all...] |
/device/linaro/bootloader/edk2/StdLib/BsdSocketLib/ |
ns_ntoa.c | 39 #include <netns/ns.h>
|
ns_addr.c | 52 #include <netns/ns.h>
|
/external/ltp/testcases/lib/ |
test_net.sh | 26 if [ ! -f /var/run/netns/ltp_ns ]; then 29 ROD ip li set dev ltp_ns_veth1 netns ltp_ns 30 ROD ip netns exec ltp_ns ip li set lo up 37 export LTP_NETNS="${LTP_NETNS:-ip netns exec ltp_ns}" 463 # It can handle netns case when sysctl not namespaceified.
|
/external/iproute2/man/man8/ |
Makefile | 12 ip-netns.8 ip-ntable.8 ip-rule.8 ip-tunnel.8 ip-xfrm.8 \
|
/external/iw/ |
phy.c | 303 #define NETNS_RUN_DIR "/var/run/netns" 357 COMMAND(set, netns, "{ <pid> | name <nsname> }", 362 " or by absolute path (man ip-netns)\n");
|
/external/ltp/android/ |
Android.ltp.mk | 141 module_src_files := testcases/kernel/containers/netns/netns_helper.sh 353 module_src_files := testcases/kernel/containers/netns/netns_breakns.sh 829 module_src_files := testcases/kernel/containers/netns/netns_comm.sh [all...] |
/external/iproute2/doc/ |
ip-cref.tex | 332 \item \verb|netns PID| [all...] |