diff options
| author | Roy Marples <roy@marples.name> | 2020-09-19 14:40:50 +0100 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2020-09-19 14:40:50 +0100 |
| commit | 1efd31813fde826b000fbc40234ea89979ef73a8 (patch) | |
| tree | ff8f26cb8e5a13f34ebc319fe107e0ce4d77afbe /src/if.h | |
| parent | 11963d2088a68a18ea61f27584a9339cd0292cac (diff) | |
| download | dhcpcd-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 *); |
