Home | History | Annotate | Download | only in ip

Lines Matching refs:netns

20 #define NETNS_RUN_DIR "/var/run/netns"
21 #define NETNS_ETC_DIR "/etc/netns"
48 fprintf(stderr, "Usage: ip netns list\n");
49 fprintf(stderr, " ip netns add NAME\n");
50 fprintf(stderr, " ip netns delete NAME\n");
51 fprintf(stderr, " ip netns exec NAME cmd ...\n");
52 fprintf(stderr, " ip netns monitor\n");
121 /* Setup the proper environment for apps that are not netns
126 int netns;
129 fprintf(stderr, "No netns name specified\n");
139 netns = open(net_path, O_RDONLY);
140 if (netns < 0) {
145 if (setns(netns, CLONE_NEWNET) < 0) {
180 fprintf(stderr, "No netns name specified\n");
210 fprintf(stderr, "No netns name specified\n");
217 /* Create the base netns directory if it doesn't exist */
234 /* Bind the netns last so I can watch for it */
307 fprintf(stderr, "Command \"%s\" is unknown, try \"ip netns help\".\n", *argv);