Searched refs:netns_path (Results 1 – 1 of 1) sorted by relevance
/external/iproute2/ip/ |
D | ipnetns.c | 565 char netns_path[PATH_MAX]; in on_netns_del() local 567 snprintf(netns_path, sizeof(netns_path), "%s/%s", NETNS_RUN_DIR, nsname); in on_netns_del() 568 umount2(netns_path, MNT_DETACH); in on_netns_del() 569 if (unlink(netns_path) < 0) { in on_netns_del() 571 netns_path, strerror(errno)); in on_netns_del() 614 char netns_path[PATH_MAX]; in netns_add() local 625 snprintf(netns_path, sizeof(netns_path), "%s/%s", NETNS_RUN_DIR, name); in netns_add() 654 fd = open(netns_path, O_RDONLY|O_CREAT|O_EXCL, 0); in netns_add() 657 netns_path, strerror(errno)); in netns_add() 668 if (mount("/proc/self/ns/net", netns_path, "none", MS_BIND, NULL) < 0) { in netns_add() [all …]
|