亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? 80211stats.c.svn-base

?? 最新之a(chǎn)theros芯片driver source code, 基于linux操作系統(tǒng),內(nèi)含atheros芯片HAL全部代碼
?? SVN-BASE
字號:
/*- * Copyright (c) 2002-2005 Sam Leffler, Errno Consulting * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright *    notice, this list of conditions and the following disclaimer, *    without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer *    similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any *    redistribution must be conditioned upon including a substantially *    similar Disclaimer requirement for further binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names *    of any contributors may be used to endorse or promote products derived *    from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF * THE POSSIBILITY OF SUCH DAMAGES. * * $Id$ *//* * 80211stats [-i interface] * (default interface is wifi0). */#include <sys/types.h>#include <sys/file.h>#include <sys/ioctl.h>#include <sys/socket.h>#include <netinet/ether.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <signal.h>#include <unistd.h>#include <err.h>#include <include/compat.h>#include "wireless_copy.h"#include "net80211/ieee80211.h"#include "net80211/ieee80211_crypto.h"#include "net80211/ieee80211_ioctl.h"#ifndef SIOCG80211STATS#define	SIOCG80211STATS	(SIOCDEVPRIVATE + 2)#endif/* printf modifier for u_int64_t */#if defined(_LP64) || defined(__alpha__)#define INT64FMT "%lu"#else#define INT64FMT "%llu"#endifstatic voidprintstats(FILE *fd, const struct ieee80211_stats *stats){#define	STAT(x,fmt) \	if (stats->is_##x) fprintf(fd, "%u " fmt "\n", stats->is_##x)	STAT(rx_badversion,	"rx frame with bad version");	STAT(rx_tooshort,	"rx frame too short");	STAT(rx_wrongbss,	"rx from wrong bssid");	STAT(rx_dup,		"rx discard due to it's a dup");	STAT(rx_wrongdir,	"rx w/ wrong direction");	STAT(rx_mcastecho,	"rx discard due to mcast echo");	STAT(rx_notassoc,	"rx discard due to sta !assoc");	STAT(rx_noprivacy,	"rx w/ wep but privacy off");	STAT(rx_unencrypted,	"rx w/o wep and privacy on");	STAT(rx_wepfail,	"rx wep processing failed");	STAT(rx_decap,		"rx decapsulation failed");	STAT(rx_mgtdiscard,	"rx discard mgt frames");	STAT(rx_ctl,		"rx discard ctrl frames");	STAT(rx_beacon,		"rx beacon frames");	STAT(rx_rstoobig,	"rx rate set truncated");	STAT(rx_elem_missing,	"rx required element missing");	STAT(rx_elem_toobig,	"rx element too big");	STAT(rx_elem_toosmall,	"rx element too small");	STAT(rx_elem_unknown,	"rx element unknown");	STAT(rx_badchan,	"rx frame w/ invalid chan");	STAT(rx_chanmismatch,	"rx frame chan mismatch");	STAT(rx_nodealloc,	"nodes allocated (rx)");	STAT(rx_ssidmismatch,	"rx frame ssid mismatch");	STAT(rx_auth_unsupported,"rx w/ unsupported auth alg");	STAT(rx_auth_fail,	"rx sta auth failure");	STAT(rx_auth_countermeasures,		"rx sta auth failure due to TKIP countermeasures");	STAT(rx_assoc_bss,	"rx assoc from wrong bssid");	STAT(rx_assoc_notauth,	"rx assoc w/o auth");	STAT(rx_assoc_capmismatch,"rx assoc w/ cap mismatch");	STAT(rx_assoc_norate,	"rx assoc w/ no rate match");	STAT(rx_assoc_badwpaie,	"rx assoc w/ bad WPA IE");	STAT(rx_deauth,		"rx deauthentication");	STAT(rx_disassoc,	"rx disassociation");	STAT(rx_badsubtype,	"rx frame w/ unknown subtype");	STAT(rx_nobuf,		"rx failed for lack of sk_buffer");	STAT(rx_decryptcrc,	"rx decrypt failed on crc");	STAT(rx_ahdemo_mgt,		"rx discard mgmt frame received in ahdoc demo mode");	STAT(rx_bad_auth,	"rx bad authentication request");	STAT(rx_unauth,		"rx discard due to port unauthorized");	STAT(rx_badkeyid,	"rx w/ incorrect keyid");	STAT(rx_ccmpreplay,	"rx seq# violation (CCMP)");	STAT(rx_ccmpformat,	"rx format bad (CCMP)");	STAT(rx_ccmpmic,	"rx MIC check failed (CCMP)");	STAT(rx_tkipreplay,	"rx seq# violation (TKIP)");	STAT(rx_tkipformat,	"rx format bad (TKIP)");	STAT(rx_tkipmic,	"rx MIC check failed (TKIP)");	STAT(rx_tkipicv,	"rx ICV check failed (TKIP)");	STAT(rx_badcipher,	"rx failed due to bad cipher/key type");	STAT(rx_nocipherctx,	"rx failed due to key/cipher ctx not setup");	STAT(rx_acl,		"rx discard due to acl policy");	STAT(rx_ffcnt,		"rx fast frames");	STAT(rx_badathtnl,   	"rx fast frame failed due to bad tunnel header");	STAT(tx_nobuf,		"tx failed for lack of sk_buffer");	STAT(tx_nonode,		"tx failed for no node");	STAT(tx_unknownmgt,	"tx of unknown mgt frame");	STAT(tx_badcipher,	"tx failed due to bad ciper/key type");	STAT(tx_nodefkey,	"tx failed due to no defkey");	STAT(tx_noheadroom,	"tx failed due to no space for crypto hdrs");	STAT(tx_ffokcnt,	"tx atheros fast frames successful");	STAT(tx_fferrcnt,	"tx atheros fast frames failed");	STAT(scan_active,	"active scans started");	STAT(scan_passive,	"passive scans started");	STAT(node_timeout,	"nodes timed out inactivity");	STAT(crypto_nomem,	"cipher context malloc failed");	STAT(crypto_tkip,	"tkip crypto done in s/w");	STAT(crypto_tkipenmic,	"tkip tx MIC done in s/w");	STAT(crypto_tkipdemic,	"tkip rx MIC done in s/w");	STAT(crypto_tkipcm,	"tkip dropped frames due to countermeasures");	STAT(crypto_ccmp,	"ccmp crypto done in s/w");	STAT(crypto_wep,	"wep crypto done in s/w");	STAT(crypto_setkey_cipher,"setkey failed due to cipher rejected data");	STAT(crypto_setkey_nokey,"setkey failed due to no key index");	STAT(crypto_delkey,	"driver key delete failed");	STAT(crypto_badcipher,	"setkey failed due to unknown cipher");	STAT(crypto_nocipher,	"setkey failed due to cipher module unavailable");	STAT(crypto_attachfail,	"setkey failed due to cipher attach failed");	STAT(crypto_swfallback,	"crypto fell back to s/w implementation");	STAT(crypto_keyfail,	"setkey failed due to driver key alloc failed");#undef STAT}static struct ifreq ifr;static int s;static voidprint_sta_stats(FILE *fd, const u_int8_t macaddr[IEEE80211_ADDR_LEN]){#define	STAT(x,fmt) \	if (ns->ns_##x) { fprintf(fd, "%s" #x " " fmt, sep, ns->ns_##x); sep = " "; }	struct iwreq iwr;	struct ieee80211req_sta_stats stats;	const struct ieee80211_nodestats *ns = &stats.is_stats;	const char *sep;	(void) memset(&iwr, 0, sizeof(iwr));	(void) strncpy(iwr.ifr_name, ifr.ifr_name, sizeof(iwr.ifr_name));	iwr.u.data.pointer = (void *)&stats;	iwr.u.data.length = sizeof(stats);	memcpy(stats.is_u.macaddr, macaddr, IEEE80211_ADDR_LEN);	if (ioctl(s, IEEE80211_IOCTL_STA_STATS, &iwr) < 0)		err(1, "unable to get station stats for %s",			ether_ntoa((const struct ether_addr*)macaddr));	fprintf(fd, "%s:\n", ether_ntoa((const struct ether_addr *)macaddr));	sep = "\t";	STAT(rx_data, "%u");	STAT(rx_mgmt, "%u");	STAT(rx_ctrl, "%u");	STAT(rx_beacons, INT64FMT);	STAT(rx_proberesp, "%u");	STAT(rx_ucast, "%u");	STAT(rx_mcast, "%u");	STAT(rx_bytes, INT64FMT);	STAT(rx_dup, "%u");	STAT(rx_noprivacy, "%u");	STAT(rx_wepfail, "%u");	STAT(rx_demicfail, "%u");	STAT(rx_hwdemicerr, "%u");	STAT(rx_decap, "%u");	STAT(rx_defrag, "%u");	STAT(rx_disassoc, "%u");	STAT(rx_deauth, "%u");	STAT(rx_decryptcrc, "%u");	STAT(rx_unauth, "%u");	STAT(rx_unencrypted, "%u");	fprintf(fd, "\n");	sep = "\t";	STAT(tx_data, "%u");	STAT(tx_mgmt, "%u");	STAT(tx_probereq, "%u");	STAT(tx_ucast, "%u");	STAT(tx_mcast, "%u");	STAT(tx_bytes, INT64FMT);	STAT(tx_novlantag, "%u");	STAT(tx_vlanmismatch, "%u");	fprintf(fd, "\n");	if (ns->ns_uapsd_triggers) {		sep = "\t";		STAT(tx_uapsd, "%u");		STAT(uapsd_triggers, "%u");		STAT(tx_eosplost, "%u");		fprintf(fd, "\n");	}	sep = "\t";	STAT(tx_assoc, "%u");	STAT(tx_assoc_fail, "%u");	STAT(tx_auth, "%u");	STAT(tx_auth_fail, "%u");	STAT(tx_deauth, "%u");	STAT(tx_deauth_code, "%u");	STAT(tx_disassoc, "%u");	STAT(tx_disassoc_code, "%u");	STAT(psq_drops, "%u");	fprintf(fd, "\n");#undef STAT}intmain(int argc, char *argv[]){	int c, len;	struct ieee80211req_sta_info *si;	u_int8_t buf[24*1024], *cp;	struct iwreq iwr;	int allnodes = 0;	const char *ifname = "ath0";	s = socket(AF_INET, SOCK_DGRAM, 0);	if (s < 0)		err(1, "socket");	if (argc > 1 && strcmp(argv[1], "-i") == 0) {		if (argc < 2) {			fprintf(stderr, "%s: missing interface name for -i\n",				argv[0]);			exit(-1);		}		ifname = argv[2];		argc -= 2, argv += 2;	}	strncpy(ifr.ifr_name, ifname, sizeof (ifr.ifr_name));	while ((c = getopt(argc, argv, "ai:")) != -1)		switch (c) {		case 'a':			allnodes++;			break;		case 'i':			strncpy(ifr.ifr_name, optarg, sizeof (ifr.ifr_name));			break;		default:			errx(1, "usage: 80211stats [-a] [-i device] [mac...]\n");			/*NOTREACHED*/		}	if (argc == optind && !allnodes) {		struct ieee80211_stats stats;		/* no args, just show global stats */		ifr.ifr_data = (caddr_t) &stats;		if (ioctl(s, SIOCG80211STATS, &ifr) < 0)			err(1, ifr.ifr_name);		printstats(stdout, &stats);		return 0;	}	if (allnodes) {		/*		 * Retrieve station/neighbor table and print stats for each.		 */		(void) memset(&iwr, 0, sizeof(iwr));		(void) strncpy(iwr.ifr_name, ifr.ifr_name, sizeof(iwr.ifr_name));		iwr.u.data.pointer = (void *)buf;		iwr.u.data.length = sizeof(buf);		if (ioctl(s, IEEE80211_IOCTL_STA_INFO, &iwr) < 0)			err(1, "unable to get station information");		len = iwr.u.data.length;		if (len >= sizeof(struct ieee80211req_sta_info)) {			cp = buf;			do {				si = (struct ieee80211req_sta_info *)cp;				print_sta_stats(stdout, si->isi_macaddr);				cp += si->isi_len, len -= si->isi_len;			} while (len >= sizeof(struct ieee80211req_sta_info));		}	} else {		/*		 * Print stats for specified stations.		 */		for (c = optind; c < argc; c++) {			const struct ether_addr *ea = ether_aton(argv[c]);			if (ea != NULL)				print_sta_stats(stdout, ea->ether_addr_octet);		}	}	return 0;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲日本va在线观看| av动漫一区二区| 成人理论电影网| 欧美精品777| 亚洲视频在线一区| 激情久久久久久久久久久久久久久久| 色噜噜久久综合| 国产亚洲欧美日韩日本| 日韩高清一级片| 91一区二区三区在线播放| 2020国产成人综合网| 日本不卡一二三| 精品视频123区在线观看| 自拍视频在线观看一区二区| 国产一区二区三区黄视频 | 黄页视频在线91| 欧美日韩在线播| 亚洲乱码国产乱码精品精98午夜 | 久久午夜电影网| 免费美女久久99| 欧美日韩大陆在线| 亚洲免费观看高清完整版在线观看| 国产一区激情在线| 日韩欧美专区在线| 亚洲h在线观看| 欧美日韩精品一区视频| 一区二区三区蜜桃网| 色香色香欲天天天影视综合网| 欧美国产欧美综合| 成人免费视频国产在线观看| 精品对白一区国产伦| 麻豆精品新av中文字幕| 欧美精品久久一区二区三区| 亚洲444eee在线观看| 欧美日韩国产美| 肉色丝袜一区二区| 欧美三级日韩在线| 日日夜夜精品免费视频| 日韩欧美亚洲国产精品字幕久久久 | 亚洲永久免费视频| 91精彩视频在线观看| 亚洲大片一区二区三区| 欧美三级在线播放| 男男gaygay亚洲| 欧美草草影院在线视频| 久久99久久99精品免视看婷婷 | 99国产精品国产精品毛片| 国产精品久久久久一区| 91浏览器打开| 天天操天天干天天综合网| 日韩一区二区在线看| 国产精品一区二区在线播放 | 国产老女人精品毛片久久| 久久丝袜美腿综合| 成人小视频免费在线观看| 亚洲日本乱码在线观看| 欧美日韩精品欧美日韩精品一| 免费国产亚洲视频| 中文字幕中文在线不卡住| 欧洲精品中文字幕| 激情综合色综合久久| 国产精品理论片在线观看| 欧美日韩免费观看一区三区| 美女国产一区二区三区| 国产精品久久久久久福利一牛影视| 色综合欧美在线| 精品中文字幕一区二区小辣椒| 国产精品久久看| 日韩午夜激情电影| 99视频一区二区三区| 欧美aaaaa成人免费观看视频| 日本一区二区免费在线| 欧美男男青年gay1069videost | 欧美精品一区二区三区蜜桃| 亚洲国产成人高清精品| 91一区在线观看| 色呦呦日韩精品| 麻豆视频观看网址久久| 中文字幕av一区二区三区免费看 | 国产精品国产三级国产| 在线成人高清不卡| 99久久免费精品高清特色大片| 日本不卡一区二区| 一区二区三区四区不卡在线| 久久久久久久久久久电影| 91豆麻精品91久久久久久| 国内精品不卡在线| 日韩成人一区二区三区在线观看| 亚洲欧洲美洲综合色网| 26uuu精品一区二区在线观看| 欧美日韩在线电影| 在线视频你懂得一区二区三区| 国产精品1区2区3区| 美女精品一区二区| 亚洲成人免费视| 亚洲精品午夜久久久| 国产日韩欧美综合在线| 精品精品国产高清a毛片牛牛| 欧美性感一区二区三区| 99久久99久久精品国产片果冻| 国产精品综合二区| 国产中文字幕精品| 久久99久久99| 黄色成人免费在线| 免费av网站大全久久| 日韩国产在线一| 午夜不卡av在线| 视频一区国产视频| 午夜成人免费视频| 视频一区二区三区入口| 五月天视频一区| 偷窥国产亚洲免费视频| 天堂影院一区二区| 日韩极品在线观看| 久久99精品久久久| 极品少妇xxxx偷拍精品少妇| 久久成人免费网| 国产精品白丝jk黑袜喷水| 国产精品自在欧美一区| 高清久久久久久| 岛国精品在线观看| 99re在线视频这里只有精品| 91在线视频网址| 欧洲日韩一区二区三区| 欧美日韩国产片| 欧美电视剧在线观看完整版| 精品国产在天天线2019| 久久久国产午夜精品| 中文字幕精品三区| 亚洲激情自拍视频| 丝袜亚洲精品中文字幕一区| 美女诱惑一区二区| 成人手机电影网| 色婷婷久久久久swag精品| 欧美综合视频在线观看| 日韩午夜电影在线观看| 国产日产亚洲精品系列| 亚洲欧洲韩国日本视频| 亚洲mv大片欧洲mv大片精品| 久久丁香综合五月国产三级网站| 国产黄人亚洲片| 欧洲视频一区二区| 日韩一区二区三免费高清| 久久蜜臀中文字幕| 国产精品久久久久毛片软件| 亚洲男人的天堂在线aⅴ视频| 亚洲综合色成人| 美女性感视频久久| 99re8在线精品视频免费播放| 欧美猛男gaygay网站| 久久美女高清视频| 亚洲国产精品久久艾草纯爱| 精品亚洲aⅴ乱码一区二区三区| aaa亚洲精品| 日韩女优av电影| 亚洲精品日韩专区silk| 久久精品二区亚洲w码| av中文一区二区三区| 欧美一区二区视频在线观看2022 | 欧美一区二区视频在线观看| 欧美国产精品一区| 日韩电影在线一区| 91亚洲精华国产精华精华液| 欧美tickling网站挠脚心| 亚洲视频一二三| 国产一区二区三区精品欧美日韩一区二区三区 | 午夜日韩在线电影| 国产69精品久久久久777| 91精品国产91久久久久久最新毛片| 国产精品久久久久永久免费观看 | 视频一区二区国产| 91视视频在线直接观看在线看网页在线看| 欧美日韩国产高清一区二区 | 日韩免费看网站| 亚洲综合色自拍一区| 国产91精品免费| 精品国内片67194| 日韩精品欧美精品| 欧美中文字幕一二三区视频| 久久精品夜色噜噜亚洲aⅴ| 日本在线不卡视频一二三区| 日本精品一区二区三区高清| 国产精品久久毛片| 国产成人一区在线| 2017欧美狠狠色| 久久99精品一区二区三区三区| 7777精品久久久大香线蕉| 亚洲网友自拍偷拍| 在线视频一区二区免费| 性久久久久久久久| 99久久久国产精品| 国产精品美日韩| 国产mv日韩mv欧美| 久久久三级国产网站| 国产在线播放一区| 久久五月婷婷丁香社区| 国产一区二区在线影院| 久久午夜色播影院免费高清| 国产麻豆一精品一av一免费| 久久综合五月天婷婷伊人|