src/routing/olsr/olsr-header.cc File Reference

#include "ns3/assert.h"
#include "olsr-header.h"
#include "ns3/log.h"
#include "ns3/test.h"
#include "ns3/packet.h"
#include <math.h>
Include dependency graph for olsr-header.cc:

Go to the source code of this file.

Classes

class  ns3::OlsrHeaderTest

Namespaces

namespace  ns3
 

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


namespace  ns3::olsr

Defines

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

Functions

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

Variables

static OlsrHeaderTest ns3::gOlsrHeaderTest

Define Documentation

#define IPV4_ADDRESS_SIZE   4
#define OLSR_C   0.0625

Scaling factor used in RFC 3626.

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

#define OLSR_MSG_HEADER_SIZE   12
#define OLSR_PKT_HEADER_SIZE   4

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

Referenced by ns3::olsr::PacketHeader::GetSerializedSize().

Generated on Thu Dec 3 14:08:46 2009 for NS-3 by  doxygen 1.6.3