ieee80211_ddb.c (183355) | ieee80211_ddb.c (183550) |
---|---|
1/*- 2 * Copyright (c) 2007-2008 Sam Leffler, Errno Consulting 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 10 unchanged lines hidden (view full) --- 19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 */ 25 26#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2007-2008 Sam Leffler, Errno Consulting 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 10 unchanged lines hidden (view full) --- 19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 */ 25 26#include <sys/cdefs.h> |
27__FBSDID("$FreeBSD: head/sys/net80211/ieee80211_ddb.c 183355 2008-09-25 16:46:36Z thompsa $"); | 27__FBSDID("$FreeBSD: head/sys/net80211/ieee80211_ddb.c 183550 2008-10-02 15:37:58Z zec $"); |
28 29#include "opt_ddb.h" 30#include "opt_wlan.h" 31 32#ifdef DDB 33/* 34 * IEEE 802.11 DDB support 35 */ --- 148 unchanged lines hidden (view full) --- 184 } 185 186 ic = (const struct ieee80211com *) addr; 187 _db_show_com(ic, showvaps, showsta, showprocs); 188} 189 190DB_SHOW_ALL_COMMAND(vaps, db_show_all_vaps) 191{ | 28 29#include "opt_ddb.h" 30#include "opt_wlan.h" 31 32#ifdef DDB 33/* 34 * IEEE 802.11 DDB support 35 */ --- 148 unchanged lines hidden (view full) --- 184 } 185 186 ic = (const struct ieee80211com *) addr; 187 _db_show_com(ic, showvaps, showsta, showprocs); 188} 189 190DB_SHOW_ALL_COMMAND(vaps, db_show_all_vaps) 191{ |
192 VNET_ITERATOR_DECL(vnet_iter); |
|
192 const struct ifnet *ifp; 193 int i, showall = 0; 194 195 for (i = 0; modif[i] != '\0'; i++) 196 switch (modif[i]) { 197 case 'a': 198 showall = 1; 199 break; 200 } 201 | 193 const struct ifnet *ifp; 194 int i, showall = 0; 195 196 for (i = 0; modif[i] != '\0'; i++) 197 switch (modif[i]) { 198 case 'a': 199 showall = 1; 200 break; 201 } 202 |
202 TAILQ_FOREACH(ifp, &V_ifnet, if_list) 203 if (ifp->if_type == IFT_IEEE80211) { 204 const struct ieee80211com *ic = ifp->if_l2com; | 203 VNET_FOREACH(vnet_iter) { 204 INIT_VNET_NET(vnet_iter); 205 TAILQ_FOREACH(ifp, &V_ifnet, if_list) 206 if (ifp->if_type == IFT_IEEE80211) { 207 const struct ieee80211com *ic = ifp->if_l2com; |
205 | 208 |
206 if (!showall) { 207 const struct ieee80211vap *vap; 208 db_printf("%s: com %p vaps:", 209 ifp->if_xname, ic); 210 TAILQ_FOREACH(vap, &ic->ic_vaps, iv_next) 211 db_printf(" %s(%p)", 212 vap->iv_ifp->if_xname, vap); 213 db_printf("\n"); 214 } else 215 _db_show_com(ic, 1, 1, 1); 216 } | 209 if (!showall) { 210 const struct ieee80211vap *vap; 211 db_printf("%s: com %p vaps:", 212 ifp->if_xname, ic); 213 TAILQ_FOREACH(vap, &ic->ic_vaps, 214 iv_next) 215 db_printf(" %s(%p)", 216 vap->iv_ifp->if_xname, vap); 217 db_printf("\n"); 218 } else 219 _db_show_com(ic, 1, 1, 1); 220 } 221 } |
217} 218 219static void 220_db_show_txampdu(const char *sep, int ix, const struct ieee80211_tx_ampdu *tap) 221{ 222 db_printf("%stxampdu[%d]: %p flags %b ac %u\n", 223 sep, ix, tap, tap->txa_flags, IEEE80211_AGGR_BITS, tap->txa_ac); 224 db_printf("%s token %u qbytes %d qframes %d start %u wnd %u\n", --- 575 unchanged lines hidden --- | 222} 223 224static void 225_db_show_txampdu(const char *sep, int ix, const struct ieee80211_tx_ampdu *tap) 226{ 227 db_printf("%stxampdu[%d]: %p flags %b ac %u\n", 228 sep, ix, tap, tap->txa_flags, IEEE80211_AGGR_BITS, tap->txa_ac); 229 db_printf("%s token %u qbytes %d qframes %d start %u wnd %u\n", --- 575 unchanged lines hidden --- |