checkgridheader.hh
来自「COPE the first practical network coding 」· HH 代码 · 共 46 行
HH
46 行
#ifndef CHECKGRIDHEADER_HH#define CHECKGRIDHEADER_HH#include <click/element.hh>#include <click/glue.hh>CLICK_DECLS/* * =c * CheckGridHeader([BADADDRS]) * =s Grid * =d * Expects Grid packets as input. * Checks that the packet's length is reasonable, * and that the Grid header length, length, and * checksum fields are valid. * * =a * SetGridChecksum */class CheckGridHeader : public Element { int _drops; public: CheckGridHeader(); ~CheckGridHeader(); const char *class_name() const { return "CheckGridHeader"; } const char *processing() const { return "a/ah"; } void notify_noutputs(int); int drops() const { return _drops; } void add_handlers(); Packet *simple_action(Packet *); void drop_it(Packet *);};CLICK_ENDDECLS#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?