From: Roy Marples Date: Wed, 21 Aug 2024 15:02:27 +0000 (+0100) Subject: Revert d49db34 and add a comment as to why it's needed. X-Git-Tag: v10.0.10~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b123d03e9b4822650a08a63a2b0e9e1437117e4;p=thirdparty%2Fdhcpcd.git Revert d49db34 and add a comment as to why it's needed. Fixes #352 --- diff --git a/src/if-linux.c b/src/if-linux.c index 71dc5067..83312656 100644 --- a/src/if-linux.c +++ b/src/if-linux.c @@ -385,7 +385,7 @@ if_linksocket(struct sockaddr_nl *nl, int protocol, int flags) return fd; } -static char * +char * if_getnetworknamespace(char *buf, size_t len) { struct stat sb_self, sb_netns; diff --git a/src/if.h b/src/if.h index 9d503c6a..3a37576c 100644 --- a/src/if.h +++ b/src/if.h @@ -212,6 +212,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); /* used by udev */ int if_opensockets(struct dhcpcd_ctx *); int if_opensockets_os(struct dhcpcd_ctx *); void if_closesockets(struct dhcpcd_ctx *);