|
a |
|
b/src/policies/DIF/RA/Forwarding/PDUFTGPolicy.cc |
|
|
1 |
//
|
|
|
2 |
// This program is free software: you can redistribute it and/or modify
|
|
|
3 |
// it under the terms of the GNU Lesser General Public License as published by
|
|
|
4 |
// the Free Software Foundation, either version 3 of the License, or
|
|
|
5 |
// (at your option) any later version.
|
|
|
6 |
//
|
|
|
7 |
// This program is distributed in the hope that it will be useful,
|
|
|
8 |
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
9 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
10 |
// GNU Lesser General Public License for more details.
|
|
|
11 |
//
|
|
|
12 |
// You should have received a copy of the GNU Lesser General Public License
|
|
|
13 |
// along with this program. If not, see http://www.gnu.org/licenses/.
|
|
|
14 |
//
|
|
|
15 |
|
|
|
16 |
/* Author: Kewin Rausch (kewin.rausch@create-net.org) */
|
|
|
17 |
|
|
|
18 |
#include "PDUFTGPolicy.h"
|
|
|
19 |
#include "PDUFwdTabGenerator.h"
|
|
|
20 |
|
|
|
21 |
Define_Module(PDUFTGPolicy);
|
|
|
22 |
|
|
|
23 |
/*
|
|
|
24 |
* Class constructor/destructors stuff.
|
|
|
25 |
*/
|
|
|
26 |
|
|
|
27 |
PDUFTGPolicy::PDUFTGPolicy()
|
|
|
28 |
{
|
|
|
29 |
|
|
|
30 |
}
|
|
|
31 |
|
|
|
32 |
PDUFTGPolicy::~PDUFTGPolicy()
|
|
|
33 |
{
|
|
|
34 |
// Do nothing...
|
|
|
35 |
}
|
|
|
36 |
|
|
|
37 |
/*
|
|
|
38 |
* Class procedures sorted by name.
|
|
|
39 |
*/
|
|
|
40 |
|
|
|
41 |
void PDUFTGPolicy::computeForwardingTable()
|
|
|
42 |
{
|
|
|
43 |
// Do nothing...
|
|
|
44 |
}
|
|
|
45 |
|
|
|
46 |
PDUFTGInfo * PDUFTGPolicy::flowExists(Address addr, unsigned short qos)
|
|
|
47 |
{
|
|
|
48 |
return NULL;
|
|
|
49 |
}
|
|
|
50 |
|
|
|
51 |
void PDUFTGPolicy::handleMessage(cMessage *msg)
|
|
|
52 |
{
|
|
|
53 |
// Do nothing...
|
|
|
54 |
}
|
|
|
55 |
|
|
|
56 |
void PDUFTGPolicy::initialize()
|
|
|
57 |
{
|
|
|
58 |
fwdtg = ModuleAccess<PDUFwdTabGenerator>("pduFwdTabGenerator").get();
|
|
|
59 |
|
|
|
60 |
// Display active policy name.
|
|
|
61 |
cDisplayString& disp = getDisplayString();
|
|
|
62 |
disp.setTagArg("t", 1, "t");
|
|
|
63 |
disp.setTagArg("t", 0, getClassName());
|
|
|
64 |
}
|
|
|
65 |
|
|
|
66 |
void PDUFTGPolicy::insertNewFlow(Address addr, short unsigned int qos, RMTPort * port)
|
|
|
67 |
{
|
|
|
68 |
// Do nothing...
|
|
|
69 |
}
|
|
|
70 |
|
|
|
71 |
void PDUFTGPolicy::mergeForwardingInfo(PDUFTGUpdate * info)
|
|
|
72 |
{
|
|
|
73 |
// Do nothing...
|
|
|
74 |
}
|
|
|
75 |
|
|
|
76 |
void PDUFTGPolicy::removeFlow(Address addr, unsigned short qos)
|
|
|
77 |
{
|
|
|
78 |
// Do nothing...
|
|
|
79 |
}
|