diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2008-06-09 21:53:58 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2008-06-09 21:53:58 +0000 |
commit | b23076fddd8f401f3e2bebdfebe5a47e9dbdaea8 (patch) | |
tree | 638233d2dd2103136df38e0848d91efffc41bc40 /usr.sbin/rtsold/if.c | |
parent | c673aad497cae9b5ea373523a5727f0ec50d94e5 (diff) |
also handle wireless interfaces (IFM_IEEE80211 in addition to IFM_ETHER)
From kame
ok rainer@
Diffstat (limited to 'usr.sbin/rtsold/if.c')
-rw-r--r-- | usr.sbin/rtsold/if.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/rtsold/if.c b/usr.sbin/rtsold/if.c index 7f3661e72c2..264d058ff9b 100644 --- a/usr.sbin/rtsold/if.c +++ b/usr.sbin/rtsold/if.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if.c,v 1.19 2006/03/24 22:27:07 otto Exp $ */ +/* $OpenBSD: if.c,v 1.20 2008/06/09 21:53:57 reyk Exp $ */ /* $KAME: if.c,v 1.18 2002/05/31 10:10:03 itojun Exp $ */ /* @@ -167,6 +167,7 @@ interface_status(struct ifinfo *ifinfo) if (ifmr.ifm_status & IFM_AVALID) { switch (ifmr.ifm_active & IFM_NMASK) { case IFM_ETHER: + case IFM_IEEE80211: if (ifmr.ifm_status & IFM_ACTIVE) goto active; else |