#ifndef CLICK_CHECKCRC32_HH
#define CLICK_CHECKCRC32_HH
#include <click/element.hh>
#include <click/atomic.hh>
CLICK_DECLS
/*
* =c
* CheckCRC32()
* =s crc
* checks packet CRC32s
* =d
* Check that the CRC32 appended by SetCRC32 is OK.
* If so, delete the CRC from the packet.
* Otherwise, drop the packet.
* =a SetCRC32
*/
class EtherAddress;
class CheckCRC32 : public Element {
public:
CheckCRC32();
~CheckCRC32();
const char *class_name() const { return "CheckCRC32"; }
const char *port_count() const { return PORTS_1_1; }
const char *processing() const { return AGNOSTIC; }
Packet *simple_action(Packet *);
private:
atomic_uint32_t _drops;
};
CLICK_ENDDECLS
#endif
syntax highlighted by Code2HTML, v. 0.9.1