Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet6 Generate RTM_NEWADDR when adding a pre-existing...



details:   https://anonhg.NetBSD.org/src/rev/8c680b6f9eb0
branches:  trunk
changeset: 787005:8c680b6f9eb0
user:      roy <roy%NetBSD.org@localhost>
date:      Wed May 29 12:07:58 2013 +0000

description:
Generate RTM_NEWADDR when adding a pre-existing IPv6 address.

diffstat:

 sys/netinet6/in6.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 682b61c2ace4 -r 8c680b6f9eb0 sys/netinet6/in6.c
--- a/sys/netinet6/in6.c        Wed May 29 09:26:02 2013 +0000
+++ b/sys/netinet6/in6.c        Wed May 29 12:07:58 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: in6.c,v 1.162 2013/05/21 08:37:27 roy Exp $    */
+/*     $NetBSD: in6.c,v 1.163 2013/05/29 12:07:58 roy Exp $    */
 /*     $KAME: in6.c,v 1.198 2001/07/18 09:12:38 itojun Exp $   */
 
 /*
@@ -62,7 +62,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: in6.c,v 1.162 2013/05/21 08:37:27 roy Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in6.c,v 1.163 2013/05/29 12:07:58 roy Exp $");
 
 #include "opt_inet.h"
 #include "opt_pfil_hooks.h"
@@ -1802,6 +1802,9 @@
                /* set the rtrequest function to create llinfo */
                ia->ia_ifa.ifa_rtrequest = nd6_rtrequest;
                in6_ifaddloop(&ia->ia_ifa);
+       } else {
+               /* Inform the routing socket of new flags/timings */
+               nd6_newaddrmsg(&ia->ia_ifa);
        }
 
        if (ifp->if_flags & IFF_MULTICAST)



Home | Main Index | Thread Index | Old Index