|
a |
|
b/src/policies/DIF/RA/Forwarding/DistanceVector/DVPInfo.h |
|
|
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 |
#ifndef __RINA_DVPINFO_H
|
|
|
19 |
#define __RINA_DVPINFO_H
|
|
|
20 |
|
|
|
21 |
#include <omnetpp.h>
|
|
|
22 |
|
|
|
23 |
#include "PDUFTGInfo.h"
|
|
|
24 |
|
|
|
25 |
// Every policy can have additional information that want to share.
|
|
|
26 |
// If the offered base class is not enough, just extend like this the base information
|
|
|
27 |
// message and add your extra fields.
|
|
|
28 |
//
|
|
|
29 |
class DVPInfo :
|
|
|
30 |
public PDUFTGInfo
|
|
|
31 |
{
|
|
|
32 |
private:
|
|
|
33 |
int dummy;
|
|
|
34 |
|
|
|
35 |
public:
|
|
|
36 |
DVPInfo();
|
|
|
37 |
DVPInfo(Address src, Address dst, unsigned short QoSID, unsigned int metric);
|
|
|
38 |
~DVPInfo();
|
|
|
39 |
|
|
|
40 |
int getDummy();
|
|
|
41 |
void setDummy(int d);
|
|
|
42 |
};
|
|
|
43 |
|
|
|
44 |
#endif
|