📄 stripipheader.hh
字号:
#ifndef CLICK_STRIPIPHEADER_HH#define CLICK_STRIPIPHEADER_HH#include <click/element.hh>CLICK_DECLS/* * =c * StripIPHeader() * =s ip * strips outermost IP header * =d * * Strips the outermost IP header from IP packets, based on the IP Header * annotation. * * Note that the packet's annotations are not changed. Thus, the packet's IP * header annotation continues to point at the IP header, even though the IP * header's data is now out of range. To correctly handle an IP-in-IP packet, * you will probably need to follow StripIPHeader with a CheckIPHeader or * MarkIPHeader element, thus marking the packet's inner header. * * =a CheckIPHeader, CheckIPHeader2, MarkIPHeader, UnstripIPHeader, Strip */class StripIPHeader : public Element { public: StripIPHeader(); ~StripIPHeader(); const char *class_name() const { return "StripIPHeader"; } const char *port_count() const { return PORTS_1_1; } Packet *simple_action(Packet *);};CLICK_ENDDECLS#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -