📄 beaconsource.hh
字号:
#ifndef CLICK_BEACONSOURCE_HH#define CLICK_BEACONSOURCE_HH#include <click/element.hh>#include <clicknet/ether.h>CLICK_DECLS/*=cBeaconSource([, I<KEYWORDS>])=s Wifi, Wireless AccessPointSend 802.11 beacons.=dKeyword arguments are: =over 8=item CHANNELThe wireless channel it is operating on.=item SSIDThe SSID of the access point.=item BSSIDAn Ethernet Address (usually the same as the ethernet address of the wireless card).=item INTERVALHow often beacon packets are sent, in milliseconds.=back 8=a BeaconScanner*/class BeaconSource : public Element { public: BeaconSource(); ~BeaconSource(); const char *class_name() const { return "BeaconSource"; } const char *processing() const { return PUSH; } int configure(Vector<String> &, ErrorHandler *); bool can_live_reconfigure() const { return true; } void add_handlers(); void run_timer(); int initialize (ErrorHandler *); void send_beacon(EtherAddress, bool); void push(int, Packet *); Timer _timer; bool _debug; EtherAddress _bcast; String scan_string(); class WirelessInfo *_winfo; class AvailableRates *_rtable; private:};CLICK_ENDDECLS#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -