Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet6 Sync denied flags.



details:   https://anonhg.NetBSD.org/src/rev/f77ffc431a9a
branches:  trunk
changeset: 817530:f77ffc431a9a
user:      roy <roy%NetBSD.org@localhost>
date:      Tue Aug 23 19:39:04 2016 +0000

description:
Sync denied flags.

diffstat:

 sys/netinet6/in6_src.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 8d21f67befff -r f77ffc431a9a sys/netinet6/in6_src.c
--- a/sys/netinet6/in6_src.c    Tue Aug 23 16:42:55 2016 +0000
+++ b/sys/netinet6/in6_src.c    Tue Aug 23 19:39:04 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: in6_src.c,v 1.66 2016/08/01 03:15:31 ozaki-r Exp $     */
+/*     $NetBSD: in6_src.c,v 1.67 2016/08/23 19:39:04 roy Exp $ */
 /*     $KAME: in6_src.c,v 1.159 2005/10/19 01:40:32 t-momose Exp $     */
 
 /*
@@ -66,7 +66,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: in6_src.c,v 1.66 2016/08/01 03:15:31 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in6_src.c,v 1.67 2016/08/23 19:39:04 roy Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -251,7 +251,8 @@
                        goto exit;
                }
                ia6 = ifatoia6(ifa);
-               if (ia6->ia6_flags & (IN6_IFF_ANYCAST | IN6_IFF_NOTREADY)) {
+               if (ia6->ia6_flags &
+                   (IN6_IFF_ANYCAST | IN6_IFF_NOTREADY | IN6_IFF_DETACHED)) {
                        pserialize_read_exit(_s);
                        *errorp = EADDRNOTAVAIL;
                        goto exit;



Home | Main Index | Thread Index | Old Index