lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251012124002.296018-1-yureka@cyberchaos.dev>
Date: Sun, 12 Oct 2025 14:39:47 +0200
From: Yureka <yureka@...erchaos.dev>
To: David Ahern <dsahern@...il.com>,
	netdev@...r.kernel.org
Cc: Yureka <yureka@...erchaos.dev>
Subject: [PATCH iproute2-next] lib: bridge: avoid redefinition of in6_addr

On musl libc, which does not use the kernel definitions of in6_addr, including
the libc headers after the kernel (UAPI) headers would cause a redefinition
error. The opposite order avoids the redefinition.

Fixes: 9e89d5b94d749f37525cd8778311e1c9f28f172a
Signed-off-by: Yureka <yureka@...erchaos.dev>
---

I'm not one-hundred-percent sure how the opposite order avoids the
redefinition, but it fixes my build against musl libc headers.

 lib/bridge.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bridge.c b/lib/bridge.c
index 5386aa01..104f5858 100644
--- a/lib/bridge.c
+++ b/lib/bridge.c
@@ -2,8 +2,8 @@
 
 #include <net/if.h>
 
-#include "bridge.h"
 #include "utils.h"
+#include "bridge.h"
 
 void bridge_print_vlan_flags(__u16 flags)
 {
-- 
2.51.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ