olsr: Move Willingness to olsr-repositories.h

This commit is contained in:
Eduardo Almeida
2023-06-01 20:40:40 +01:00
parent 36f8d798d3
commit 390f3d26b2
4 changed files with 21 additions and 15 deletions

View File

@@ -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

View File

@@ -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"

View File

@@ -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
///

View File

@@ -20,6 +20,7 @@
*/
#include "ns3/ipv4-header.h"
#include "ns3/olsr-repositories.h"
#include "ns3/olsr-routing-protocol.h"
#include "ns3/test.h"