changeset 5415:5fae7c5c0f25 draft

inet6: Linux will convert NULL to all, so don't specify all
author Roy Marples <roy@marples.name>
date Mon, 03 Aug 2020 16:55:51 +0100
parents bf786eeda3fc
children 1290c8e7ea84
files src/ipv6.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/ipv6.c	Mon Aug 03 16:54:59 2020 +0100
+++ b/src/ipv6.c	Mon Aug 03 16:55:51 2020 +0100
@@ -1100,10 +1100,10 @@
 	 * Per interface only affects IsRouter of NA messages. */
 #if defined(PRIVSEP) && (defined(HAVE_PLEDGE) || defined(__linux__))
 	if (IN_PRIVSEP(sifp->ctx))
-		forwarding = ps_root_ip6forwarding(sifp->ctx, "all") != 0;
+		forwarding = ps_root_ip6forwarding(sifp->ctx, NULL) != 0;
 	else
 #endif
-		forwarding = ip6_forwarding("all") != 0;
+		forwarding = ip6_forwarding(NULL) != 0;
 
 	TAILQ_FOREACH(ifp, sifp->ctx->ifaces, next) {
 		if (ifp != sifp && !forwarding)