diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-09-04 07:30:52 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-09-04 07:30:52 +0000 |
commit | a83c1cb75aea243b96d4f7894ac04ffeb0673ec2 (patch) | |
tree | ed3b5ae2f2dbf6179dcab0e9814de2edbb3078e3 | |
parent | 8182024ed97ac36b040c168df6fb7a8d1f777acf (diff) |
allow deprecated bit to be set from userland by ifconfig. NetBSD PR 18163
-rw-r--r-- | sys/netinet6/nd6.c | 5 |
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 { /* |