diff options
author | 2008-06-09 21:53:57 +0000 | |
---|---|---|
committer | 2008-06-09 21:53:57 +0000 | |
commit | 0d2d4e072df5f4bca4ecdff435c9d14244f1fb55 (patch) | |
tree | dee4d9799aebe1584db5dbbcc9e2b374d388f810 | |
parent | Add the '-p' option to ldattach(8) to pass data received from the device (diff) | |
download | wireguard-openbsd-0d2d4e072df5f4bca4ecdff435c9d14244f1fb55.tar.xz wireguard-openbsd-0d2d4e072df5f4bca4ecdff435c9d14244f1fb55.zip |
also handle wireless interfaces (IFM_IEEE80211 in addition to IFM_ETHER)
From kame
ok rainer@
-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 |