checkgridheader.hh

来自「Click is a modular router toolkit. To us」· HH 代码 · 共 45 行

HH
45
字号
#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 *port_count() const		{ return "1/1-2"; }  const char *processing() const		{ return PROCESSING_A_AH; }  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 + -
显示快捷键?