A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
olsr-header.cc File Reference
#include "olsr-header.h"
#include "ns3/assert.h"
#include "ns3/log.h"
#include <cmath>
+ Include dependency graph for olsr-header.cc:

Go to the source code of this file.

Namespaces

namespace  ns3
 Every class exported by the ns3 library is enclosed in the ns3 namespace.
 
namespace  ns3::olsr
 

Macros

#define IPV4_ADDRESS_SIZE   4
 
#define OLSR_C   0.0625
 Scaling factor used in RFC 3626.
 
#define OLSR_MSG_HEADER_SIZE   12
 
#define OLSR_PKT_HEADER_SIZE   4
 

Functions

double ns3::olsr::EmfToSeconds (uint8_t olsrFormat)
 Converts a number of seconds in the mantissa/exponent format to a decimal number.
 
uint8_t ns3::olsr::SecondsToEmf (double seconds)
 Converts a decimal number of seconds to the mantissa/exponent format.
 

Macro Definition Documentation

◆ IPV4_ADDRESS_SIZE

#define IPV4_ADDRESS_SIZE   4

Definition at line 27 of file olsr-header.cc.

◆ OLSR_C

#define OLSR_C   0.0625

Scaling factor used in RFC 3626.

Definition at line 40 of file olsr-header.cc.

◆ OLSR_MSG_HEADER_SIZE

#define OLSR_MSG_HEADER_SIZE   12

Definition at line 28 of file olsr-header.cc.

◆ OLSR_PKT_HEADER_SIZE

#define OLSR_PKT_HEADER_SIZE   4

Definition at line 29 of file olsr-header.cc.