-
Notifications
You must be signed in to change notification settings - Fork 82
/
eraseippayload.hh
39 lines (26 loc) · 766 Bytes
/
eraseippayload.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
// -*- c-basic-offset: 4 -*-
#ifndef CLICK_ERASEIPPAYLOAD_HH
#define CLICK_ERASEIPPAYLOAD_HH
#include <click/batchelement.hh>
#include <click/glue.hh>
#include <click/atomic.hh>
#include <clicknet/ip.h>
CLICK_DECLS
/*
=c
EraseIPPayload()
=s ip
erases IP packet payload
=d
Erases all TCP or UDP payload in incoming packets. Output packets
have the same length, but all payload bytes are zero.
=a AnonymizeIPAddr */
class EraseIPPayload : public SimpleElement<EraseIPPayload> { public:
EraseIPPayload() CLICK_COLD;
~EraseIPPayload() CLICK_COLD;
const char *class_name() const override { return "EraseIPPayload"; }
const char *port_count() const override { return PORTS_1_1; }
Packet *simple_action(Packet *);
};
CLICK_ENDDECLS
#endif