Module Name:    src
Committed By:   ozaki-r
Date:           Tue Aug 20 08:22:35 UTC 2024

Modified Files:
        src/sys/netinet: in.c

Log Message:
inet: send GARP on link up if DAD is disabled

This behavior was accidentally removed at rev 1.233.


To generate a diff of this commit:
cvs rdiff -u -r1.247 -r1.248 src/sys/netinet/in.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/netinet/in.c
diff -u src/sys/netinet/in.c:1.247 src/sys/netinet/in.c:1.248
--- src/sys/netinet/in.c:1.247	Fri Nov 25 08:39:32 2022
+++ src/sys/netinet/in.c	Tue Aug 20 08:22:35 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: in.c,v 1.247 2022/11/25 08:39:32 knakahara Exp $	*/
+/*	$NetBSD: in.c,v 1.248 2024/08/20 08:22:35 ozaki-r Exp $	*/
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -91,7 +91,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: in.c,v 1.247 2022/11/25 08:39:32 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in.c,v 1.248 2024/08/20 08:22:35 ozaki-r Exp $");
 
 #include "arp.h"
 
@@ -1549,8 +1549,7 @@ in_if_link_up(struct ifnet *ifp)
 		/* If detached then mark as tentative */
 		if (ia->ia4_flags & IN_IFF_DETACHED) {
 			ia->ia4_flags &= ~IN_IFF_DETACHED;
-			if (ip_dad_enabled() && if_do_dad(ifp) &&
-			    ia->ia_dad_start != NULL)
+			if (if_do_dad(ifp) && ia->ia_dad_start != NULL)
 				ia->ia4_flags |= IN_IFF_TENTATIVE;
 			else if ((ia->ia4_flags & IN_IFF_TENTATIVE) == 0)
 				rt_addrmsg(RTM_NEWADDR, ifa);

Reply via email to