-
Notifications
You must be signed in to change notification settings - Fork 82
/
erspandecap.hh
42 lines (29 loc) · 880 Bytes
/
erspandecap.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
#ifndef CLICK_ERSPANDECAP_HH
#define CLICK_ERSPANDECAP_HH
#include <click/batchelement.hh>
#include <click/glue.hh>
CLICK_DECLS
/*
=c
ERSPANDecap()
=s tunnel
decapsulate the ERSPAN packet and set the SPAN ID in the aggregate annotation,
and the timestamp if defined in the timestamp anno
*/
class ERSPANDecap : public ClassifyElement<ERSPANDecap> { public:
ERSPANDecap() CLICK_COLD;
~ERSPANDecap() CLICK_COLD;
const char *class_name() const override { return "ERSPANDecap"; }
const char *port_count() const override { return PORTS_1_1X2; }
const char *flags() const { return PUSH; }
int configure(Vector<String> &, ErrorHandler *) CLICK_COLD;
bool can_live_reconfigure() const { return true; }
int classify(Packet *);
private:
bool _span_anno;
bool _ts_anno;
bool _obs_warn;
bool _direction_anno;
};
CLICK_ENDDECLS
#endif