Module Name:    src
Committed By:   ozaki-r
Date:           Fri Jan  8 08:50:07 UTC 2016

Modified Files:
        src/sys/netinet6: nd6.c

Log Message:
Add missing RTF_LOCAL; sync with arp_setgate


To generate a diff of this commit:
cvs rdiff -u -r1.183 -r1.184 src/sys/netinet6/nd6.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/netinet6/nd6.c
diff -u src/sys/netinet6/nd6.c:1.183 src/sys/netinet6/nd6.c:1.184
--- src/sys/netinet6/nd6.c:1.183	Fri Dec 18 09:04:33 2015
+++ src/sys/netinet6/nd6.c	Fri Jan  8 08:50:07 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: nd6.c,v 1.183 2015/12/18 09:04:33 ozaki-r Exp $	*/
+/*	$NetBSD: nd6.c,v 1.184 2016/01/08 08:50:07 ozaki-r Exp $	*/
 /*	$KAME: nd6.c,v 1.279 2002/06/08 11:16:51 itojun Exp $	*/
 
 /*
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nd6.c,v 1.183 2015/12/18 09:04:33 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nd6.c,v 1.184 2016/01/08 08:50:07 ozaki-r Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_net_mpsafe.h"
@@ -1370,7 +1370,7 @@ nd6_rtrequest(int req, struct rtentry *r
 		 *	   rt->rt_flags |= RTF_CLONING;
 		 */
 		if ((rt->rt_flags & RTF_CLONING) ||
-		    ((rt->rt_flags & RTF_LLINFO) && ln == NULL)) {
+		    ((rt->rt_flags & (RTF_LLINFO | RTF_LOCAL)) && ln == NULL)) {
 			union {
 				struct sockaddr sa;
 				struct sockaddr_dl sdl;

Reply via email to