⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 beaconscanner.hh

📁 Click is a modular router toolkit. To use it you ll need to know how to compile and install the sof
💻 HH
字号:
#ifndef CLICK_BEACONSCANNER_HH#define CLICK_BEACONSCANNER_HH#include <click/element.hh>#include <clicknet/ether.h>#include <click/etheraddress.hh>#include <elements/wifi/availablerates.hh>#include <elements/wifi/wirelessinfo.hh>CLICK_DECLS/*=cBeaconScanner=s Wifi, Wireless StationListens for 802.11 beacons and sends probe requests.=d=h scan read onlyStatistics about access points that the element has received beacons from.=h reset read/writeClear the list of access points.=h channelIf the channel is greater than 0, it will only record statistics forbeacons received with that channel in the packet.If channel is 0, it will record statistics for all beacons received.If channel is less than 0, it will discard all beaconds=e  FromDevice(ath0)  -> Prism2Decap()  -> ExtraDecap()  -> Classifier(0/80%f0)  // only beacon packets  -> bs :: BeaconScanner()  -> Discard;=aEtherEncap */class BeaconScanner : public Element { public:  BeaconScanner();  ~BeaconScanner();  const char *class_name() const	{ return "BeaconScanner"; }  const char *port_count() const	{ return PORTS_1_1; }  const char *processing() const	{ return AGNOSTIC; }  int configure(Vector<String> &, ErrorHandler *);  bool can_live_reconfigure() const	{ return true; }  Packet *simple_action(Packet *);  void add_handlers();  void reset();  bool _debug;  String scan_string(); private:  class wap {  public:    EtherAddress _eth;    String _ssid;    int _channel;    uint16_t _capability;    uint16_t _beacon_int;    Vector<int> _rates;    Vector<int> _basic_rates;    int _rssi;    Timestamp _last_rx;  };  typedef HashMap<EtherAddress, wap> APTable;  typedef APTable::const_iterator APIter;  APTable _waps;  AvailableRates *_rtable;  WirelessInfo *_winfo;};CLICK_ENDDECLS#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -