Home
last modified time | relevance | path

Searched refs:netns_path (Results 1 – 1 of 1) sorted by relevance

/external/iproute2/ip/
Dipnetns.c558 char netns_path[PATH_MAX]; in on_netns_del() local
560 snprintf(netns_path, sizeof(netns_path), "%s/%s", NETNS_RUN_DIR, nsname); in on_netns_del()
561 umount2(netns_path, MNT_DETACH); in on_netns_del()
562 if (unlink(netns_path) < 0) { in on_netns_del()
564 netns_path, strerror(errno)); in on_netns_del()
607 char netns_path[PATH_MAX]; in netns_add() local
618 snprintf(netns_path, sizeof(netns_path), "%s/%s", NETNS_RUN_DIR, name); in netns_add()
647 fd = open(netns_path, O_RDONLY|O_CREAT|O_EXCL, 0); in netns_add()
650 netns_path, strerror(errno)); in netns_add()
661 if (mount("/proc/self/ns/net", netns_path, "none", MS_BIND, NULL) < 0) { in netns_add()
[all …]