Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet Clear IN_IFF_TENTATIVE when stopping DaD here.



details:   https://anonhg.NetBSD.org/src/rev/21e71bbd82de
branches:  trunk
changeset: 347786:21e71bbd82de
user:      roy <roy%NetBSD.org@localhost>
date:      Fri Sep 16 13:47:47 2016 +0000

description:
Clear IN_IFF_TENTATIVE when stopping DaD here.

diffstat:

 sys/netinet/if_arp.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 7c76c10531ae -r 21e71bbd82de sys/netinet/if_arp.c
--- a/sys/netinet/if_arp.c      Fri Sep 16 12:57:26 2016 +0000
+++ b/sys/netinet/if_arp.c      Fri Sep 16 13:47:47 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_arp.c,v 1.225 2016/09/16 09:59:45 roy Exp $ */
+/*     $NetBSD: if_arp.c,v 1.226 2016/09/16 13:47:47 roy Exp $ */
 
 /*-
  * Copyright (c) 1998, 2000, 2008 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_arp.c,v 1.225 2016/09/16 09:59:45 roy Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_arp.c,v 1.226 2016/09/16 13:47:47 roy Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ddb.h"
@@ -1481,6 +1481,7 @@
                        ia->ia_dad_stop(ifa);
                ia->ia_dad_start = NULL;
                ia->ia_dad_stop = NULL;
+               ia->ia4_flags &= ~IN_IFF_TENTATIVE;
        } else {
                ia->ia_dad_start = arp_dad_start;
                ia->ia_dad_stop = arp_dad_stop;



Home | Main Index | Thread Index | Old Index