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

📄 wifidupefilter.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_WIFIDUPEFILTER_HH#define CLICK_WIFIDUPEFILTER_HH#include <click/element.hh>#include <click/string.hh>#include <click/dequeue.hh>#include <click/hashmap.hh>CLICK_DECLS/*=cWifiDupeFilter([TAG] [, KEYWORDS])=s WifiFilters out duplicate 802.11 packets based on their sequence number.=d=a WifiEncap, WifiDecap */class WifiDupeFilter : public Element { public:  WifiDupeFilter();  ~WifiDupeFilter();  const char *class_name() const		{ return "WifiDupeFilter"; }  const char *port_count() const		{ return PORTS_1_1; }  const char *processing() const		{ return AGNOSTIC; }  int configure(Vector<String> &, ErrorHandler *);  Packet *simple_action(Packet *);  static String static_read_stats(Element *xf, void *);  static String static_read_debug(Element *xf, void *);  static int static_write_debug(const String &arg, Element *e,				void *, ErrorHandler *errh);  void add_handlers();  class DstInfo {  public:    EtherAddress _eth;    int _dupes;    int _packets;    uint16_t seq;    uint16_t frag;    DstInfo(EtherAddress eth) {      _eth = eth;    }    DstInfo () { }    void clear() {      _dupes = 0;      _packets = 0;      seq = 0;      frag = 0;    }  };  typedef HashMap <EtherAddress, DstInfo> DstTable;  typedef DstTable::const_iterator DstIter;  DstTable _table;  bool _debug;  int _dupes;};CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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