OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:netns
(Results
1 - 3
of
3
) sorted by null
/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/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
...]
Completed in 318 milliseconds