📄 strip.hh
字号:
// -*- mode: c++; c-basic-offset: 4 -*-#ifndef CLICK_STRIP_HH#define CLICK_STRIP_HH#include <click/element.hh>CLICK_DECLS/* * =c * Strip(N) * =s encapsulation * strips bytes from front of packets * =d * Deletes the first N bytes from each packet. * =e * Use this to get rid of the Ethernet header: * * Strip(14) * =a StripToNetworkHeader, StripIPHeader, EtherEncap, IPEncap, Truncate */class Strip : public Element { public: Strip(); ~Strip(); const char *class_name() const { return "Strip"; } const char *processing() const { return AGNOSTIC; } int configure(Vector<String> &, ErrorHandler *); Packet *simple_action(Packet *); private: unsigned _nbytes;};CLICK_ENDDECLS#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -