stripipheader.hh

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

HH
39
字号
#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 + =
减小字号Ctrl + -
显示快捷键?