olsr: Move Willingness to olsr-repositories.h
This commit is contained in:
@@ -33,6 +33,24 @@ namespace ns3
|
||||
namespace olsr
|
||||
{
|
||||
|
||||
/**
|
||||
* \ingroup olsr
|
||||
*
|
||||
* Willingness for forwarding packets from other nodes.
|
||||
* The standard defines the following set of values.
|
||||
* Values 0 - 7 are allowed by the standard, but this is not enforced in the code.
|
||||
*
|
||||
* See \RFC{3626} section 18.8
|
||||
*/
|
||||
enum Willingness : uint8_t
|
||||
{
|
||||
NEVER = 0,
|
||||
LOW = 1,
|
||||
DEFAULT = 3, // medium
|
||||
HIGH = 6,
|
||||
ALWAYS = 7,
|
||||
};
|
||||
|
||||
/// \ingroup olsr
|
||||
/// An Interface Association Tuple.
|
||||
struct IfaceAssocTuple
|
||||
|
||||
@@ -34,6 +34,8 @@
|
||||
|
||||
#include "olsr-routing-protocol.h"
|
||||
|
||||
#include "olsr-repositories.h"
|
||||
|
||||
#include "ns3/boolean.h"
|
||||
#include "ns3/enum.h"
|
||||
#include "ns3/inet-socket-address.h"
|
||||
|
||||
@@ -76,21 +76,6 @@ struct RoutingTableEntry
|
||||
|
||||
class RoutingProtocol;
|
||||
|
||||
/**
|
||||
* \ingroup olsr
|
||||
*
|
||||
* Willingness for forwarding packets from other nodes
|
||||
* See \RFC{3626} section 18.8
|
||||
*/
|
||||
enum Willingness
|
||||
{
|
||||
NEVER = 0,
|
||||
LOW = 1,
|
||||
DEFAULT = 3, // medium
|
||||
HIGH = 6,
|
||||
ALWAYS = 7,
|
||||
};
|
||||
|
||||
///
|
||||
/// \ingroup olsr
|
||||
///
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
*/
|
||||
|
||||
#include "ns3/ipv4-header.h"
|
||||
#include "ns3/olsr-repositories.h"
|
||||
#include "ns3/olsr-routing-protocol.h"
|
||||
#include "ns3/test.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user