summaryrefslogtreecommitdiffstats
path: root/sys/netinet6
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/in6.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet6/in6.c b/sys/netinet6/in6.c
index 0a326d7..d744b04 100644
--- a/sys/netinet6/in6.c
+++ b/sys/netinet6/in6.c
@@ -461,6 +461,8 @@ in6_control(so, cmd, data, ifp, p)
return(EPERM);
/*fall through*/
case SIOCGIFPREFIX_IN6:
+ if (ip6_forwarding == 0)
+ return(EPERM);
return(in6_prefix_ioctl(so, cmd, data, ifp));
}
OpenPOWER on IntegriCloud