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

📄 dupefilter.hh

📁 COPE the first practical network coding scheme which is developped on click
💻 HH
字号:
#ifndef CLICK_DUPEFILTER_HH#define CLICK_DUPEFILTER_HH#include <click/element.hh>#include <click/string.hh>#include <click/dequeue.hh>#include <click/hashmap.hh>CLICK_DECLS/* * =c * DupeFilter([TAG] [, KEYWORDS]) * =s debugging * =d * Assumes input packets are SR packets (ie a sr_pkt struct from  * sr.hh). Prints out a description of those packets. * * Keyword arguments are: * * =over 8 * * =a * Print, SR */class DupeFilter : public Element {   public:    DupeFilter();  ~DupeFilter();    const char *class_name() const		{ return "DupeFilter"; }  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 PathInfo {  public:    Path _p;    struct timeval _last;    int _dupes;    int _packets;    DEQueue<int> _sequences; //most recently received seq nos    PathInfo(Path p) {      _p = p;    }    PathInfo () { }    void clear() {      _dupes = 0;      _packets = 0;      _sequences.clear();      click_gettimeofday(&_last);    }  };  typedef HashMap <Path, PathInfo> PathTable;  typedef PathTable::const_iterator PathIter;  PathTable _paths;  int _window;  int _debug;};CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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