#ifndef CLICK_UNSTRIP_HH
#define CLICK_UNSTRIP_HH
#include <click/element.hh>
CLICK_DECLS
/*
* =c
* Unstrip(N)
* =s basicmod
* unstrips bytes from front of packets
* =d
* Put N bytes at the front of the packet. These N bytes may be bytes
* previously removed by Strip.
* =e
* Use this to get rid of the Ethernet header and put it back on:
*
* Strip(14) -> ... -> Unstrip(14)
* =a EtherEncap, IPEncap
*/
class Unstrip : public Element {
unsigned _nbytes;
public:
Unstrip(unsigned nbytes = 0);
~Unstrip();
const char *class_name() const { return "Unstrip"; }
const char *port_count() const { return PORTS_1_1; }
const char *processing() const { return AGNOSTIC; }
int configure(Vector<String> &, ErrorHandler *);
Packet *simple_action(Packet *);
};
CLICK_ENDDECLS
#endif
syntax highlighted by Code2HTML, v. 0.9.1