This class manages the serialization/deserialization of RrcConnectionRequest IE. More...
#include "lte-rrc-header.h"
Inheritance diagram for ns3::RrcConnectionRequestHeader:
Collaboration diagram for ns3::RrcConnectionRequestHeader:Public Member Functions | |
| RrcConnectionRequestHeader () | |
| ~RrcConnectionRequestHeader () override | |
| uint32_t | Deserialize (Buffer::Iterator bIterator) override |
| LteRrcSap::RrcConnectionRequest | GetMessage () const |
| Returns a RrcConnectionRequest IE from the values in the class attributes. | |
| std::bitset< 8 > | GetMmec () const |
| Get MMEC attribute. | |
| std::bitset< 32 > | GetMtmsi () const |
| Get M-TMSI attribute. | |
| void | PreSerialize () const override |
| This function serializes class attributes to m_serializationResult local Buffer. | |
| void | Print (std::ostream &os) const override |
| This function prints the object, for debugging purposes. | |
| void | SetMessage (LteRrcSap::RrcConnectionRequest msg) |
| Receives a RrcConnectionRequest IE and stores the contents into the class attributes. | |
Public Member Functions inherited from ns3::RrcAsn1Header | |
| RrcAsn1Header () | |
| int | GetMessageType () const |
| Get message type. | |
Public Member Functions inherited from ns3::Asn1Header | |
| Asn1Header () | |
| ~Asn1Header () override | |
| uint32_t | GetSerializedSize () const override |
| void | Serialize (Buffer::Iterator bIterator) const override |
Public Member Functions inherited from ns3::Header | |
| ~Header () override | |
| virtual uint32_t | Deserialize (Buffer::Iterator start, Buffer::Iterator end) |
| Deserialize the object from a buffer iterator. | |
Public Member Functions inherited from ns3::ObjectBase | |
| virtual | ~ObjectBase () |
| Virtual destructor. | |
| void | GetAttribute (std::string name, AttributeValue &value, bool permissive=false) const |
| Get the value of an attribute, raising fatal errors if unsuccessful. | |
| bool | GetAttributeFailSafe (std::string name, AttributeValue &value) const |
| Get the value of an attribute without raising errors. | |
| void | SetAttribute (std::string name, const AttributeValue &value) |
| Set a single attribute, raising fatal errors if unsuccessful. | |
| bool | SetAttributeFailSafe (std::string name, const AttributeValue &value) |
| Set a single attribute without raising errors. | |
| bool | TraceConnect (std::string name, std::string context, const CallbackBase &cb) |
| Connect a TraceSource to a Callback with a context. | |
| bool | TraceConnectWithoutContext (std::string name, const CallbackBase &cb) |
| Connect a TraceSource to a Callback without a context. | |
| bool | TraceDisconnect (std::string name, std::string context, const CallbackBase &cb) |
| Disconnect from a TraceSource a Callback previously connected with a context. | |
| bool | TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb) |
| Disconnect from a TraceSource a Callback previously connected without a context. | |
Static Public Member Functions | |
| static TypeId | GetTypeId () |
| Get the type ID. | |
Static Public Member Functions inherited from ns3::Asn1Header | |
| static TypeId | GetTypeId () |
| Get the type ID. | |
Static Public Member Functions inherited from ns3::Header | |
| static TypeId | GetTypeId () |
| Get the type ID. | |
Static Public Member Functions inherited from ns3::Chunk | |
| static TypeId | GetTypeId () |
| Get the type ID. | |
Static Public Member Functions inherited from ns3::ObjectBase | |
| static TypeId | GetTypeId () |
| Get the type ID. | |
Private Types | |
| enum | { EMERGENCY = 0 , HIGHPRIORITYACCESS , MT_ACCESS , MO_SIGNALLING , MO_DATA , SPARE3 , SPARE2 , SPARE1 } |
| EstablishmentCause enumeration. More... | |
Private Attributes | |
| enum ns3::RrcConnectionRequestHeader:: { ... } | m_establishmentCause |
| EstablishmentCause enumeration. | |
| std::bitset< 8 > | m_mmec |
| MMEC. | |
| std::bitset< 32 > | m_mTmsi |
| TMSI. | |
| std::bitset< 1 > | m_spare |
| spare bit | |
This class manages the serialization/deserialization of RrcConnectionRequest IE.
Definition at line 532 of file lte-rrc-header.h.
EstablishmentCause enumeration.
| Enumerator | |
|---|---|
| EMERGENCY | |
| HIGHPRIORITYACCESS | |
| MT_ACCESS | |
| MO_SIGNALLING | |
| MO_DATA | |
| SPARE3 | |
| SPARE2 | |
| SPARE1 | |
Definition at line 577 of file lte-rrc-header.h.
| ns3::RrcConnectionRequestHeader::RrcConnectionRequestHeader | ( | ) |
Definition at line 4759 of file lte-rrc-header.cc.
References m_establishmentCause, m_mmec, m_mTmsi, m_spare, and MO_SIGNALLING.
|
override |
Definition at line 4769 of file lte-rrc-header.cc.
|
overridevirtual |
| start | an iterator which points to where the header should read from. |
This method is used by Packet::RemoveHeader to re-create a header from the byte buffer of a packet. The data read is expected to match bit-for-bit the representation of this header in real networks.
Note that data is not actually removed from the buffer to which the iterator points. Both Packet::RemoveHeader() and Packet::PeekHeader() call Deserialize(), but only the RemoveHeader() has additional statements to remove the header bytes from the underlying buffer and associated metadata.
Implements ns3::RrcAsn1Header.
Definition at line 4834 of file lte-rrc-header.cc.
References ns3::Create(), ns3::Asn1Header::DeserializeBitstring(), ns3::Asn1Header::DeserializeChoice(), ns3::Asn1Header::DeserializeEnum(), ns3::Asn1Header::DeserializeSequence(), ns3::RrcUlCcchMessage::DeserializeUlCcchMessage(), ns3::Asn1Header::GetSerializedSize(), m_mmec, and m_mTmsi.
Here is the call graph for this function:| LteRrcSap::RrcConnectionRequest ns3::RrcConnectionRequestHeader::GetMessage | ( | ) | const |
Returns a RrcConnectionRequest IE from the values in the class attributes.
Definition at line 4881 of file lte-rrc-header.cc.
References ns3::Create(), m_mmec, m_mTmsi, and ns3::LteRrcSap::RrcConnectionRequest::ueIdentity.
Here is the call graph for this function:| std::bitset< 8 > ns3::RrcConnectionRequestHeader::GetMmec | ( | ) | const |
Get MMEC attribute.
Definition at line 4890 of file lte-rrc-header.cc.
References m_mmec.
Referenced by RrcConnectionRequestTestCase::DoRun().
Here is the caller graph for this function:| std::bitset< 32 > ns3::RrcConnectionRequestHeader::GetMtmsi | ( | ) | const |
Get M-TMSI attribute.
Definition at line 4896 of file lte-rrc-header.cc.
References m_mTmsi.
Referenced by RrcConnectionRequestTestCase::DoRun().
Here is the caller graph for this function:
|
static |
Get the type ID.
Definition at line 4774 of file lte-rrc-header.cc.
References ns3::TypeId::SetParent().
Here is the call graph for this function:
|
overridevirtual |
This function serializes class attributes to m_serializationResult local Buffer.
As ASN1 encoding produces a bitstream that does not have a fixed length, this function is needed to store the result, so its length can be retrieved with Header::GetSerializedSize() function. This method is pure virtual in this class (needs to be implemented in child classes) as the meaningful information elements are in the subclasses.
Implements ns3::RrcAsn1Header.
Definition at line 4791 of file lte-rrc-header.cc.
References ns3::Asn1Header::FinalizeSerialization(), m_establishmentCause, m_mmec, m_mTmsi, ns3::Asn1Header::m_serializationResult, ns3::Asn1Header::SerializeBitstring(), ns3::Asn1Header::SerializeChoice(), ns3::Asn1Header::SerializeEnum(), ns3::Asn1Header::SerializeSequence(), and ns3::RrcUlCcchMessage::SerializeUlCcchMessage().
Here is the call graph for this function:
|
overridevirtual |
This function prints the object, for debugging purposes.
| os | The output stream to use (i.e. std::cout) |
Reimplemented from ns3::RrcAsn1Header.
Definition at line 4782 of file lte-rrc-header.cc.
References m_establishmentCause, m_mmec, m_mTmsi, and m_spare.
| void ns3::RrcConnectionRequestHeader::SetMessage | ( | LteRrcSap::RrcConnectionRequest | msg | ) |
Receives a RrcConnectionRequest IE and stores the contents into the class attributes.
| msg | The information element to parse |
Definition at line 4873 of file lte-rrc-header.cc.
References ns3::Create(), ns3::Asn1Header::m_isDataSerialized, m_mmec, and m_mTmsi.
Referenced by RrcConnectionRequestTestCase::DoRun(), and ns3::LteUeRrcProtocolReal::DoSendRrcConnectionRequest().
Here is the call graph for this function:
Here is the caller graph for this function:| enum { ... } ns3::RrcConnectionRequestHeader::m_establishmentCause |
EstablishmentCause enumeration.
the establishent cause
Referenced by RrcConnectionRequestHeader(), PreSerialize(), and Print().
|
private |
MMEC.
Definition at line 573 of file lte-rrc-header.h.
Referenced by RrcConnectionRequestHeader(), Deserialize(), GetMessage(), GetMmec(), PreSerialize(), Print(), and SetMessage().
|
private |
TMSI.
Definition at line 574 of file lte-rrc-header.h.
Referenced by RrcConnectionRequestHeader(), Deserialize(), GetMessage(), GetMtmsi(), PreSerialize(), Print(), and SetMessage().
|
private |
spare bit
Definition at line 589 of file lte-rrc-header.h.
Referenced by RrcConnectionRequestHeader(), and Print().