6LoWPAN context container for 6LoWPAN ND. More...
#include "sixlowpan-nd-context.h"
Public Member Functions | |
| SixLowPanNdContext () | |
| Constructor. | |
| SixLowPanNdContext (bool flagC, uint8_t cid, Time time, Ipv6Prefix context) | |
| Constructor. | |
| ~SixLowPanNdContext () | |
| Destructor. | |
| uint8_t | GetCid () const |
| Get the context identifier. | |
| uint8_t | GetContextLen () const |
| Get the context length. | |
| Ipv6Prefix | GetContextPrefix () const |
| Get the 6LoWPAN context prefix. | |
| Time | GetLastUpdateTime () |
| Get the last update time. | |
| Time | GetValidTime () const |
| Get the valid lifetime. | |
| bool | IsFlagC () const |
| Is compression flag ? | |
| void | PrintContext (Ptr< OutputStreamWrapper > stream) |
| Print the 6LoWPAN context. | |
| void | SetCid (uint8_t cid) |
| Set the context identifier. | |
| void | SetContextPrefix (Ipv6Prefix context) |
| Set the 6LoWPAN context prefix. | |
| void | SetFlagC (bool c) |
| Set the compression flag. | |
| void | SetLastUpdateTime (Time time) |
| Set the last update time. | |
| void | SetValidTime (Time time) |
| Set the valid lifetime. | |
| Public Member Functions inherited from ns3::SimpleRefCount< SixLowPanNdContext > | |
| SimpleRefCount () | |
| Default constructor. | |
| uint32_t | GetReferenceCount () const |
| Get the reference count of the object. | |
| SimpleRefCount & | operator= (const SimpleRefCount &o) |
| Assignment operator. | |
| void | Ref () const |
| Increment the reference count. | |
| void | Unref () const |
| Decrement the reference count. | |
Private Attributes | |
| bool | m_c |
| The compression flag, indicates that this context is valid for use in compression. | |
| uint8_t | m_cid |
| The context identifier value. | |
| Ipv6Prefix | m_context |
| The context prefix value. | |
| Time | m_lastUpdateTime |
| The context last update time. | |
| Time | m_validTime |
| The valid lifetime value. | |
6LoWPAN context container for 6LoWPAN ND.
Definition at line 30 of file sixlowpan-nd-context.h.
| ns3::SixLowPanNdContext::SixLowPanNdContext | ( | ) |
Constructor.
Definition at line 23 of file sixlowpan-nd-context.cc.
References m_c, m_cid, m_context, m_validTime, NS_LOG_FUNCTION, and ns3::Seconds().
| ns3::SixLowPanNdContext::SixLowPanNdContext | ( | bool | flagC, |
| uint8_t | cid, | ||
| Time | time, | ||
| Ipv6Prefix | context ) |
Constructor.
| flagC | compression flag |
| cid | context identifier ( 0 <= x <= 15) |
| time | valid lifetime of context |
| context | 6LoWPAN context advertised |
Definition at line 32 of file sixlowpan-nd-context.cc.
References m_c, m_cid, m_context, NS_LOG_FUNCTION, and SetValidTime().
| ns3::SixLowPanNdContext::~SixLowPanNdContext | ( | ) |
| uint8_t ns3::SixLowPanNdContext::GetCid | ( | ) | const |
Get the context identifier.
Definition at line 68 of file sixlowpan-nd-context.cc.
References m_cid, and NS_LOG_FUNCTION.
Referenced by PrintContext().
| uint8_t ns3::SixLowPanNdContext::GetContextLen | ( | ) | const |
Get the context length.
Definition at line 47 of file sixlowpan-nd-context.cc.
References m_context, and NS_LOG_FUNCTION.
Referenced by PrintContext().
| Ipv6Prefix ns3::SixLowPanNdContext::GetContextPrefix | ( | ) | const |
Get the 6LoWPAN context prefix.
Definition at line 124 of file sixlowpan-nd-context.cc.
References m_context, and NS_LOG_FUNCTION.
Referenced by PrintContext().
| Time ns3::SixLowPanNdContext::GetLastUpdateTime | ( | ) |
Get the last update time.
Definition at line 117 of file sixlowpan-nd-context.cc.
References m_lastUpdateTime, and NS_LOG_FUNCTION.
| Time ns3::SixLowPanNdContext::GetValidTime | ( | ) | const |
Get the valid lifetime.
Definition at line 83 of file sixlowpan-nd-context.cc.
References m_validTime, and NS_LOG_FUNCTION.
Referenced by PrintContext().
| bool ns3::SixLowPanNdContext::IsFlagC | ( | ) | const |
Is compression flag ?
Definition at line 54 of file sixlowpan-nd-context.cc.
References m_c, and NS_LOG_FUNCTION.
Referenced by PrintContext().
| void ns3::SixLowPanNdContext::PrintContext | ( | Ptr< OutputStreamWrapper > | stream | ) |
Print the 6LoWPAN context.
| stream | the ostream the 6LoWPAN context is printed to |
Definition at line 138 of file sixlowpan-nd-context.cc.
References GetCid(), GetContextLen(), GetContextPrefix(), GetValidTime(), IsFlagC(), and NS_LOG_FUNCTION.
| void ns3::SixLowPanNdContext::SetCid | ( | uint8_t | cid | ) |
Set the context identifier.
| cid | the context identifier value |
Definition at line 75 of file sixlowpan-nd-context.cc.
References m_cid, NS_ASSERT, and NS_LOG_FUNCTION.
| void ns3::SixLowPanNdContext::SetContextPrefix | ( | Ipv6Prefix | context | ) |
Set the 6LoWPAN context prefix.
| context | the context prefix value |
Definition at line 131 of file sixlowpan-nd-context.cc.
References m_context, and NS_LOG_FUNCTION.
| void ns3::SixLowPanNdContext::SetFlagC | ( | bool | c | ) |
Set the compression flag.
| c | the compression flag |
Definition at line 61 of file sixlowpan-nd-context.cc.
References m_c, and NS_LOG_FUNCTION.
| void ns3::SixLowPanNdContext::SetLastUpdateTime | ( | Time | time | ) |
Set the last update time.
| time | the last update time |
Definition at line 110 of file sixlowpan-nd-context.cc.
References m_lastUpdateTime, and NS_LOG_FUNCTION.
| void ns3::SixLowPanNdContext::SetValidTime | ( | Time | time | ) |
Set the valid lifetime.
| time | the valid lifetime value |
Definition at line 91 of file sixlowpan-nd-context.cc.
References m_validTime, ns3::MilliSeconds(), NS_LOG_FUNCTION, NS_LOG_WARN, and remainder.
Referenced by SixLowPanNdContext().
|
private |
The compression flag, indicates that this context is valid for use in compression.
Definition at line 128 of file sixlowpan-nd-context.h.
Referenced by SixLowPanNdContext(), SixLowPanNdContext(), IsFlagC(), and SetFlagC().
|
private |
The context identifier value.
Definition at line 133 of file sixlowpan-nd-context.h.
Referenced by SixLowPanNdContext(), SixLowPanNdContext(), GetCid(), and SetCid().
|
private |
The context prefix value.
Definition at line 148 of file sixlowpan-nd-context.h.
Referenced by SixLowPanNdContext(), SixLowPanNdContext(), GetContextLen(), GetContextPrefix(), and SetContextPrefix().
|
private |
The context last update time.
Definition at line 143 of file sixlowpan-nd-context.h.
Referenced by GetLastUpdateTime(), and SetLastUpdateTime().
|
private |
The valid lifetime value.
Definition at line 138 of file sixlowpan-nd-context.h.
Referenced by SixLowPanNdContext(), GetValidTime(), and SetValidTime().