-
Notifications
You must be signed in to change notification settings - Fork 82
/
forceicmp.hh
35 lines (29 loc) · 719 Bytes
/
forceicmp.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
#ifndef CLICK_FORCEICMP_HH
#define CLICK_FORCEICMP_HH
#include <click/element.hh>
#include <click/glue.hh>
CLICK_DECLS
/*
* =c
* ForceICMP([TYPE, CODE])
* =s icmp
* sets ICMP checksum
* =d
* Sets the ICMP checksum of an ICMP-in-IP packet. Optionally
* sets the TYPE and CODE of the ICMP header.
*/
class ForceICMP : public Element {
public:
ForceICMP() CLICK_COLD;
~ForceICMP() CLICK_COLD;
const char *class_name() const override { return "ForceICMP"; }
const char *port_count() const override { return PORTS_1_1; }
int configure(Vector<String> &conf, ErrorHandler *errh) CLICK_COLD;
Packet *simple_action(Packet *);
private:
int _count;
int _type;
int _code;
};
CLICK_ENDDECLS
#endif