From 6486cbd7bbb9424f2f9778d3dd759b8ff9f02d37 Mon Sep 17 00:00:00 2001 From: "George V. Neville-Neil" Date: Mon, 23 Apr 2007 09:32:04 +0000 Subject: [PATCH] Turn off route header processing for now due to issues pointed out by Philippe Biondi and Arnaud Ebalard. This is a temporary fix until more discussion can be had on the exact risks involved in allowing source routing in IPv6 Submitted by: itojun Reviewed by: jinmei MFC after: 1 day --- sys/netinet6/route6.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sys/netinet6/route6.c b/sys/netinet6/route6.c index c082e33a810..a25712c53be 100644 --- a/sys/netinet6/route6.c +++ b/sys/netinet6/route6.c @@ -49,9 +49,12 @@ #include +#if 0 static int ip6_rthdr0 __P((struct mbuf *, struct ip6_hdr *, struct ip6_rthdr0 *)); +#endif /* Disable route header processing. */ + int route6_input(mp, offp, proto) struct mbuf **mp; @@ -87,6 +90,7 @@ route6_input(mp, offp, proto) #endif switch (rh->ip6r_type) { +#if 0 case IPV6_RTHDR_TYPE_0: rhlen = (rh->ip6r_len + 1) << 3; #ifndef PULLDOWN_TEST @@ -114,6 +118,7 @@ route6_input(mp, offp, proto) if (ip6_rthdr0(m, ip6, (struct ip6_rthdr0 *)rh)) return (IPPROTO_DONE); break; +#endif /* Disable route header 0 */ default: /* unknown routing type */ if (rh->ip6r_segleft == 0) { @@ -136,6 +141,7 @@ route6_input(mp, offp, proto) * RFC2292 backward compatibility warning: no support for strict/loose bitmap, * as it was dropped between RFC1883 and RFC2460. */ +#if 0 static int ip6_rthdr0(m, ip6, rh0) struct mbuf *m; @@ -233,3 +239,4 @@ ip6_rthdr0(m, ip6, rh0) m_freem(m); return (-1); } +#endif -- 2.45.0