summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoritojun <itojun@openbsd.org>2002-09-04 07:30:51 +0000
committeritojun <itojun@openbsd.org>2002-09-04 07:30:51 +0000
commit1a33efd02c74ce5d79f60b289d36a7ec03776b03 (patch)
treec2e2cc1c32bd7fe5439ee9de92297f1ca4e13757
parentpass struct proc * down to in6_pcbsetport (diff)
downloadwireguard-openbsd-1a33efd02c74ce5d79f60b289d36a7ec03776b03.tar.xz
wireguard-openbsd-1a33efd02c74ce5d79f60b289d36a7ec03776b03.zip
allow deprecated bit to be set from userland by ifconfig. NetBSD PR 18163
-rw-r--r--sys/netinet6/nd6.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet6/nd6.c b/sys/netinet6/nd6.c
index ee66e24b077..ce867b1dbf6 100644
--- a/sys/netinet6/nd6.c
+++ b/sys/netinet6/nd6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nd6.c,v 1.55 2002/09/04 07:24:59 itojun Exp $ */
+/* $OpenBSD: nd6.c,v 1.56 2002/09/04 07:30:51 itojun Exp $ */
/* $KAME: nd6.c,v 1.280 2002/06/08 19:52:07 itojun Exp $ */
/*
@@ -512,7 +512,8 @@ nd6_timer(ignored_arg)
if (IFA6_IS_INVALID(ia6)) {
in6_purgeaddr(&ia6->ia_ifa);
}
- if (IFA6_IS_DEPRECATED(ia6)) {
+ if ((ia6->ia6_flags & IN6_IFF_DEPRECATED) != 0 ||
+ IFA6_IS_DEPRECATED(ia6)) {
ia6->ia6_flags |= IN6_IFF_DEPRECATED;
} else {
/*