#ifndef SCRAMBLE_HH
#define SCRAMBLE_HH
#include <click/element.hh>
CLICK_DECLS
/*
* Scramble()
*
* Exclusive-or each packet with a fixed repeating
* sequence of bits. The point is to try to end up
* with a balanced number of ones and zeroes so that
* simple transmission equipment will be happy.
* The BIM radio, for example.
*
* Scramble is its own inverse.
*/
class Scramble : public Element {
public:
Scramble();
~Scramble();
const char *class_name() const { return "Scramble"; }
const char *port_count() const { return PORTS_1_1; }
const char *processing() const { return AGNOSTIC; }
Packet *simple_action(Packet *);
};
CLICK_ENDDECLS
#endif
syntax highlighted by Code2HTML, v. 0.9.1