Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src inet6: Revert prior



details:   https://anonhg.NetBSD.org/src/rev/9da9b6f28dbe
branches:  trunk
changeset: 453887:9da9b6f28dbe
user:      roy <roy%NetBSD.org@localhost>
date:      Fri Aug 30 08:40:25 2019 +0000

description:
inet6: Revert prior

It's not needed, listing to RA is enough as discussed on tech-net.

diffstat:

 doc/CHANGES            |   4 +---
 sys/netinet6/nd6_nbr.c |  23 ++---------------------
 2 files changed, 3 insertions(+), 24 deletions(-)

diffs (59 lines):

diff -r e06fab033fe0 -r 9da9b6f28dbe doc/CHANGES
--- a/doc/CHANGES       Fri Aug 30 07:53:47 2019 +0000
+++ b/doc/CHANGES       Fri Aug 30 08:40:25 2019 +0000
@@ -1,4 +1,4 @@
-# LIST OF CHANGES FROM LAST RELEASE:                   <$Revision: 1.2574 $>
+# LIST OF CHANGES FROM LAST RELEASE:                   <$Revision: 1.2575 $>
 #
 #
 # [Note: This file does not mention every change made to the NetBSD source tree.
@@ -32,5 +32,3 @@
        usbnet(9): Port kue(4) and upl(4). [mrg 20190818]
        boot(8): GPT and RAIDframe support for x86 bootstrap [manu 20190818]
        dhcpcd(8): Import dhcpcd-8.0.3 [roy 20190821]
-       inet6: Announce Router to Host via RTM_CHANGE without a lladdr.
-               dhcpcd no longer needs to parse NA messages. [roy 20190829]
diff -r e06fab033fe0 -r 9da9b6f28dbe sys/netinet6/nd6_nbr.c
--- a/sys/netinet6/nd6_nbr.c    Fri Aug 30 07:53:47 2019 +0000
+++ b/sys/netinet6/nd6_nbr.c    Fri Aug 30 08:40:25 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nd6_nbr.c,v 1.170 2019/08/29 16:26:43 roy Exp $        */
+/*     $NetBSD: nd6_nbr.c,v 1.171 2019/08/30 08:40:25 roy Exp $        */
 /*     $KAME: nd6_nbr.c,v 1.61 2001/02/10 16:06:14 jinmei Exp $        */
 
 /*
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nd6_nbr.c,v 1.170 2019/08/29 16:26:43 roy Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nd6_nbr.c,v 1.171 2019/08/30 08:40:25 roy Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -856,25 +856,6 @@
                         */
                        const struct in6_addr *in6 = &ln->r_l3addr.addr6;
                        struct nd_defrouter *dr;
-                       struct sockaddr_in6 sin6;
-
-                       /*
-                        * Userland really has no business with NA messages.
-                        * However, RFC 4861 6.2.5 only says departing routers
-                        * *SHOULD* send RA with lifetime of zero and *MUST*
-                        * send all subsequent NA messages if the router flag
-                        * unset.
-                        *
-                        * To help userland avoid the expensive process of
-                        * parsing NA messages, send RTM_CHANGE without a
-                        * lladdr in the gateway.
-                        * This is different from the intial RTM_ADD also
-                        * without a lladdr in the gateway and RTM_DELETE.
-                        */
-                       sockaddr_in6_init(&sin6, in6, 0, 0, 0);
-                       rt_clonedmsg(RTM_CHANGE, sin6tosa(&sin6), NULL,
-                           ln->lle_tbl->llt_ifp);
-                       rt_announce = true;
 
                        ND6_WLOCK();
                        dr = nd6_defrouter_lookup(in6, ln->lle_tbl->llt_ifp);



Home | Main Index | Thread Index | Old Index