From ddf47c26f3c162debed6c272d454d1127520cd2f Mon Sep 17 00:00:00 2001 From: Jun-ichiro itojun Hagino Date: Sun, 3 Sep 2000 13:43:13 +0000 Subject: [PATCH] repair type 0 routing header support. it was caused by RFC2292/2292bis difference. from: jinmei@kame.net --- sys/netinet6/route6.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/netinet6/route6.c b/sys/netinet6/route6.c index cbba9db80d91..3cd95a10a959 100644 --- a/sys/netinet6/route6.c +++ b/sys/netinet6/route6.c @@ -157,7 +157,8 @@ ip6_rthdr0(m, ip6, rh0) index = addrs - rh0->ip6r0_segleft; rh0->ip6r0_segleft--; - nextaddr = ((struct in6_addr *)(rh0 + 1)) + index; + /* note that ip6r0_addr does not exist in RFC2292bis */ + nextaddr = rh0->ip6r0_addr + index; /* * reject invalid addresses. be proactive about malicious use of