RFC 5095 Deprecation of Type 0 Routing Headers in IPv6 and FreeBSD

prabhakar lakhera prabhakar.lakhera at gmail.com
Tue Jan 8 20:38:27 UTC 2019


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);

                                }

##################################################################


More information about the freebsd-net mailing list