diff options
author | claudio <claudio@openbsd.org> | 2011-07-07 00:36:13 +0000 |
---|---|---|
committer | claudio <claudio@openbsd.org> | 2011-07-07 00:36:13 +0000 |
commit | 6ccc0b943c4671bf445d0e6e8d309e37f9f86566 (patch) | |
tree | a2590126c9b4269665f7d97b5b8b41be2e8177df /usr.sbin/ospf6d/ospfe.c | |
parent | Fix bit twiddling routines on ARM; where floating-point word order (diff) | |
download | wireguard-openbsd-6ccc0b943c4671bf445d0e6e8d309e37f9f86566.tar.xz wireguard-openbsd-6ccc0b943c4671bf445d0e6e8d309e37f9f86566.zip |
Kill nh_reachable. Link state checking is so easy now that it does not
matter anymore to cache this value for ospf6d.
Diffstat (limited to 'usr.sbin/ospf6d/ospfe.c')
-rw-r--r-- | usr.sbin/ospf6d/ospfe.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ospf6d/ospfe.c b/usr.sbin/ospf6d/ospfe.c index a8ef62dedc0..ca4c286e526 100644 --- a/usr.sbin/ospf6d/ospfe.c +++ b/usr.sbin/ospf6d/ospfe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ospfe.c,v 1.34 2011/05/02 09:24:00 claudio Exp $ */ +/* $OpenBSD: ospfe.c,v 1.35 2011/07/07 00:36:13 claudio Exp $ */ /* * Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org> @@ -288,9 +288,9 @@ ospfe_dispatch_main(int fd, short event, void *bula) fatalx("interface lost in ospfe"); iface->flags = ifp->flags; iface->linkstate = ifp->linkstate; - iface->nh_reachable = ifp->nh_reachable; - if (iface->nh_reachable) { + if ((iface->flags & IFF_UP) && + LINK_STATE_IS_UP(iface->linkstate)) { if_fsm(iface, IF_EVT_UP); log_warnx("interface %s up", iface->name); } else { |