-
Notifications
You must be signed in to change notification settings - Fork 82
/
fixdstloc.hh
39 lines (31 loc) · 850 Bytes
/
fixdstloc.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
#ifndef CLICK_FIXDSTLOC_HH
#define CLICK_FIXDSTLOC_HH
#include <click/element.hh>
#include <click/glue.hh>
#include "loctable.hh"
CLICK_DECLS
/*
* =c
* FixDstLoc(LOCTABLE)
* =s Grid
* =d
*
* Expects a GRID_NBR_ENCAP packet with MAC header as input. Sets the
* packet's destination according to the destination IP address. Takes
* a LocationTable element as its argument.
*
* =a */
class FixDstLoc : public Element {
public:
FixDstLoc() CLICK_COLD;
~FixDstLoc() CLICK_COLD;
const char *class_name() const override { return "FixDstLoc"; }
const char *port_count() const override { return PORTS_1_1; }
const char *processing() const override { return AGNOSTIC; }
int configure(Vector<String> &, ErrorHandler *) CLICK_COLD;
Packet *simple_action(Packet *);
private:
LocationTable *_loctab;
};
CLICK_ENDDECLS
#endif