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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? ieee80211_node.h

?? Linux下wifi實(shí)現(xiàn)
?? H
字號(hào):
/*- * Copyright (c) 2001 Atsushi Onoe * 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. * 2. Redistributions in binary form must reproduce the above copyright *    notice, this list of conditions and the following disclaimer in the *    documentation and/or other materials provided with the distribution. * 3. The name of the author may not 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. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, 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 DAMAGE. * * $Id: ieee80211_node.h 1588 2006-05-21 12:31:58Z kelmo $ */#ifndef _NET80211_IEEE80211_NODE_H_#define _NET80211_IEEE80211_NODE_H_#include <net80211/ieee80211_ioctl.h>		/* for ieee80211_nodestats */#include <net80211/ieee80211_proto.h>		/* for proto macros on node *//* * Each ieee80211com instance has a single timer that fires once a * second.  This is used to initiate various work depending on the * state of the instance: scanning (passive or active), ``transition'' * (waiting for a response to a management frame when operating * as a station), and node inactivity processing (when operating * as an AP).  For inactivity processing each node has a timeout * set in it's ni_inact field that is decremented on each timeout * and the node is reclaimed when the counter goes to zero.  We * use different inactivity timeout values depending on whether * the node is associated and authorized (either by 802.1x or * open/shared key authentication) or associated but yet to be * authorized.  The latter timeout is shorter to more aggressively * reclaim nodes that leave part way through the 802.1x exchange. */#define	IEEE80211_INACT_WAIT	15		/* inactivity interval (secs) */#define	IEEE80211_INACT_INIT	(30/IEEE80211_INACT_WAIT)	/* initial */#define	IEEE80211_INACT_AUTH	(180/IEEE80211_INACT_WAIT)	/* associated but not authorized */#define	IEEE80211_INACT_RUN	(300/IEEE80211_INACT_WAIT)	/* authorized */#define	IEEE80211_INACT_PROBE	(30/IEEE80211_INACT_WAIT)	/* probe */#define	IEEE80211_INACT_SCAN	(300/IEEE80211_INACT_WAIT)	/* scanned */#define	IEEE80211_TRANS_WAIT 	5		/* mgt frame tx timer (secs) */#define	IEEE80211_NODE_HASHSIZE	32/* simple hash is enough for variation of macaddr */#define	IEEE80211_NODE_HASH(addr)	\	(((const u_int8_t *)(addr))[IEEE80211_ADDR_LEN - 1] % \		IEEE80211_NODE_HASHSIZE)struct ieee80211_rsnparms {	u_int8_t rsn_mcastcipher;	/* mcast/group cipher */	u_int8_t rsn_mcastkeylen;	/* mcast key length */	u_int8_t rsn_ucastcipherset;	/* unicast cipher set */	u_int8_t rsn_ucastcipher;	/* selected unicast cipher */	u_int8_t rsn_ucastkeylen;	/* unicast key length */	u_int8_t rsn_keymgmtset;		/* key mangement algorithms */	u_int8_t rsn_keymgmt;		/* selected key mgmt algo */	u_int16_t rsn_caps;		/* capabilities */};struct ieee80211_node_table;struct ieee80211com;struct ieee80211vap;/* * Node specific information.  Note that drivers are expected * to derive from this structure to add device-specific per-node * state.  This is done by overriding the ic_node_* methods in * the ieee80211com structure. */struct ieee80211_node {	struct ieee80211vap *ni_vap;	struct ieee80211com *ni_ic;	struct ieee80211_node_table *ni_table;	TAILQ_ENTRY(ieee80211_node) ni_list;	LIST_ENTRY(ieee80211_node) ni_hash;	atomic_t ni_refcnt;	u_int ni_scangen;			/* gen# for timeout scan */	u_int8_t ni_authmode;			/* authentication algorithm */	u_int16_t ni_flags;			/* special-purpose state */#define	IEEE80211_NODE_AUTH	0x0001		/* authorized for data */#define	IEEE80211_NODE_QOS	0x0002		/* QoS enabled */#define	IEEE80211_NODE_ERP	0x0004		/* ERP enabled *//* NB: this must have the same value as IEEE80211_FC1_PWR_MGT */#define	IEEE80211_NODE_PWR_MGT	0x0010		/* power save mode enabled */#define	IEEE80211_NODE_AREF	0x0020		/* authentication ref held */#define IEEE80211_NODE_UAPSD	0x0040		/* U-APSD power save enabled */#define IEEE80211_NODE_UAPSD_TRIG 0x0080	/* U-APSD triggerable state */#define IEEE80211_NODE_UAPSD_SP	0x0100		/* U-APSD SP in progress */	u_int8_t ni_ath_flags;			/* Atheros feature flags */	/* NB: These must have the same values as IEEE80211_ATHC_* */#define IEEE80211_NODE_TURBOP	0x0001		/* Turbo prime enable */#define IEEE80211_NODE_COMP	0x0002		/* Compresssion enable */#define IEEE80211_NODE_FF	0x0004          /* Fast Frame capable */#define IEEE80211_NODE_XR	0x0008		/* Atheros WME enable */#define IEEE80211_NODE_AR	0x0010		/* AR capable */#define IEEE80211_NODE_BOOST	0x0080 #define IEEE80211_NODE_PS_CHANGED	0x0200	/* PS state change */ 	u_int16_t ni_ath_defkeyindex;		/* Atheros def key index */#define IEEE80211_INVAL_DEFKEY	0x7FFF	u_int16_t ni_associd;			/* assoc response */	u_int16_t ni_txpower;			/* current transmit power (in 0.5 dBm) */	u_int16_t ni_vlan;			/* vlan tag */	u_int32_t *ni_challenge;			/* shared-key challenge */	u_int8_t *ni_wpa_ie;			/* captured WPA ie */	u_int8_t *ni_rsn_ie;			/* captured RSN ie */	u_int8_t *ni_wme_ie;			/* captured WME ie */	u_int8_t *ni_ath_ie;			/* captured Atheros ie */	u_int16_t ni_txseqs[17];			/* tx seq per-tid */	u_int16_t ni_rxseqs[17];			/* rx seq previous per-tid*/	u_int32_t ni_rxfragstamp;		/* time stamp of last rx frag */	struct sk_buff *ni_rxfrag[3];		/* rx frag reassembly */	struct ieee80211_rsnparms ni_rsn;	/* RSN/WPA parameters */	struct ieee80211_key ni_ucastkey;	/* unicast key */	int ni_rxkeyoff;    			/* Receive key offset */	/* hardware */	u_int32_t ni_rstamp;			/* recv timestamp */	u_int32_t ni_last_rx;			/* recv jiffies */	u_int8_t ni_rssi;			/* recv ssi */	/* header */	u_int8_t ni_macaddr[IEEE80211_ADDR_LEN];	u_int8_t ni_bssid[IEEE80211_ADDR_LEN];	/* beacon, probe response */	union {		u_int8_t data[8];		u_int64_t tsf;	} ni_tstamp;				/* from last rcv'd beacon */	u_int16_t ni_intval;			/* beacon interval */	u_int16_t ni_capinfo;			/* capabilities */	u_int8_t ni_esslen;	u_int8_t ni_essid[IEEE80211_NWID_LEN];	struct ieee80211_rateset ni_rates;	/* negotiated rate set */	struct ieee80211_channel *ni_chan;	u_int16_t ni_fhdwell;			/* FH only */	u_int8_t ni_fhindex;			/* FH only */	u_int8_t ni_erp;				/* ERP from beacon/probe resp */	u_int16_t ni_timoff;			/* byte offset to TIM ie */	/* others */	struct sk_buff_head ni_savedq;		/* packets queued for pspoll */	short ni_inact;				/* inactivity mark count */	short ni_inact_reload;			/* inactivity reload value */	int ni_txrate;				/* index to ni_rates[] */	struct ieee80211_nodestats ni_stats;	/* per-node statistics */	struct ieee80211vap *ni_prev_vap;  	/* previously associated vap */	u_int8_t ni_uapsd;			/* U-APSD per-node flags matching WMM STA Qos Info field */	u_int8_t ni_uapsd_maxsp; 		/* maxsp from flags above */	u_int16_t ni_uapsd_trigseq[WME_NUM_AC]; 	/* trigger suppression on retry */	u_int16_t ni_pschangeseq;};MALLOC_DECLARE(M_80211_NODE);#define	IEEE80211_NODE_AID(ni)			IEEE80211_AID(ni->ni_associd)#define	IEEE80211_NODE_STAT(ni,stat)		(ni->ni_stats.ns_##stat++)#define	IEEE80211_NODE_STAT_ADD(ni,stat,v)	(ni->ni_stats.ns_##stat += v)#define	IEEE80211_NODE_STAT_SET(ni,stat,v)	(ni->ni_stats.ns_##stat = v)#define WME_UAPSD_AC_CAN_TRIGGER(_ac, _ni) ( \		((_ni)->ni_flags & IEEE80211_NODE_UAPSD_TRIG) && WME_UAPSD_AC_ENABLED((_ac), (_ni)->ni_uapsd) )#define WME_UAPSD_NODE_MAXQDEPTH	8#define IEEE80211_NODE_UAPSD_USETIM(_ni) (((_ni)->ni_uapsd & 0xF) == 0xF )#define WME_UAPSD_NODE_INVALIDSEQ	0xffff#define WME_UAPSD_NODE_TRIGSEQINIT(_ni)	(memset(&(_ni)->ni_uapsd_trigseq[0], 0xff, sizeof((_ni)->ni_uapsd_trigseq)))static __inline struct ieee80211_node *ieee80211_ref_node(struct ieee80211_node *ni){	ieee80211_node_incref(ni);	return ni;}static __inline voidieee80211_unref_node(struct ieee80211_node **ni){	ieee80211_node_decref(*ni);	*ni = NULL;			/* guard against use */}void ieee80211_node_attach(struct ieee80211com *);void ieee80211_node_detach(struct ieee80211com *);void ieee80211_node_vattach(struct ieee80211vap *);void ieee80211_node_latevattach(struct ieee80211vap *);void ieee80211_node_vdetach(struct ieee80211vap *);static __inline intieee80211_node_is_authorized(const struct ieee80211_node *ni){	return (ni->ni_flags & IEEE80211_NODE_AUTH);}void ieee80211_node_authorize(struct ieee80211_node *);void ieee80211_node_unauthorize(struct ieee80211_node *);void ieee80211_create_ibss(struct ieee80211vap *, struct ieee80211_channel *);void ieee80211_reset_bss(struct ieee80211vap *);int ieee80211_ibss_merge(struct ieee80211_node *);struct ieee80211_scan_entry;int ieee80211_sta_join(struct ieee80211vap *, const struct ieee80211_scan_entry *);void ieee80211_sta_join1_tasklet(IEEE80211_TQUEUE_ARG);void ieee80211_sta_leave(struct ieee80211_node *);#define WDS_AGING_TIME		600   /* 10 minutes */ #define WDS_AGING_COUNT 	2 #define WDS_AGING_STATIC 	0xffff#define WDS_AGING_TIMER_VAL 	(WDS_AGING_TIME / 2)struct ieee80211_wds_addr {	LIST_ENTRY(ieee80211_wds_addr) wds_hash;	u_int8_t	wds_macaddr[IEEE80211_ADDR_LEN];	struct ieee80211_node *wds_ni;	u_int16_t wds_agingcount;};	/* * Table of ieee80211_node instances.  Each ieee80211com * has at least one for holding the scan candidates. * When operating as an access point or in ibss mode there * is a second table for associated stations or neighbors. */struct ieee80211_node_table {	struct ieee80211com *nt_ic;		/* back reference */	ieee80211_node_lock_t nt_nodelock;	/* on node table */	TAILQ_HEAD(, ieee80211_node) nt_node;	/* information of all nodes */	ATH_LIST_HEAD(, ieee80211_node) nt_hash[IEEE80211_NODE_HASHSIZE];	ATH_LIST_HEAD(, ieee80211_wds_addr) nt_wds_hash[IEEE80211_NODE_HASHSIZE];	const char *nt_name;			/* for debugging */	ieee80211_scan_lock_t nt_scanlock;	/* on nt_scangen */	u_int nt_scangen;			/* gen# for timeout scan */	int nt_inact_init;			/* initial node inact setting */	struct timer_list nt_wds_aging_timer;	/* timer to age out wds entries */};struct ieee80211_node *ieee80211_alloc_node(struct ieee80211_node_table *,	struct ieee80211vap *, const u_int8_t *);struct ieee80211_node *ieee80211_tmp_node(struct ieee80211vap *,	const u_int8_t *);struct ieee80211_node *ieee80211_dup_bss(struct ieee80211vap *,	const u_int8_t *);void ieee80211_node_reset(struct ieee80211_node *, struct ieee80211vap *);#ifdef IEEE80211_DEBUG_REFCNTvoid ieee80211_free_node_debug(struct ieee80211_node *, const char *, int);struct ieee80211_node *ieee80211_find_node_debug(struct ieee80211_node_table *,	const u_int8_t *, const char *, int);struct ieee80211_node *ieee80211_find_rxnode_debug(struct ieee80211com *,	const struct ieee80211_frame_min *, const char *, int);struct ieee80211_node *ieee80211_find_txnode_debug(struct ieee80211vap *,	const u_int8_t *, const char *, int);#define	ieee80211_free_node(ni) \	ieee80211_free_node_debug(ni, __func__, __LINE__)#define	ieee80211_find_node(nt, mac) \	ieee80211_find_node_debug(nt, mac, __func__, __LINE__)#define	ieee80211_find_rxnode(nt, wh) \	ieee80211_find_rxnode_debug(nt, wh, __func__, __LINE__)#define	ieee80211_find_txnode(nt, mac) \	ieee80211_find_txnode_debug(nt, mac, __func__, __LINE__)#elsevoid ieee80211_free_node(struct ieee80211_node *);struct ieee80211_node *ieee80211_find_node(struct ieee80211_node_table *,	const u_int8_t *);struct ieee80211_node * ieee80211_find_rxnode(struct ieee80211com *,	const struct ieee80211_frame_min *);struct ieee80211_node *ieee80211_find_txnode(struct ieee80211vap *,	const u_int8_t *);#endifint ieee80211_add_wds_addr(struct ieee80211_node_table *, struct ieee80211_node *,	const u_int8_t *, u_int8_t);void ieee80211_remove_wds_addr(struct ieee80211_node_table *, const u_int8_t *);void ieee80211_del_wds_node(struct ieee80211_node_table *,	struct ieee80211_node *);struct ieee80211_node *ieee80211_find_wds_node(struct ieee80211_node_table *,	const u_int8_t *);typedef void ieee80211_iter_func(void *, struct ieee80211_node *);void ieee80211_iterate_nodes(struct ieee80211_node_table *,	ieee80211_iter_func *, void *);void	ieee80211_dump_node(struct ieee80211_node_table *,	struct ieee80211_node *);void	ieee80211_dump_nodes(struct ieee80211_node_table *);struct ieee80211_node *ieee80211_fakeup_adhoc_node(struct ieee80211vap *,	const u_int8_t macaddr[]);struct ieee80211_scanparams;struct ieee80211_node *ieee80211_add_neighbor(struct ieee80211vap *,	const struct ieee80211_frame *, const struct ieee80211_scanparams *);void ieee80211_node_join(struct ieee80211_node *, int);void ieee80211_node_leave(struct ieee80211_node *);u_int8_t ieee80211_getrssi(struct ieee80211com *);#endif /* _NET80211_IEEE80211_NODE_H_ */

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕五月欧美| 国产在线精品一区二区夜色| 亚洲一区二区视频在线观看| 日韩电影在线免费观看| 成人av集中营| 日韩三级.com| 18涩涩午夜精品.www| 黑人精品欧美一区二区蜜桃| 色婷婷av一区二区三区gif| 91免费版pro下载短视频| 精品国产一区二区三区四区四| 中文字幕一区二区三区在线不卡| 天天综合色天天综合色h| 成人教育av在线| 欧美成人女星排名| 亚洲在线免费播放| 成人性生交大片免费| 在线成人av影院| 中文字幕一区二区三区视频| 国产中文字幕精品| 欧美电影在线免费观看| 中文字幕人成不卡一区| 日韩精品一二三四| 色诱视频网站一区| 国产日韩精品久久久| 亚洲免费成人av| 懂色av噜噜一区二区三区av| 欧美一区二区免费| 日韩毛片一二三区| 风间由美一区二区av101 | 亚洲最新视频在线观看| 亚洲资源在线观看| 久久www免费人成看片高清| 欧美日韩在线不卡| 一卡二卡三卡日韩欧美| 日韩电影在线免费观看| 欧美三级视频在线观看| 亚洲精品成人在线| www.66久久| 国产精品午夜春色av| 不卡大黄网站免费看| 国产婷婷一区二区| 人妖欧美一区二区| 精品对白一区国产伦| 视频一区视频二区在线观看| 欧洲精品视频在线观看| 亚洲综合成人在线视频| 91浏览器在线视频| 五月综合激情日本mⅴ| 色婷婷亚洲精品| 一区二区在线观看免费视频播放| 成人小视频在线| 亚洲素人一区二区| 99视频在线精品| 亚洲欧美一区二区三区孕妇| 91福利区一区二区三区| 日本欧美在线观看| 欧美一级理论片| 国产中文字幕一区| 日韩美女视频一区二区| 欧美揉bbbbb揉bbbbb| 亚洲精品ww久久久久久p站| 欧美日韩精品欧美日韩精品一 | 欧美韩日一区二区三区四区| 免费成人在线视频观看| 久久久精品免费免费| 99国产精品久久久久久久久久| 亚洲一区在线观看免费 | 91精品婷婷国产综合久久| 日韩经典中文字幕一区| 久久久久亚洲蜜桃| 成人美女在线观看| 亚洲美女区一区| 欧美大片在线观看| 国产精品综合在线视频| 中日韩av电影| 欧美日韩免费电影| 久久精品理论片| 国产精品三级av在线播放| 在线免费不卡视频| 狠狠久久亚洲欧美| 国产精品成人一区二区三区夜夜夜| 欧美最新大片在线看| 国产一区在线视频| 一级特黄大欧美久久久| 精品久久久久久久久久久久久久久久久 | 精品一区二区三区视频| 国产人成亚洲第一网站在线播放| 99久久久精品| 天堂资源在线中文精品| 久久婷婷一区二区三区| 成人黄色av电影| 激情综合色丁香一区二区| 一区二区三区日韩精品视频| 在线成人午夜影院| 欧美视频一区二区在线观看| 激情六月婷婷久久| 丝袜国产日韩另类美女| 亚洲图片欧美激情| 26uuu国产在线精品一区二区| 国产一区二区三区免费看 | 国产又黄又大久久| 青椒成人免费视频| 成人欧美一区二区三区在线播放| 精品成人一区二区| 欧美va亚洲va| 日韩一区二区电影网| 欧洲视频一区二区| 色香色香欲天天天影视综合网| 国产在线播精品第三| 一区二区三区四区在线播放| 中文一区在线播放| 国产欧美综合在线观看第十页| 久久综合99re88久久爱| 日韩一区二区三区免费看| 91视频观看视频| 91偷拍与自偷拍精品| 国产91精品一区二区麻豆网站 | 国产日韩欧美制服另类| 国产欧美日本一区视频| 久久久久88色偷偷免费| 日韩欧美一区二区视频| 精品第一国产综合精品aⅴ| 欧美一区二区三区男人的天堂| 欧美一级一区二区| 国产99精品国产| 国产.欧美.日韩| 成人91在线观看| 99re亚洲国产精品| 免费成人av在线播放| 天堂va蜜桃一区二区三区漫画版| 亚洲精品成人在线| 日韩成人精品在线| 免费成人在线视频观看| 国产精品资源在线观看| 国产成人h网站| 91免费国产在线观看| 色94色欧美sute亚洲线路一久 | 风间由美性色一区二区三区| 成人精品免费视频| 日本韩国欧美一区| 91玉足脚交白嫩脚丫在线播放| 欧美日本免费一区二区三区| 欧美一二三区精品| 亚洲国产成人自拍| 亚洲视频图片小说| 亚洲午夜视频在线| 精品一区二区三区视频在线观看| 国产精品一区二区久久不卡 | 一区二区三区成人在线视频| 亚洲国产精品久久久久婷婷884| 亚洲v精品v日韩v欧美v专区| 免费美女久久99| 高清国产一区二区| 日本久久电影网| 欧美人与性动xxxx| 久久综合九色综合97婷婷| 亚洲欧洲日本在线| 亚洲国产精品久久人人爱| 免费观看在线色综合| 成人毛片在线观看| 欧美日韩一区二区三区免费看| 日本久久一区二区三区| 欧美va在线播放| 亚洲免费色视频| 韩日欧美一区二区三区| 91麻豆.com| 亚洲精品一区二区三区精华液 | 成人在线综合网| 在线不卡a资源高清| 国产视频一区在线观看| 婷婷国产v国产偷v亚洲高清| 成人久久18免费网站麻豆| 欧美亚洲日本国产| 国产日韩欧美综合在线| 天堂影院一区二区| 91免费视频大全| 久久久久久久精| 激情综合网av| 欧美精品日韩一区| 一区二区三区国产精华| 成人性视频免费网站| 欧美精品自拍偷拍动漫精品| 日韩毛片高清在线播放| 国产一区欧美日韩| www国产精品av| 日韩av在线播放中文字幕| 日本久久精品电影| 亚洲欧美综合在线精品| 成人午夜私人影院| 日韩一卡二卡三卡| 午夜欧美大尺度福利影院在线看| www.欧美色图| 精品成人私密视频| 狠狠久久亚洲欧美| 欧美一卡二卡在线观看| 欧美a级一区二区| 欧美区一区二区三区| 国产午夜亚洲精品不卡| 五月天久久比比资源色|