summaryrefslogtreecommitdiffstats
path: root/src/if.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-09-19 14:40:50 +0100
committerRoy Marples <roy@marples.name>2020-09-19 14:40:50 +0100
commit1efd31813fde826b000fbc40234ea89979ef73a8 (patch)
treeff8f26cb8e5a13f34ebc319fe107e0ce4d77afbe /src/if.h
parent11963d2088a68a18ea61f27584a9339cd0292cac (diff)
downloaddhcpcd-1efd31813fde826b000fbc40234ea89979ef73a8.tar.xz
Linux: detect network namespace and deny udev in one
udev says whether an interface name is stable or not. In a network namespace, udev claims the interface does not exist. This makes sense because udev only operates in the root namespace. As such disable udev in a network namespace. While here correctly spell initialise.
Diffstat (limited to 'src/if.h')
-rw-r--r--src/if.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/if.h b/src/if.h
index e053fe5b..803f5818 100644
--- a/src/if.h
+++ b/src/if.h
@@ -191,6 +191,7 @@ int if_ignoregroup(int, const char *);
bool if_ignore(struct dhcpcd_ctx *, const char *);
int if_vimaster(struct dhcpcd_ctx *ctx, const char *);
unsigned short if_vlanid(const struct interface *);
+char * if_getnetworknamespace(char *, size_t);
int if_opensockets(struct dhcpcd_ctx *);
int if_opensockets_os(struct dhcpcd_ctx *);
void if_closesockets(struct dhcpcd_ctx *);