Skip to contentSkip to conversation

drivers: net: WIREGUARD depends on IPV6

PATCH In review Chen Zhou 2 participants 3 messages Feb 25, 2020

Subsystems (2)
lore
Share & tools
lore

Chen Zhou

author
#0 lore raw

PATCH 1/1 drivers: net: WIREGUARD depends on IPV6

If CONFIG_IPV6 is n, build fails:

drivers/net/wireguard/device.o: In function `wg_xmit':
device.c:(.text+0xb2d): undefined reference to `icmpv6_ndo_send'
make: *** [vmlinux] Error 1

Set WIREGUARD depending on IPV6 to fix this.

---
 drivers/net/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/Kconfig +1 -1
index 25a8f93..824292e 100644
@@ -74,7 +74,7 @@ config DUMMY
 config WIREGUARD
 	tristate "WireGuard secure network tunnel"
 	depends on NET && INET
-	depends on IPV6 || !IPV6
+	depends on IPV6
 	select NET_UDP_TUNNEL
 	select DST_CACHE
 	select CRYPTO
Signature · 1 line
2.7.4
#1 lore raw
Quoted 19 lines · Chen Zhou

If CONFIG_IPV6 is n, build fails:

drivers/net/wireguard/device.o: In function `wg_xmit':
device.c:(.text+0xb2d): undefined reference to `icmpv6_ndo_send'
make: *** [vmlinux] Error 1

Set WIREGUARD depending on IPV6 to fix this.

---
 drivers/net/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/Kconfig +0 -0
index 25a8f93..824292e 100644

drivers/net/Kconfig config DUMMY · line 77

Quoted 5 lines
drivers/net/Kconfig +1 -1
@@ -74,7 +74,7 @@ config DUMMY
 config WIREGUARD
 	tristate "WireGuard secure network tunnel"
 	depends on NET && INET
-	depends on IPV6 || !IPV6
+	depends on IPV6

Thanks for reporting the breakage. However, this is not the correct fix, as wireguard should work without IPv6. Rather, the recent icmp fixes changed something. I'll investigate why when I'm off the road in several hours.

#2 lore raw
Quoted 16 lines · Jason A. Donenfeld
Quoted 14 lines · Chen Zhou

If CONFIG_IPV6 is n, build fails:

drivers/net/wireguard/device.o: In function `wg_xmit':
device.c:(.text+0xb2d): undefined reference to `icmpv6_ndo_send'
make: *** [vmlinux] Error 1

Set WIREGUARD depending on IPV6 to fix this.

---
 drivers/net/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 15 lines

drivers/net/Kconfig config DUMMY · line 77

Quoted 10 lines
drivers/net/Kconfig +1 -1
index 25a8f93..824292e 100644
@@ -74,7 +74,7 @@ config DUMMY
 config WIREGUARD
      tristate "WireGuard secure network tunnel"
      depends on NET && INET
-     depends on IPV6 || !IPV6
+     depends on IPV6

Thanks for reporting the breakage. However, this is not the correct fix, as wireguard should work without IPv6. Rather, the recent icmp fixes changed something. I'll investigate why when I'm off the road in several hours.

Off the road. Fix posted to mailing list:
https://lore.kernel.org/netdev/[email protected]/