📄 checkpaint.hh
字号:
#ifndef CLICK_CHECKPAINT_HH#define CLICK_CHECKPAINT_HH#include <click/element.hh>CLICK_DECLS/*=cCheckPaint(COLOR [, ANNO])=s paintchecks packets' paint annotation=dChecks that incoming packets have paint annotation equal to COLOR. If theirpaints are not equal to COLOR, then they are dropped or emitted on output 1,depending on how many outputs were used.CheckPaint uses the packet's PAINT annotation by default, but the ANNOargument can specify any one-byte annotation.=a Paint, PaintTee */class CheckPaint : public Element { public: CheckPaint(); ~CheckPaint(); const char *class_name() const { return "CheckPaint"; } const char *port_count() const { return PORTS_1_1X2; } const char *processing() const { return PROCESSING_A_AH; } int configure(Vector<String> &, ErrorHandler *); void add_handlers(); void push(int, Packet *); Packet *pull(int); private: uint8_t _anno; uint8_t _color;};CLICK_ENDDECLS#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -