]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Revert d49db34 and add a comment as to why it's needed.
authorRoy Marples <roy@marples.name>
Wed, 21 Aug 2024 15:02:27 +0000 (16:02 +0100)
committerRoy Marples <roy@marples.name>
Wed, 21 Aug 2024 15:02:27 +0000 (16:02 +0100)
Fixes #352

src/if-linux.c
src/if.h

index 71dc5067b1090f4e0879b73602785c5fa512772e..8331265696f4b6a5ea8ba39726f4a583ed2d3b3d 100644 (file)
@@ -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;
index 9d503c6a205b5e7f3ddc1041db9bf73fad68cf74..3a37576cb45fab1b539486fdd2ff1c80fff7be7f 100644 (file)
--- 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 *);