LOWPAN_IPHC base Encoding - see RFC 6282. More...
#include "sixlowpan-header.h"
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 (uint8_t dispatch) | |
Constructor. More... | |
SixLowPanIphc (void) | |
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... | |
uint8_t | GetDstContextId (void) const |
Get the DstContextId. More... | |
const uint8_t * | GetDstInlinePart (void) const |
brief Get the destination address inline part 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... | |
uint8_t | GetSrcContextId (void) const |
Get the SrcContextId. More... | |
const uint8_t * | GetSrcInlinePart (void) const |
brief Get the source address inline part 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 | SetDstContextId (uint8_t dstContextId) |
Set the DstContextId. More... | |
void | SetDstInlinePart (uint8_t dstInlinePart[16], uint8_t size) |
brief Set the destination address inline part 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 | SetSrcContextId (uint8_t srcContextId) |
Set the SrcContextId. More... | |
void | SetSrcInlinePart (uint8_t srcInlinePart[16], uint8_t size) |
brief Set the source address inline part More... | |
void | SetTf (TrafficClassFlowLabel_e tfField) |
Set the TF (Traffic Class, Flow Label) compression. More... | |
Public Member Functions inherited from ns3::Header | |
virtual | ~Header () |
virtual uint32_t | Deserialize (Buffer::Iterator start)=0 |
Deserialize the object from a buffer iterator. More... | |
virtual uint32_t | Deserialize (Buffer::Iterator start, Buffer::Iterator end) |
Deserialize the object from a buffer iterator. More... | |
Public Member Functions inherited from ns3::Chunk | |
virtual uint32_t | Deserialize (Buffer::Iterator start, Buffer::Iterator end) |
Deserialize the object from a buffer iterator. More... | |
Public Member Functions inherited from ns3::ObjectBase | |
virtual | ~ObjectBase () |
Virtual destructor. More... | |
void | GetAttribute (std::string name, AttributeValue &value) const |
Get the value of an attribute, raising fatal errors if unsuccessful. More... | |
bool | GetAttributeFailSafe (std::string name, AttributeValue &value) const |
Get the value of an attribute without raising erros. More... | |
void | SetAttribute (std::string name, const AttributeValue &value) |
Set a single attribute, raising fatal errors if unsuccessful. More... | |
bool | SetAttributeFailSafe (std::string name, const AttributeValue &value) |
Set a single attribute without raising errors. More... | |
bool | TraceConnect (std::string name, std::string context, const CallbackBase &cb) |
Connect a TraceSource to a Callback with a context. More... | |
bool | TraceConnectWithoutContext (std::string name, const CallbackBase &cb) |
Connect a TraceSource to a Callback without a context. More... | |
bool | TraceDisconnect (std::string name, std::string context, const CallbackBase &cb) |
Disconnect from a TraceSource a Callback previously connected with a context. More... | |
bool | TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb) |
Disconnect from a TraceSource a Callback previously connected without a context. More... | |
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 Attributes | |
uint16_t | m_baseFormat |
Dispatch + encoding fields. More... | |
uint8_t | m_dscp: 6 |
DSCP bits. More... | |
uint8_t | m_dstInlinePart [16] |
destination address inline part. 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... | |
uint8_t | m_srcdstContextId |
Src and Dst Context ID. More... | |
uint8_t | m_srcInlinePart [16] |
source address inline part. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from ns3::ObjectBase | |
void | ConstructSelf (const AttributeConstructionList &attributes) |
Complete construction of ObjectBase; invoked by derived classes. More... | |
virtual void | NotifyConstructionCompleted (void) |
Notifier called once the ObjectBase is fully constructed. More... | |
Related Functions inherited from ns3::ObjectBase | |
static TypeId | GetObjectIid (void) |
Ensure the TypeId for ObjectBase gets fully configured to anchor the inheritance tree properly. More... | |
LOWPAN_IPHC base Encoding - see RFC 6282.
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.
Size of this type is 56 bytes (on a 64-bit architecture).
Definition at line 607 of file sixlowpan-header.h.
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 651 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 635 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 619 of file sixlowpan-header.h.
ns3::SixLowPanIphc::SixLowPanIphc | ( | void | ) |
Definition at line 792 of file sixlowpan-header.cc.
References m_baseFormat, and m_srcdstContextId.
ns3::SixLowPanIphc::SixLowPanIphc | ( | uint8_t | dispatch | ) |
Constructor.
[in] | dispatch | Dispatch value. |
Definition at line 799 of file sixlowpan-header.cc.
References m_baseFormat, and m_srcdstContextId.
|
virtual |
Deserialize the packet.
[in] | start | Buffer iterator. |
Implements ns3::Header.
Definition at line 1088 of file sixlowpan-header.cc.
References GetCid(), GetDam(), GetHlim(), GetM(), GetNh(), GetSac(), GetSam(), GetSerializedSize(), GetTf(), HC_COMPR_0, HC_COMPR_16, HC_COMPR_64, HC_INLINE, HLIM_COMPR_1, HLIM_COMPR_255, HLIM_COMPR_64, HLIM_INLINE, m_baseFormat, m_dscp, m_dstInlinePart, m_ecn, m_flowLabel, m_hopLimit, m_nextHeader, m_srcdstContextId, m_srcInlinePart, ns3::Buffer::Iterator::Read(), ns3::Buffer::Iterator::ReadNtohU16(), ns3::Buffer::Iterator::ReadU8(), visualizer.core::start(), TF_DSCP_ELIDED, TF_FL_ELIDED, and TF_FULL.
bool ns3::SixLowPanIphc::GetCid | ( | void | ) | const |
Get the CID (Context Identifier Extension) compression.
Definition at line 1263 of file sixlowpan-header.cc.
References m_baseFormat.
Referenced by Deserialize(), SixlowpanIphcStatefulImplTest::DoRun(), GetSerializedSize(), Print(), and Serialize().
bool ns3::SixLowPanIphc::GetDac | ( | void | ) | const |
Get the DAC (Destination Address Compression) compression.
Definition at line 1320 of file sixlowpan-header.cc.
References m_baseFormat.
Referenced by ns3::SixLowPanNetDevice::DecompressLowPanIphc(), SixlowpanIphcStatefulImplTest::DoRun(), GetSerializedSize(), and Print().
SixLowPanIphc::HeaderCompression_e ns3::SixLowPanIphc::GetDam | ( | void | ) | const |
Get the DAM (Destination Address Mode) compression.
Definition at line 1331 of file sixlowpan-header.cc.
References m_baseFormat.
Referenced by ns3::SixLowPanNetDevice::DecompressLowPanIphc(), Deserialize(), SixlowpanIphcStatefulImplTest::DoRun(), GetSerializedSize(), Print(), and Serialize().
uint8_t ns3::SixLowPanIphc::GetDscp | ( | void | ) | const |
Get the DSCP.
Definition at line 1388 of file sixlowpan-header.cc.
References m_dscp.
Referenced by ns3::SixLowPanNetDevice::DecompressLowPanIphc().
uint8_t ns3::SixLowPanIphc::GetDstContextId | ( | void | ) | const |
Get the DstContextId.
Definition at line 1366 of file sixlowpan-header.cc.
References m_srcdstContextId.
Referenced by ns3::SixLowPanNetDevice::DecompressLowPanIphc(), and SixlowpanIphcStatefulImplTest::DoRun().
const uint8_t * ns3::SixLowPanIphc::GetDstInlinePart | ( | void | ) | const |
brief Get the destination address inline part
Definition at line 1336 of file sixlowpan-header.cc.
References m_dstInlinePart.
Referenced by ns3::SixLowPanNetDevice::DecompressLowPanIphc().
uint8_t ns3::SixLowPanIphc::GetEcn | ( | void | ) | const |
Get the ECN.
Definition at line 1377 of file sixlowpan-header.cc.
References m_ecn.
Referenced by ns3::SixLowPanNetDevice::DecompressLowPanIphc().
uint32_t ns3::SixLowPanIphc::GetFlowLabel | ( | void | ) | const |
Get the Flow Label.
Definition at line 1399 of file sixlowpan-header.cc.
References m_flowLabel.
Referenced by ns3::SixLowPanNetDevice::DecompressLowPanIphc().
SixLowPanIphc::Hlim_e ns3::SixLowPanIphc::GetHlim | ( | void | ) | const |
Get the HLIM (Hop Limit) compression.
Definition at line 1252 of file sixlowpan-header.cc.
References m_baseFormat.
Referenced by Deserialize(), GetSerializedSize(), Print(), and Serialize().
uint8_t ns3::SixLowPanIphc::GetHopLimit | ( | void | ) | const |
Get the Hop Limit field.
Definition at line 1419 of file sixlowpan-header.cc.
References m_hopLimit.
Referenced by ns3::SixLowPanNetDevice::DecompressLowPanIphc().
|
virtual |
Return the instance type identifier.
Implements ns3::ObjectBase.
Definition at line 816 of file sixlowpan-header.cc.
References GetTypeId().
bool ns3::SixLowPanIphc::GetM | ( | void | ) | const |
Get the M (Multicast) compression.
Definition at line 1309 of file sixlowpan-header.cc.
References m_baseFormat.
Referenced by ns3::SixLowPanNetDevice::CompressLowPanIphc(), ns3::SixLowPanNetDevice::DecompressLowPanIphc(), Deserialize(), SixlowpanIphcStatefulImplTest::DoRun(), GetSerializedSize(), Print(), and Serialize().
uint8_t ns3::SixLowPanIphc::GetNextHeader | ( | void | ) | const |
Get the Next Header field.
Definition at line 1409 of file sixlowpan-header.cc.
References m_nextHeader.
Referenced by ns3::SixLowPanNetDevice::DecompressLowPanIphc().
bool ns3::SixLowPanIphc::GetNh | ( | void | ) | const |
Get the NH (Next Header) compression.
Definition at line 1241 of file sixlowpan-header.cc.
References m_baseFormat.
Referenced by ns3::SixLowPanNetDevice::DecompressLowPanIphc(), Deserialize(), GetSerializedSize(), Print(), and Serialize().
bool ns3::SixLowPanIphc::GetSac | ( | void | ) | const |
Get the SAC (Source Address Compression) compression.
Definition at line 1274 of file sixlowpan-header.cc.
References m_baseFormat.
Referenced by ns3::SixLowPanNetDevice::DecompressLowPanIphc(), Deserialize(), SixlowpanIphcStatefulImplTest::DoRun(), GetSerializedSize(), Print(), and Serialize().
SixLowPanIphc::HeaderCompression_e ns3::SixLowPanIphc::GetSam | ( | void | ) | const |
Get the SAM (Source Address Mode) compression.
Definition at line 1285 of file sixlowpan-header.cc.
References m_baseFormat.
Referenced by ns3::SixLowPanNetDevice::DecompressLowPanIphc(), Deserialize(), SixlowpanIphcStatefulImplTest::DoRun(), GetSerializedSize(), Print(), and Serialize().
|
virtual |
Get the serialized size of the packet.
Implements ns3::Header.
Definition at line 867 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().
uint8_t ns3::SixLowPanIphc::GetSrcContextId | ( | void | ) | const |
Get the SrcContextId.
Definition at line 1355 of file sixlowpan-header.cc.
References m_srcdstContextId.
Referenced by ns3::SixLowPanNetDevice::DecompressLowPanIphc(), and SixlowpanIphcStatefulImplTest::DoRun().
const uint8_t * ns3::SixLowPanIphc::GetSrcInlinePart | ( | void | ) | const |
brief Get the source address inline part
Definition at line 1290 of file sixlowpan-header.cc.
References m_srcInlinePart.
Referenced by ns3::SixLowPanNetDevice::DecompressLowPanIphc().
SixLowPanIphc::TrafficClassFlowLabel_e ns3::SixLowPanIphc::GetTf | ( | void | ) | const |
Get the TF (Traffic Class, Flow Label) compression.
Definition at line 1230 of file sixlowpan-header.cc.
References m_baseFormat.
Referenced by ns3::SixLowPanNetDevice::DecompressLowPanIphc(), Deserialize(), GetSerializedSize(), Print(), and Serialize().
|
static |
Get the type ID.
Definition at line 807 of file sixlowpan-header.cc.
References ns3::TypeId::SetParent().
Referenced by GetInstanceTypeId().
|
virtual |
os | output stream This method is used by Packet::Print to print the content of a header as ascii data to a c++ output stream. Although the header 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 821 of file sixlowpan-header.cc.
References GetCid(), GetDac(), GetDam(), GetHlim(), GetM(), GetNh(), GetSac(), GetSam(), GetTf(), HLIM_COMPR_1, HLIM_COMPR_64, HLIM_INLINE, m_dscp, m_ecn, m_flowLabel, m_hopLimit, m_srcdstContextId, TF_DSCP_ELIDED, TF_FL_ELIDED, and TF_FULL.
Referenced by ns3::operator<<().
|
virtual |
Serialize the packet.
[in] | start | Buffer iterator. |
Implements ns3::Header.
Definition at line 977 of file sixlowpan-header.cc.
References GetCid(), GetDam(), GetHlim(), GetM(), GetNh(), GetSac(), GetSam(), GetTf(), HC_COMPR_0, HC_COMPR_16, HC_COMPR_64, HC_INLINE, HLIM_INLINE, m_baseFormat, m_dscp, m_dstInlinePart, m_ecn, m_flowLabel, m_hopLimit, m_nextHeader, m_srcdstContextId, m_srcInlinePart, visualizer.core::start(), TF_DSCP_ELIDED, TF_FL_ELIDED, TF_FULL, ns3::Buffer::Iterator::Write(), ns3::Buffer::Iterator::WriteHtonU16(), and ns3::Buffer::Iterator::WriteU8().
void ns3::SixLowPanIphc::SetCid | ( | bool | cidField | ) |
Set the CID (Context Identifier Extension) compression.
[in] | cidField | False (no CID present), true (CID follows). |
Definition at line 1257 of file sixlowpan-header.cc.
References m_baseFormat.
Referenced by ns3::SixLowPanNetDevice::CompressLowPanIphc().
void ns3::SixLowPanIphc::SetDac | ( | bool | dacField | ) |
Set the DAC (Destination Address Compression) compression.
[in] | dacField | False (stateless), true (stateful). |
Definition at line 1314 of file sixlowpan-header.cc.
References m_baseFormat.
Referenced by ns3::SixLowPanNetDevice::CompressLowPanIphc().
void ns3::SixLowPanIphc::SetDam | ( | HeaderCompression_e | damField | ) |
Set the DAM (Destination Address Mode) compression.
[in] | damField | Depends on the DAC and M fields. |
Definition at line 1325 of file sixlowpan-header.cc.
References m_baseFormat.
Referenced by ns3::SixLowPanNetDevice::CompressLowPanIphc().
void ns3::SixLowPanIphc::SetDscp | ( | uint8_t | dscp | ) |
Set the DSCP (6bits).
[in] | dscp | Valid values are [0:63]. |
Definition at line 1382 of file sixlowpan-header.cc.
References m_dscp, and NS_ASSERT_MSG.
Referenced by ns3::SixLowPanNetDevice::CompressLowPanIphc().
void ns3::SixLowPanIphc::SetDstContextId | ( | uint8_t | dstContextId | ) |
Set the DstContextId.
[in] | dstContextId | Valid values are [0:15]. |
Definition at line 1360 of file sixlowpan-header.cc.
References m_srcdstContextId, and NS_ASSERT_MSG.
Referenced by ns3::SixLowPanNetDevice::CompressLowPanIphc().
void ns3::SixLowPanIphc::SetDstInlinePart | ( | uint8_t | dstInlinePart[16], |
uint8_t | size | ||
) |
brief Set the destination address inline part
dstInlinePart | The inline portion of the compressed destination address (16 bytes) |
size | The number of inline bytes |
Definition at line 1341 of file sixlowpan-header.cc.
References m_dstInlinePart, and NS_ASSERT_MSG.
Referenced by ns3::SixLowPanNetDevice::CompressLowPanIphc().
void ns3::SixLowPanIphc::SetEcn | ( | uint8_t | ecn | ) |
Set the ECN (2bits).
[in] | ecn | Valid values are [0:3]. |
Definition at line 1371 of file sixlowpan-header.cc.
References m_ecn, and NS_ASSERT_MSG.
Referenced by ns3::SixLowPanNetDevice::CompressLowPanIphc().
void ns3::SixLowPanIphc::SetFlowLabel | ( | uint32_t | flowLabel | ) |
Set the Flow Label (20bits).
[in] | flowLabel | Valid values are 20 bits long. |
Definition at line 1393 of file sixlowpan-header.cc.
References m_flowLabel, and NS_ASSERT_MSG.
Referenced by ns3::SixLowPanNetDevice::CompressLowPanIphc().
void ns3::SixLowPanIphc::SetHlim | ( | Hlim_e | hlimField | ) |
Set the HLIM (Hop Limit) compression.
[in] | hlimField | Hop Limit compression type |
Definition at line 1246 of file sixlowpan-header.cc.
References m_baseFormat.
Referenced by ns3::SixLowPanNetDevice::CompressLowPanIphc().
void ns3::SixLowPanIphc::SetHopLimit | ( | uint8_t | hopLimit | ) |
Set the Hop Limit field.
[in] | hopLimit | Hop Limit field. |
Definition at line 1414 of file sixlowpan-header.cc.
References m_hopLimit.
Referenced by ns3::SixLowPanNetDevice::CompressLowPanIphc().
void ns3::SixLowPanIphc::SetM | ( | bool | mField | ) |
Set the M (Multicast) compression.
[in] | mField | True if destination is multicast. |
Definition at line 1303 of file sixlowpan-header.cc.
References m_baseFormat.
Referenced by ns3::SixLowPanNetDevice::CompressLowPanIphc().
void ns3::SixLowPanIphc::SetNextHeader | ( | uint8_t | nextHeader | ) |
Set the Next Header field.
[in] | nextHeader | Next Header field. |
Definition at line 1404 of file sixlowpan-header.cc.
References m_nextHeader.
Referenced by ns3::SixLowPanNetDevice::CompressLowPanIphc().
void ns3::SixLowPanIphc::SetNh | ( | bool | nhField | ) |
Set the NH (Next Header) compression.
[in] | nhField | False (Next Header carried in-line), true (compressed NH). |
Definition at line 1235 of file sixlowpan-header.cc.
References m_baseFormat.
Referenced by ns3::SixLowPanNetDevice::CompressLowPanIphc().
void ns3::SixLowPanIphc::SetSac | ( | bool | sacField | ) |
Set the SAC (Source Address Compression) compression.
[in] | sacField | False (stateless), true (stateful). |
Definition at line 1268 of file sixlowpan-header.cc.
References m_baseFormat.
Referenced by ns3::SixLowPanNetDevice::CompressLowPanIphc().
void ns3::SixLowPanIphc::SetSam | ( | HeaderCompression_e | samField | ) |
Set the SAM (Source Address Mode) compression.
[in] | samField | Depends on the SAC. |
Definition at line 1279 of file sixlowpan-header.cc.
References m_baseFormat.
Referenced by ns3::SixLowPanNetDevice::CompressLowPanIphc().
void ns3::SixLowPanIphc::SetSrcContextId | ( | uint8_t | srcContextId | ) |
Set the SrcContextId.
[in] | srcContextId | Valid values are [0:15]. |
Definition at line 1349 of file sixlowpan-header.cc.
References m_srcdstContextId, and NS_ASSERT_MSG.
Referenced by ns3::SixLowPanNetDevice::CompressLowPanIphc().
void ns3::SixLowPanIphc::SetSrcInlinePart | ( | uint8_t | srcInlinePart[16], |
uint8_t | size | ||
) |
brief Set the source address inline part
srcInlinePart | The inline portion of the compressed source address (16 bytes) |
size | The number of inline bytes |
Definition at line 1295 of file sixlowpan-header.cc.
References m_srcInlinePart, and NS_ASSERT_MSG.
Referenced by ns3::SixLowPanNetDevice::CompressLowPanIphc().
void ns3::SixLowPanIphc::SetTf | ( | TrafficClassFlowLabel_e | tfField | ) |
Set the TF (Traffic Class, Flow Label) compression.
[in] | tfField | ECN, DSCP, Flow Label compression type. |
Definition at line 1224 of file sixlowpan-header.cc.
References m_baseFormat.
Referenced by ns3::SixLowPanNetDevice::CompressLowPanIphc().
|
private |
Dispatch + encoding fields.
Definition at line 918 of file sixlowpan-header.h.
Referenced by SixLowPanIphc(), Deserialize(), GetCid(), GetDac(), GetDam(), GetHlim(), GetM(), GetNh(), GetSac(), GetSam(), GetTf(), Serialize(), SetCid(), SetDac(), SetDam(), SetHlim(), SetM(), SetNh(), SetSac(), SetSam(), and SetTf().
|
private |
DSCP bits.
Definition at line 921 of file sixlowpan-header.h.
Referenced by Deserialize(), GetDscp(), Print(), Serialize(), and SetDscp().
|
private |
destination address inline part.
Definition at line 926 of file sixlowpan-header.h.
Referenced by Deserialize(), GetDstInlinePart(), Serialize(), and SetDstInlinePart().
|
private |
ECN bits.
Definition at line 920 of file sixlowpan-header.h.
Referenced by Deserialize(), GetEcn(), Print(), Serialize(), and SetEcn().
|
private |
Flow Label bits.
Definition at line 922 of file sixlowpan-header.h.
Referenced by Deserialize(), GetFlowLabel(), Print(), Serialize(), and SetFlowLabel().
|
private |
Hop Limit.
Definition at line 924 of file sixlowpan-header.h.
Referenced by Deserialize(), GetHopLimit(), Print(), Serialize(), and SetHopLimit().
|
private |
Next header.
Definition at line 923 of file sixlowpan-header.h.
Referenced by Deserialize(), GetNextHeader(), Serialize(), and SetNextHeader().
|
private |
Src and Dst Context ID.
Definition at line 919 of file sixlowpan-header.h.
Referenced by SixLowPanIphc(), Deserialize(), GetDstContextId(), GetSrcContextId(), Print(), Serialize(), SetDstContextId(), and SetSrcContextId().
|
private |
source address inline part.
Definition at line 925 of file sixlowpan-header.h.
Referenced by Deserialize(), GetSrcInlinePart(), Serialize(), and SetSrcInlinePart().