Searched refs:net_path (Results 1 – 2 of 2) sorted by relevance
/external/iproute2/lib/ |
D | namespace.c | 47 char net_path[PATH_MAX]; in netns_switch() local 50 snprintf(net_path, sizeof(net_path), "%s/%s", NETNS_RUN_DIR, name); in netns_switch() 51 netns = open(net_path, O_RDONLY | O_CLOEXEC); in netns_switch()
|
/external/iproute2/ip/ |
D | ipnetns.c | 417 char net_path[PATH_MAX]; in netns_pids() local 433 snprintf(net_path, sizeof(net_path), "%s/%s", NETNS_RUN_DIR, name); in netns_pids() 434 netns = open(net_path, O_RDONLY); in netns_pids() 473 char net_path[PATH_MAX]; in netns_identify_pid() local 481 snprintf(net_path, sizeof(net_path), "/proc/%s/ns/net", pidstr); in netns_identify_pid() 482 netns = open(net_path, O_RDONLY); in netns_identify_pid()
|