Date: Tue, 8 Jan 2019 12:38:13 -0800 From: prabhakar lakhera <prabhakar.lakhera@gmail.com> To: freebsd-net@freebsd.org Subject: RFC 5095 Deprecation of Type 0 Routing Headers in IPv6 and FreeBSD Message-ID: <CALg%2BrhU6KJ_fReAYsz5qCpdEkSeQ%2Bdjg9M73OM_UM5LYu-9aBg@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hi, Looks like: https://svnweb.freebsd.org/base?view=revision&revision=191942 I am wondering if it should also be removed from icmp6_notify_error? ################################################################## /* * XXX: currently there is no * officially defined type other * than type-0. * Note that if the segment left field * is 0, all intermediate hops must * have been passed. */ if (rth->ip6r_segleft && rth->ip6r_type == IPV6_RTHDR_TYPE_0) { int hops; #ifndef PULLDOWN_TEST IP6_EXTHDR_CHECK(m, 0, eoff + rthlen, -1); rth0 = (struct ip6_rthdr0 *) (mtod(m, caddr_t) + eoff); #else IP6_EXTHDR_GET(rth0, struct ip6_rthdr0 *, m, eoff, rthlen); if (rth0 == NULL) { ICMP6STAT_INC(icp6s_tooshort); return (-1); } #endif /* just ignore a bogus header */ if ((rth0->ip6r0_len % 2) == 0 && (hops = rth0->ip6r0_len/2)) finaldst = (struct in6_addr *)(rth0 + 1) + (hops - 1); } ##################################################################
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALg%2BrhU6KJ_fReAYsz5qCpdEkSeQ%2Bdjg9M73OM_UM5LYu-9aBg>