checkcrc32.hh

来自「COPE the first practical network coding 」· HH 代码 · 共 39 行

HH
39
字号
#ifndef CLICK_CHECKCRC32_HH#define CLICK_CHECKCRC32_HH#include <click/element.hh>#include <click/atomic.hh>CLICK_DECLS/* * =c * CheckCRC32() * =s checking * checks packet CRC32s * =d * Check that the CRC32 appended by SetCRC32 is OK. * If so, delete the CRC from the packet. * Otherwise, drop the packet. * =a SetCRC32 */class EtherAddress;class CheckCRC32 : public Element {public:  CheckCRC32();  ~CheckCRC32();  const char *class_name() const		{ return "CheckCRC32"; }  const char *processing() const		{ return AGNOSTIC; }    Packet *simple_action(Packet *);private:  atomic_uint32_t _drops;};CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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