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

📄 wifiencap.hh

📁 COPE the first practical network coding scheme which is developped on click
💻 HH
字号:
#ifndef CLICK_WIFIENCAP_HH#define CLICK_WIFIENCAP_HH#include <click/element.hh>#include <clicknet/ether.h>#include <click/etheraddress.hh>CLICK_DECLS/*=cWifiEncap(MODE, BSSID)=s Wifi, EncapsulationConverts ethernet packets to 802.11 packets with a LLC header.=d Strips the ethernet header off the front of the packet and pushesan 802.11 frame header and llc header onto the packet.Arguments are:=over 8=item BSSID is an ethernet address. This ususally the access point's ethernet address.If you are using Mode 0, this is usually set to 00:00:00:00:00:00 for"psuedo-ibss" mode.=item MODEThis specifies which address field the BSSID field is located at (forinstance, the BSSID is the destination when MODE is 1, because thepacket is going to the access point).It should be one of:N<>0 station -> stationN<>1 station -> access pointN<>2 access point -> stationN<>3 access point -> access point=back 8=h mode read/writeSame as MODE argument=h bssid read/writeSame as BSSID argument=e// this configuration sends 1000 broadcast packets at 1 megabit// to device ath0 with ethertype 0x9000inf_src :: InfiniteSource(DATA \<ffff>, LIMIT 1000, ACTIVE false)-> EtherEncap(0x9000, ath0, ff:ff:ff:ff:ff:ff)-> wifi_encap :: WifiEncap(0x00, 0:0:0:0:0:0)-> set_rate :: SetTXRate(RATE 2)-> ExtraEncap()-> to_dev :: ToDevice (ath0);=a EtherEncap */class WifiEncap : public Element { public:    WifiEncap();  ~WifiEncap();  const char *class_name() const	{ return "WifiEncap"; }  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();  bool _debug;  unsigned _mode;  EtherAddress _bssid;  class WirelessInfo *_winfo; private:};CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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