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

📄 xokreader.hh

📁 COPE the first practical network coding scheme which is developped on click
💻 HH
字号:
#ifndef XOKREADER_HH#define XOKREADER_HH#include <click/element.hh>extern "C" {#include <vos/net/fast_eth.h>}/* * =c * xokReader(pktring_size, off0a/val0a off0b/val0b ..., ..., offNa/valNa) * =d * Read network packets from xok by inserting DPF filters. Configuration * string specifies the size of the packet ring and filter to insert. * Configuration strings for filters are similar to the configuration strings * in the Classifier element, but the expression "-" does not work. See * Classifier for expression format. There is an upper limit of 16 filters per * xokReader. * * The xokReader element installs a separate dpf filter for each expression * given, all using the same packet ring. * * =e * For example,  * *   xokReader(32, 12/0806 14/99) *  * says that the reader should keep a ring size of 32. output 0 should get * packets that have 0x0806 at byte 12 and 0x99 at byte 14. * * =a * Classifier, xokWriter */#define MAX_DPF_FILTERS 16class xokReader : public Element {  int dpf_ids[MAX_DPF_FILTERS];  int fd; public:    xokReader();  xokReader(const xokReader &);  ~xokReader();    const char *class_name() const		{ return "xokReader"; }  const char *processing() const		{ return PUSH; }    int configure(Vector<String> &, ErrorHandler *);    void selected(int fd);};#endif

⌨️ 快捷键说明

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