-
Notifications
You must be signed in to change notification settings - Fork 82
/
filterphyerr.hh
45 lines (30 loc) · 882 Bytes
/
filterphyerr.hh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef CLICK_FILTERPHYERR_HH
#define CLICK_FILTERPHYERR_HH
#include <click/element.hh>
#include <click/etheraddress.hh>
#include <click/bighashmap.hh>
#include <click/glue.hh>
CLICK_DECLS
/*
=c
FilterPhyErr([I<KEYWORDS>])
=s Wifi
Filters packets that failed the 802.11 CRC check.
=d
Filters out packets that have the phy err annotation set
in the wifi_extra_header, and sends these packets to output 1
if it is present.
=a ExtraDecap, ExtraEncap
*/
class FilterPhyErr : public Element { public:
FilterPhyErr() CLICK_COLD;
~FilterPhyErr() CLICK_COLD;
const char *class_name() const override { return "FilterPhyErr"; }
const char *port_count() const override { return "1/1-3"; }
const char *processing() const override { return PROCESSING_A_AH; }
void add_handlers() CLICK_COLD;
Packet *simple_action(Packet *);
int _drops;
};
CLICK_ENDDECLS
#endif