diff options
| author | 2012-07-18 13:24:28 +0000 | |
|---|---|---|
| committer | 2012-07-18 13:24:28 +0000 | |
| commit | 2f1a25444459e0ea31940aefe300303887f12acb (patch) | |
| tree | 2a3ace4bbeea1e7fc4c5e2af47a2ea44598019d0 /sys/net80211/ieee80211_node.c | |
| parent | Fix handling of paragraph macros inside lists: (diff) | |
| download | wireguard-openbsd-2f1a25444459e0ea31940aefe300303887f12acb.tar.xz wireguard-openbsd-2f1a25444459e0ea31940aefe300303887f12acb.zip | |
Print messages about nodes purged from the node cache if hostap/ibss modes are
compiled in and the interface is in debug mode. ok sthen
Diffstat (limited to 'sys/net80211/ieee80211_node.c')
| -rw-r--r-- | sys/net80211/ieee80211_node.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/net80211/ieee80211_node.c b/sys/net80211/ieee80211_node.c index 21639714169..ead12a31257 100644 --- a/sys/net80211/ieee80211_node.c +++ b/sys/net80211/ieee80211_node.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee80211_node.c,v 1.70 2012/07/16 14:51:46 stsp Exp $ */ +/* $OpenBSD: ieee80211_node.c,v 1.71 2012/07/18 13:24:28 stsp Exp $ */ /* $NetBSD: ieee80211_node.c,v 1.14 2004/05/09 09:18:47 dyoung Exp $ */ /*- @@ -1194,9 +1194,10 @@ ieee80211_clean_nodes(struct ieee80211com *ic, int cache_timeout) continue; } } + if (ifp->if_flags & IFF_DEBUG) + printf("%s: station %s purged from node cache\n", + ifp->if_xname, ether_sprintf(ni->ni_macaddr)); #endif - DPRINTF(("station %s purged from LRU cache\n", - ether_sprintf(ni->ni_macaddr))); /* * If we're hostap and the node is authenticated, send * a deauthentication frame. The node will be freed when |
