A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::SixLowPanIphc Class Reference

LOWPAN_IPHC base Encoding - see RFC 6282. More...

#include <sixlowpan-header.h>

+ Inheritance diagram for ns3::SixLowPanIphc:
+ Collaboration diagram for ns3::SixLowPanIphc:

Public Types

enum  HeaderCompression_e { HC_INLINE = 0, HC_COMPR_64, HC_COMPR_16, HC_COMPR_0 }
 Source or Destination Address Mode. More...
 
enum  Hlim_e { HLIM_INLINE = 0, HLIM_COMPR_1, HLIM_COMPR_64, HLIM_COMPR_255 }
 HLIM: Hop Limit. More...
 
enum  TrafficClassFlowLabel_e { TF_FULL = 0, TF_DSCP_ELIDED, TF_FL_ELIDED, TF_ELIDED }
 TF: Traffic Class, Flow Label. More...
 

Public Member Functions

 SixLowPanIphc (void)
 
 SixLowPanIphc (uint8_t dispatch)
 Constructor. More...
 
virtual uint32_t Deserialize (Buffer::Iterator start)
 Deserialize the packet. More...
 
bool GetCid (void) const
 Get the CID (Context Identifier Extension) compression. More...
 
bool GetDac (void) const
 Get the DAC (Destination Address Compression) compression. More...
 
HeaderCompression_e GetDam (void) const
 Get the DAM (Destination Address Mode) compression. More...
 
uint8_t GetDscp (void) const
 Get the DSCP. More...
 
Ipv6Address GetDstAddress () const
 Get the Destination Address. More...
 
uint8_t GetDstContextId (void) const
 Get the DstContextId. More...
 
uint8_t GetEcn (void) const
 Get the ECN. More...
 
uint32_t GetFlowLabel (void) const
 Get the Flow Label. More...
 
Hlim_e GetHlim (void) const
 Get the HLIM (Hop Limit) compression. More...
 
uint8_t GetHopLimit (void) const
 Get the Hop Limit field. More...
 
virtual TypeId GetInstanceTypeId (void) const
 Return the instance type identifier. More...
 
bool GetM (void) const
 Get the M (Multicast) compression. More...
 
uint8_t GetNextHeader (void) const
 Get the Next Header field. More...
 
bool GetNh (void) const
 Get the NH (Next Header) compression. More...
 
bool GetSac (void) const
 Get the SAC (Source Address Compression) compression. More...
 
HeaderCompression_e GetSam (void) const
 Get the SAM (Source Address Mode) compression. More...
 
virtual uint32_t GetSerializedSize (void) const
 Get the serialized size of the packet. More...
 
Ipv6Address GetSrcAddress () const
 Get the Source Address. More...
 
uint8_t GetSrcContextId (void) const
 Get the SrcContextId. More...
 
TrafficClassFlowLabel_e GetTf (void) const
 Get the TF (Traffic Class, Flow Label) compression. More...
 
virtual void Print (std::ostream &os) const
 
virtual void Serialize (Buffer::Iterator start) const
 Serialize the packet. More...
 
void SetCid (bool cidField)
 Set the CID (Context Identifier Extension) compression. More...
 
void SetDac (bool dacField)
 Set the DAC (Destination Address Compression) compression. More...
 
void SetDam (HeaderCompression_e damField)
 Set the DAM (Destination Address Mode) compression. More...
 
void SetDscp (uint8_t dscp)
 Set the DSCP (6bits). More...
 
void SetDstAddress (Ipv6Address dstAddress)
 Set the Destination Address. More...
 
void SetDstContextId (uint8_t dstContextId)
 Set the DstContextId. More...
 
void SetEcn (uint8_t ecn)
 Set the ECN (2bits). More...
 
void SetFlowLabel (uint32_t flowLabel)
 Set the Flow Label (20bits). More...
 
void SetHlim (Hlim_e hlimField)
 Set the HLIM (Hop Limit) compression. More...
 
void SetHopLimit (uint8_t hopLimit)
 Set the Hop Limit field. More...
 
void SetM (bool mField)
 Set the M (Multicast) compression. More...
 
void SetNextHeader (uint8_t nextHeader)
 Set the Next Header field. More...
 
void SetNh (bool nhField)
 Set the NH (Next Header) compression. More...
 
void SetSac (bool sacField)
 Set the SAC (Source Address Compression) compression. More...
 
void SetSam (HeaderCompression_e samField)
 Set the SAM (Source Address Mode) compression. More...
 
void SetSrcAddress (Ipv6Address srcAddress)
 Set the Source Address. More...
 
void SetSrcContextId (uint8_t srcContextId)
 Set the SrcContextId. More...
 
void SetTf (TrafficClassFlowLabel_e tfField)
 Set the TF (Traffic Class, Flow Label) compression. More...
 
- Public Member Functions inherited from ns3::Header
virtual ~Header ()
 
- Public Member Functions inherited from ns3::ObjectBase
virtual ~ObjectBase ()
 Virtual destructor. More...
 
void GetAttribute (std::string name, AttributeValue &value) const
 
bool GetAttributeFailSafe (std::string name, AttributeValue &attribute) const
 
void SetAttribute (std::string name, const AttributeValue &value)
 
bool SetAttributeFailSafe (std::string name, const AttributeValue &value)
 
bool TraceConnect (std::string name, std::string context, const CallbackBase &cb)
 
bool TraceConnectWithoutContext (std::string name, const CallbackBase &cb)
 
bool TraceDisconnect (std::string name, std::string context, const CallbackBase &cb)
 
bool TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb)
 

Static Public Member Functions

static TypeId GetTypeId (void)
 Get the type ID. More...
 
- Static Public Member Functions inherited from ns3::Header
static TypeId GetTypeId (void)
 Get the type ID. More...
 
- Static Public Member Functions inherited from ns3::Chunk
static TypeId GetTypeId (void)
 Get the type ID. More...
 
- Static Public Member Functions inherited from ns3::ObjectBase
static TypeId GetTypeId (void)
 Get the type ID. More...
 

Private Member Functions

void PostProcessDac ()
 Post-process the Destination address stateful compression. More...
 
void PostProcessSac ()
 Post-process the Source address stateful compression. More...
 

Private Attributes

uint16_t m_baseFormat
 Dispatch + encoding fields. More...
 
uint8_t m_dscp: 6
 DSCP bits. More...
 
Ipv6Address m_dstAddress
 Dst address. More...
 
uint8_t m_ecn: 2
 ECN bits. More...
 
uint32_t m_flowLabel: 20
 Flow Label bits. More...
 
uint8_t m_hopLimit
 Hop Limit. More...
 
uint8_t m_nextHeader
 Next header. More...
 
Ipv6Address m_srcAddress
 Src address. More...
 
uint8_t m_srcdstContextId
 Src and Dst Context ID. More...
 

Additional Inherited Members

- Protected Member Functions inherited from ns3::ObjectBase
void ConstructSelf (const AttributeConstructionList &attributes)
 
virtual void NotifyConstructionCompleted (void)
 This method is invoked once all member attributes have been initialized. More...
 

Detailed Description

LOWPAN_IPHC base Encoding - see RFC 6282.

Doxygen introspection did not find any typical Config paths.

     0                                       1
     0   1   2   3   4   5   6   7   8   9   0   1   2   3   4   5
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
   | 0 | 1 | 1 |  TF   |NH | HLIM  |CID|SAC|  SAM  | M |DAC|  DAM  |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+


No Attributes are defined for this type.
No TraceSources are defined for this type.

Definition at line 609 of file sixlowpan-header.h.

Member Enumeration Documentation

Source or Destination Address Mode.

00: 128 bits. 01: 64 bits (or 48 bits if multicast). 10: 16 bits (or 32 bits if multicast). 11: Fully elided (or 8 bits if multicast).

Enumerator
HC_INLINE 
HC_COMPR_64 
HC_COMPR_16 
HC_COMPR_0 

Definition at line 653 of file sixlowpan-header.h.

HLIM: Hop Limit.

00: The Hop Limit field is carried in-line. 01: The Hop Limit field is compressed and the hop limit is 1. 10: The Hop Limit field is compressed and the hop limit is 64. 11: The Hop Limit field is compressed and the hop limit is 255.

Enumerator
HLIM_INLINE 
HLIM_COMPR_1 
HLIM_COMPR_64 
HLIM_COMPR_255 

Definition at line 637 of file sixlowpan-header.h.

TF: Traffic Class, Flow Label.

00: ECN + DSCP + 4-bit Pad + Flow Label (4 bytes) 01: ECN + 2-bit Pad + Flow Label (3 bytes), DSCP is elided. 10: ECN + DSCP (1 byte), Flow Label is elided. 11: Traffic Class and Flow Label are elided.

Enumerator
TF_FULL 
TF_DSCP_ELIDED 
TF_FL_ELIDED 
TF_ELIDED 

Definition at line 621 of file sixlowpan-header.h.

Constructor & Destructor Documentation

ns3::SixLowPanIphc::SixLowPanIphc ( void  )

Definition at line 777 of file sixlowpan-header.cc.

References m_baseFormat.

ns3::SixLowPanIphc::SixLowPanIphc ( uint8_t  dispatch)

Constructor.

Parameters
dispatchdispatch value

Definition at line 783 of file sixlowpan-header.cc.

References m_baseFormat.

Member Function Documentation

bool ns3::SixLowPanIphc::GetCid ( void  ) const

Get the CID (Context Identifier Extension) compression.

Returns
false (no CID present), true (CID follows)

Definition at line 1294 of file sixlowpan-header.cc.

References m_baseFormat.

Referenced by Deserialize(), GetSerializedSize(), and Serialize().

+ Here is the caller graph for this function:

bool ns3::SixLowPanIphc::GetDac ( void  ) const

Get the DAC (Destination Address Compression) compression.

Returns
false (stateless), true (stateful)

Definition at line 1338 of file sixlowpan-header.cc.

References m_baseFormat.

Referenced by ns3::SixLowPanNetDevice::DecompressLowPanIphc(), Deserialize(), GetSerializedSize(), and Serialize().

+ Here is the caller graph for this function:

SixLowPanIphc::HeaderCompression_e ns3::SixLowPanIphc::GetDam ( void  ) const

Get the DAM (Destination Address Mode) compression.

Returns
depends on the DAC and M fields

Definition at line 1349 of file sixlowpan-header.cc.

References m_baseFormat.

Referenced by ns3::SixLowPanNetDevice::DecompressLowPanIphc(), Deserialize(), GetSerializedSize(), and Serialize().

+ Here is the caller graph for this function:

uint8_t ns3::SixLowPanIphc::GetDscp ( void  ) const

Get the DSCP.

Returns
the DSCP

Definition at line 1393 of file sixlowpan-header.cc.

References m_dscp.

Referenced by ns3::SixLowPanNetDevice::DecompressLowPanIphc().

+ Here is the caller graph for this function:

Ipv6Address ns3::SixLowPanIphc::GetDstAddress ( ) const

Get the Destination Address.

Returns
the Destination Address.

Definition at line 1444 of file sixlowpan-header.cc.

References m_dstAddress.

Referenced by ns3::SixLowPanNetDevice::DecompressLowPanIphc().

+ Here is the caller graph for this function:

uint8_t ns3::SixLowPanIphc::GetDstContextId ( void  ) const

Get the DstContextId.

Returns
the DstContextId

Definition at line 1371 of file sixlowpan-header.cc.

References m_srcdstContextId.

uint8_t ns3::SixLowPanIphc::GetEcn ( void  ) const

Get the ECN.

Returns
the ECN

Definition at line 1382 of file sixlowpan-header.cc.

References m_ecn.

Referenced by ns3::SixLowPanNetDevice::DecompressLowPanIphc().

+ Here is the caller graph for this function:

uint32_t ns3::SixLowPanIphc::GetFlowLabel ( void  ) const

Get the Flow Label.

Returns
the Flow Label

Definition at line 1404 of file sixlowpan-header.cc.

References m_flowLabel.

Referenced by ns3::SixLowPanNetDevice::DecompressLowPanIphc().

+ Here is the caller graph for this function:

SixLowPanIphc::Hlim_e ns3::SixLowPanIphc::GetHlim ( void  ) const

Get the HLIM (Hop Limit) compression.

Returns
Hop Limit compression type

Definition at line 1283 of file sixlowpan-header.cc.

References m_baseFormat.

Referenced by Deserialize(), GetSerializedSize(), and Serialize().

+ Here is the caller graph for this function:

uint8_t ns3::SixLowPanIphc::GetHopLimit ( void  ) const

Get the Hop Limit field.

Returns
the Hop Limit field.

Definition at line 1424 of file sixlowpan-header.cc.

References m_hopLimit.

Referenced by ns3::SixLowPanNetDevice::DecompressLowPanIphc().

+ Here is the caller graph for this function:

TypeId ns3::SixLowPanIphc::GetInstanceTypeId ( void  ) const
virtual

Return the instance type identifier.

Returns
instance type ID

Implements ns3::ObjectBase.

Definition at line 796 of file sixlowpan-header.cc.

References GetTypeId().

+ Here is the call graph for this function:

bool ns3::SixLowPanIphc::GetM ( void  ) const

Get the M (Multicast) compression.

Returns
true if destination is multicast

Definition at line 1327 of file sixlowpan-header.cc.

References m_baseFormat.

Referenced by ns3::SixLowPanNetDevice::CompressLowPanIphc(), ns3::SixLowPanNetDevice::DecompressLowPanIphc(), Deserialize(), GetSerializedSize(), and Serialize().

+ Here is the caller graph for this function:

uint8_t ns3::SixLowPanIphc::GetNextHeader ( void  ) const

Get the Next Header field.

Returns
the Next Header field.

Definition at line 1414 of file sixlowpan-header.cc.

References m_nextHeader.

Referenced by ns3::SixLowPanNetDevice::DecompressLowPanIphc().

+ Here is the caller graph for this function:

bool ns3::SixLowPanIphc::GetNh ( void  ) const

Get the NH (Next Header) compression.

Returns
false (Next Header carried in-line), true (compressed NH)

Definition at line 1272 of file sixlowpan-header.cc.

References m_baseFormat.

Referenced by ns3::SixLowPanNetDevice::DecompressLowPanIphc(), Deserialize(), GetSerializedSize(), and Serialize().

+ Here is the caller graph for this function:

bool ns3::SixLowPanIphc::GetSac ( void  ) const

Get the SAC (Source Address Compression) compression.

Returns
false (stateless), true (stateful)

Definition at line 1305 of file sixlowpan-header.cc.

References m_baseFormat.

Referenced by ns3::SixLowPanNetDevice::DecompressLowPanIphc(), Deserialize(), GetSerializedSize(), and Serialize().

+ Here is the caller graph for this function:

SixLowPanIphc::HeaderCompression_e ns3::SixLowPanIphc::GetSam ( void  ) const

Get the SAM (Source Address Mode) compression.

Returns
depends on the SAC field

Definition at line 1316 of file sixlowpan-header.cc.

References m_baseFormat.

Referenced by ns3::SixLowPanNetDevice::DecompressLowPanIphc(), Deserialize(), GetSerializedSize(), and Serialize().

+ Here is the caller graph for this function:

uint32_t ns3::SixLowPanIphc::GetSerializedSize ( void  ) const
virtual

Get the serialized size of the packet.

Returns
size

Implements ns3::Header.

Definition at line 806 of file sixlowpan-header.cc.

References GetCid(), GetDac(), GetDam(), GetHlim(), GetM(), GetNh(), GetSac(), GetSam(), GetTf(), HC_COMPR_0, HC_COMPR_16, HC_COMPR_64, HC_INLINE, HLIM_INLINE, TF_DSCP_ELIDED, TF_FL_ELIDED, and TF_FULL.

Referenced by ns3::SixLowPanNetDevice::CompressLowPanIphc(), and Deserialize().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Ipv6Address ns3::SixLowPanIphc::GetSrcAddress ( ) const

Get the Source Address.

Returns
the Source Address.

Definition at line 1434 of file sixlowpan-header.cc.

References m_srcAddress.

Referenced by ns3::SixLowPanNetDevice::DecompressLowPanIphc().

+ Here is the caller graph for this function:

uint8_t ns3::SixLowPanIphc::GetSrcContextId ( void  ) const

Get the SrcContextId.

Returns
the SrcContextId

Definition at line 1360 of file sixlowpan-header.cc.

References m_srcdstContextId.

SixLowPanIphc::TrafficClassFlowLabel_e ns3::SixLowPanIphc::GetTf ( void  ) const

Get the TF (Traffic Class, Flow Label) compression.

Returns
the ECN, DSCP, Flow Label compression type

Definition at line 1261 of file sixlowpan-header.cc.

References m_baseFormat.

Referenced by ns3::SixLowPanNetDevice::DecompressLowPanIphc(), Deserialize(), GetSerializedSize(), and Serialize().

+ Here is the caller graph for this function:

TypeId ns3::SixLowPanIphc::GetTypeId ( void  )
static

Get the type ID.

Returns
the object TypeId

Definition at line 790 of file sixlowpan-header.cc.

References ns3::TypeId::SetParent().

Referenced by GetInstanceTypeId().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::SixLowPanIphc::PostProcessDac ( )
private

Post-process the Destination address stateful compression.

Note
currently unsupported

Definition at line 1455 of file sixlowpan-header.cc.

References NS_ABORT_MSG.

Referenced by Deserialize().

+ Here is the caller graph for this function:

void ns3::SixLowPanIphc::PostProcessSac ( )
private

Post-process the Source address stateful compression.

Note
currently unsupported

Definition at line 1449 of file sixlowpan-header.cc.

References NS_ABORT_MSG.

Referenced by Deserialize().

+ Here is the caller graph for this function:

void ns3::SixLowPanIphc::Print ( std::ostream &  os) const
virtual
Parameters
osoutput stream This method is used by Packet::Print to print the content of a trailer as ascii data to a c++ output stream. Although the trailer is free to format its output as it wishes, it is recommended to follow a few rules to integrate with the packet pretty printer: start with flags, small field values located between a pair of parens. Values should be separated by whitespace. Follow the parens with the important fields, separated by whitespace. i.e.: (field1 val1 field2 val2 field3 val3) field4 val4 field5 val5

Implements ns3::Header.

Definition at line 801 of file sixlowpan-header.cc.

References m_baseFormat.

Referenced by ns3::operator<<().

+ Here is the caller graph for this function:

void ns3::SixLowPanIphc::SetCid ( bool  cidField)

Set the CID (Context Identifier Extension) compression.

Parameters
cidFieldfalse (no CID present), true (CID follows)

Definition at line 1288 of file sixlowpan-header.cc.

References m_baseFormat.

Referenced by ns3::SixLowPanNetDevice::CompressLowPanIphc().

+ Here is the caller graph for this function:

void ns3::SixLowPanIphc::SetDac ( bool  dacField)

Set the DAC (Destination Address Compression) compression.

Parameters
dacFieldfalse (stateless), true (stateful)

Definition at line 1332 of file sixlowpan-header.cc.

References m_baseFormat.

Referenced by ns3::SixLowPanNetDevice::CompressLowPanIphc().

+ Here is the caller graph for this function:

void ns3::SixLowPanIphc::SetDam ( HeaderCompression_e  damField)

Set the DAM (Destination Address Mode) compression.

Parameters
damField- depends on the DAC and M fields

Definition at line 1343 of file sixlowpan-header.cc.

References m_baseFormat.

Referenced by ns3::SixLowPanNetDevice::CompressLowPanIphc().

+ Here is the caller graph for this function:

void ns3::SixLowPanIphc::SetDscp ( uint8_t  dscp)

Set the DSCP (6bits).

Parameters
dscp- valid values are [0:63]

Definition at line 1387 of file sixlowpan-header.cc.

References m_dscp, and NS_ASSERT_MSG.

Referenced by ns3::SixLowPanNetDevice::CompressLowPanIphc().

+ Here is the caller graph for this function:

void ns3::SixLowPanIphc::SetDstAddress ( Ipv6Address  dstAddress)

Set the Destination Address.

Parameters
dstAddressthe Destination Address.

Definition at line 1439 of file sixlowpan-header.cc.

References m_dstAddress.

Referenced by ns3::SixLowPanNetDevice::CompressLowPanIphc().

+ Here is the caller graph for this function:

void ns3::SixLowPanIphc::SetDstContextId ( uint8_t  dstContextId)

Set the DstContextId.

Parameters
dstContextId- valid values are [0:15]

Definition at line 1365 of file sixlowpan-header.cc.

References m_srcdstContextId, and NS_ASSERT_MSG.

void ns3::SixLowPanIphc::SetEcn ( uint8_t  ecn)

Set the ECN (2bits).

Parameters
ecn- valid values are [0:3]

Definition at line 1376 of file sixlowpan-header.cc.

References m_ecn, and NS_ASSERT_MSG.

Referenced by ns3::SixLowPanNetDevice::CompressLowPanIphc().

+ Here is the caller graph for this function:

void ns3::SixLowPanIphc::SetFlowLabel ( uint32_t  flowLabel)

Set the Flow Label (20bits).

Parameters
flowLabel- valid values are 20 bits long.

Definition at line 1398 of file sixlowpan-header.cc.

References m_flowLabel, and NS_ASSERT_MSG.

Referenced by ns3::SixLowPanNetDevice::CompressLowPanIphc().

+ Here is the caller graph for this function:

void ns3::SixLowPanIphc::SetHlim ( Hlim_e  hlimField)

Set the HLIM (Hop Limit) compression.

Parameters
hlimFieldHop Limit compression type

Definition at line 1277 of file sixlowpan-header.cc.

References m_baseFormat.

Referenced by ns3::SixLowPanNetDevice::CompressLowPanIphc().

+ Here is the caller graph for this function:

void ns3::SixLowPanIphc::SetHopLimit ( uint8_t  hopLimit)

Set the Hop Limit field.

Parameters
hopLimitHop Limit field.

Definition at line 1419 of file sixlowpan-header.cc.

References m_hopLimit.

Referenced by ns3::SixLowPanNetDevice::CompressLowPanIphc().

+ Here is the caller graph for this function:

void ns3::SixLowPanIphc::SetM ( bool  mField)

Set the M (Multicast) compression.

Parameters
mFieldtrue if destination is multicast

Definition at line 1321 of file sixlowpan-header.cc.

References m_baseFormat.

Referenced by ns3::SixLowPanNetDevice::CompressLowPanIphc().

+ Here is the caller graph for this function:

void ns3::SixLowPanIphc::SetNextHeader ( uint8_t  nextHeader)

Set the Next Header field.

Parameters
nextHeaderNext Header field.

Definition at line 1409 of file sixlowpan-header.cc.

References m_nextHeader.

Referenced by ns3::SixLowPanNetDevice::CompressLowPanIphc().

+ Here is the caller graph for this function:

void ns3::SixLowPanIphc::SetNh ( bool  nhField)

Set the NH (Next Header) compression.

Parameters
nhFieldfalse (Next Header carried in-line), true (compressed NH)

Definition at line 1266 of file sixlowpan-header.cc.

References m_baseFormat.

Referenced by ns3::SixLowPanNetDevice::CompressLowPanIphc().

+ Here is the caller graph for this function:

void ns3::SixLowPanIphc::SetSac ( bool  sacField)

Set the SAC (Source Address Compression) compression.

Parameters
sacFieldfalse (stateless), true (stateful)

Definition at line 1299 of file sixlowpan-header.cc.

References m_baseFormat.

Referenced by ns3::SixLowPanNetDevice::CompressLowPanIphc().

+ Here is the caller graph for this function:

void ns3::SixLowPanIphc::SetSam ( HeaderCompression_e  samField)

Set the SAM (Source Address Mode) compression.

Parameters
samField- depends on the SAC

Definition at line 1310 of file sixlowpan-header.cc.

References m_baseFormat.

Referenced by ns3::SixLowPanNetDevice::CompressLowPanIphc().

+ Here is the caller graph for this function:

void ns3::SixLowPanIphc::SetSrcAddress ( Ipv6Address  srcAddress)

Set the Source Address.

Parameters
srcAddressthe Source Address.

Definition at line 1429 of file sixlowpan-header.cc.

References m_srcAddress.

Referenced by ns3::SixLowPanNetDevice::CompressLowPanIphc().

+ Here is the caller graph for this function:

void ns3::SixLowPanIphc::SetSrcContextId ( uint8_t  srcContextId)

Set the SrcContextId.

Parameters
srcContextId- valid values are [0:15]

Definition at line 1354 of file sixlowpan-header.cc.

References m_srcdstContextId, and NS_ASSERT_MSG.

void ns3::SixLowPanIphc::SetTf ( TrafficClassFlowLabel_e  tfField)

Set the TF (Traffic Class, Flow Label) compression.

Parameters
tfFieldECN, DSCP, Flow Label compression type

Definition at line 1255 of file sixlowpan-header.cc.

References m_baseFormat.

Referenced by ns3::SixLowPanNetDevice::CompressLowPanIphc().

+ Here is the caller graph for this function:

Member Data Documentation

uint16_t ns3::SixLowPanIphc::m_baseFormat
private
uint8_t ns3::SixLowPanIphc::m_dscp
private

DSCP bits.

Definition at line 921 of file sixlowpan-header.h.

Referenced by Deserialize(), GetDscp(), Serialize(), and SetDscp().

Ipv6Address ns3::SixLowPanIphc::m_dstAddress
private

Dst address.

Definition at line 926 of file sixlowpan-header.h.

Referenced by Deserialize(), GetDstAddress(), Serialize(), and SetDstAddress().

uint8_t ns3::SixLowPanIphc::m_ecn
private

ECN bits.

Definition at line 920 of file sixlowpan-header.h.

Referenced by Deserialize(), GetEcn(), Serialize(), and SetEcn().

uint32_t ns3::SixLowPanIphc::m_flowLabel
private

Flow Label bits.

Definition at line 922 of file sixlowpan-header.h.

Referenced by Deserialize(), GetFlowLabel(), Serialize(), and SetFlowLabel().

uint8_t ns3::SixLowPanIphc::m_hopLimit
private

Hop Limit.

Definition at line 924 of file sixlowpan-header.h.

Referenced by Deserialize(), GetHopLimit(), Serialize(), and SetHopLimit().

uint8_t ns3::SixLowPanIphc::m_nextHeader
private

Next header.

Definition at line 923 of file sixlowpan-header.h.

Referenced by Deserialize(), GetNextHeader(), Serialize(), and SetNextHeader().

Ipv6Address ns3::SixLowPanIphc::m_srcAddress
private

Src address.

Definition at line 925 of file sixlowpan-header.h.

Referenced by Deserialize(), GetSrcAddress(), Serialize(), and SetSrcAddress().

uint8_t ns3::SixLowPanIphc::m_srcdstContextId
private

Src and Dst Context ID.

Definition at line 919 of file sixlowpan-header.h.

Referenced by Deserialize(), GetDstContextId(), GetSrcContextId(), Serialize(), SetDstContextId(), and SetSrcContextId().


The documentation for this class was generated from the following files: