#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
syntax highlighted by Code2HTML, v. 0.9.1