aboutsummaryrefslogtreecommitdiffstats
path: root/sys/netinet6/route6.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netinet6/route6.c')
-rw-r--r--sys/netinet6/route6.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/netinet6/route6.c b/sys/netinet6/route6.c
index aa2544035029..6a44a558f730 100644
--- a/sys/netinet6/route6.c
+++ b/sys/netinet6/route6.c
@@ -48,6 +48,8 @@
#include <netinet/icmp6.h>
+extern int ip6_rthdr0_allowed;
+
static int ip6_rthdr0 __P((struct mbuf *, struct ip6_hdr *,
struct ip6_rthdr0 *));
@@ -87,6 +89,8 @@ route6_input(mp, offp, proto)
switch (rh->ip6r_type) {
case IPV6_RTHDR_TYPE_0:
+ if (!ip6_rthdr0_allowed)
+ return (IPPROTO_DONE);
rhlen = (rh->ip6r_len + 1) << 3;
#ifndef PULLDOWN_TEST
/*