Module Name: src
Committed By: martin
Date: Sat Sep 21 12:35:22 UTC 2024
Modified Files:
src/usr.sbin/ifwatchd [netbsd-10]: ifwatchd.c
Log Message:
Pull up following revision(s) (requested by rin in ticket #907):
usr.sbin/ifwatchd/ifwatchd.c: revision 1.47
Don't call UP script when an IP address becomes deprecated.
To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.46.6.1 src/usr.sbin/ifwatchd/ifwatchd.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/ifwatchd/ifwatchd.c
diff -u src/usr.sbin/ifwatchd/ifwatchd.c:1.46 src/usr.sbin/ifwatchd/ifwatchd.c:1.46.6.1
--- src/usr.sbin/ifwatchd/ifwatchd.c:1.46 Sun Oct 4 20:36:32 2020
+++ src/usr.sbin/ifwatchd/ifwatchd.c Sat Sep 21 12:35:22 2024
@@ -1,6 +1,6 @@
-/* $NetBSD: ifwatchd.c,v 1.46 2020/10/04 20:36:32 roy Exp $ */
+/* $NetBSD: ifwatchd.c,v 1.46.6.1 2024/09/21 12:35:22 martin Exp $ */
#include <sys/cdefs.h>
-__RCSID("$NetBSD: ifwatchd.c,v 1.46 2020/10/04 20:36:32 roy Exp $");
+__RCSID("$NetBSD: ifwatchd.c,v 1.46.6.1 2024/09/21 12:35:22 martin Exp $");
/*-
* Copyright (c) 2002, 2003 The NetBSD Foundation, Inc.
@@ -56,7 +56,7 @@ __RCSID("$NetBSD: ifwatchd.c,v 1.46 2020
#include <unistd.h>
enum event { ARRIVAL, DEPARTURE, UP, DOWN, CARRIER, NO_CARRIER };
-enum addrflag { NOTREADY, DETACHED, READY };
+enum addrflag { NOTREADY, DETACHED, DEPRECATED, READY };
/* local functions */
__dead static void usage(void);
@@ -303,6 +303,8 @@ check_addrflags(int af, int addrflags)
return NOTREADY;
if (addrflags & IN6_IFF_DETACHED)
return DETACHED;
+ if (addrflags & IN6_IFF_DEPRECATED)
+ return DEPRECATED;
break;
}
return READY;