Page MenuHomec4science

radiotapdecap.hh
No OneTemporary

File Metadata

Created
Fri, Jul 4, 16:27

radiotapdecap.hh

#ifndef CLICK_RADIOTAPDECAP_HH
#define CLICK_RADIOTAPDECAP_HH
#include <click/element.hh>
#include <click/etheraddress.hh>
#include <clicknet/ether.h>
#include <click/hashtable.hh>
CLICK_DECLS
/*
=c
RadiotapDecap()
=s Wifi
Pulls the click_wifi_radiotap header from a packet and stores it in Packet::anno()
=d
Removes the radiotap header and copies to to Packet->anno(). This contains
informatino such as rssi, noise, bitrate, etc.
=a RadiotapEncap
*/
class RadiotapDecap : public Element { public:
RadiotapDecap();
~RadiotapDecap();
const char *class_name() const { return "RadiotapDecap"; }
const char *port_count() const { return PORTS_1_1; }
const char *processing() const { return AGNOSTIC; }
int configure(Vector<String> &, ErrorHandler *);
bool can_live_reconfigure() const { return true; }
Packet *simple_action(Packet *);
void add_handlers();
bool _debug;
private:
Timestamp _now;
Timestamp _last_print;
Timestamp _last_print_0;
Timestamp _last_print_done;
EtherAddress _eth_addr_1;
EtherAddress _dst_addr;
uint32_t _max_length;
uint32_t _nb_packets;
HashTable<uint32_t, int> _test_if;
};
CLICK_ENDDECLS
#endif

Event Timeline