This class manages the serialization/deserialization of RrcConnectionSetup IE. More...
#include "lte-rrc-header.h"
Inheritance diagram for ns3::RrcConnectionSetupHeader:
Collaboration diagram for ns3::RrcConnectionSetupHeader:Public Member Functions | |
| RrcConnectionSetupHeader () | |
| ~RrcConnectionSetupHeader () override | |
| uint32_t | Deserialize (Buffer::Iterator bIterator) override |
| std::list< LteRrcSap::DrbToAddMod > | GetDrbToAddModList () const |
| Gets m_radioResourceConfigDedicated.drbToAddModList. | |
| std::list< uint8_t > | GetDrbToReleaseList () const |
| Gets m_radioResourceConfigDedicated.drbToReleaseList. | |
| LteRrcSap::RrcConnectionSetup | GetMessage () const |
| Returns a RrcConnectionSetup IE from the values in the class attributes. | |
| LteRrcSap::PhysicalConfigDedicated | GetPhysicalConfigDedicated () const |
| Gets m_radioResourceConfigDedicated.physicalConfigDedicated. | |
| LteRrcSap::RadioResourceConfigDedicated | GetRadioResourceConfigDedicated () const |
| Getter for m_radioResourceConfigDedicated. | |
| uint8_t | GetRrcTransactionIdentifier () const |
| Getter for m_rrcTransactionIdentifier. | |
| std::list< LteRrcSap::SrbToAddMod > | GetSrbToAddModList () const |
| Gets m_radioResourceConfigDedicated.srbToAddModList. | |
| bool | HavePhysicalConfigDedicated () const |
| Gets m_radioResourceConfigDedicated.havePhysicalConfigDedicated. | |
| 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::RrcConnectionSetup msg) |
| Receives a RrcConnectionSetup 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. | |
Private Attributes | |
| LteRrcSap::RadioResourceConfigDedicated | m_radioResourceConfigDedicated |
| radio resource config dedicated | |
| uint8_t | m_rrcTransactionIdentifier |
| RRC transaction identifier. | |
This class manages the serialization/deserialization of RrcConnectionSetup IE.
Definition at line 595 of file lte-rrc-header.h.
| ns3::RrcConnectionSetupHeader::RrcConnectionSetupHeader | ( | ) |
Definition at line 4902 of file lte-rrc-header.cc.
|
override |
Definition at line 4906 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 4958 of file lte-rrc-header.cc.
References ns3::Create(), ns3::Asn1Header::DeserializeChoice(), ns3::RrcDlCcchMessage::DeserializeDlCcchMessage(), ns3::Asn1Header::DeserializeInteger(), ns3::Asn1Header::DeserializeNull(), ns3::RrcAsn1Header::DeserializeRadioResourceConfigDedicated(), ns3::Asn1Header::DeserializeSequence(), ns3::Asn1Header::GetSerializedSize(), m_radioResourceConfigDedicated, and m_rrcTransactionIdentifier.
Here is the call graph for this function:| std::list< LteRrcSap::DrbToAddMod > ns3::RrcConnectionSetupHeader::GetDrbToAddModList | ( | ) | const |
Gets m_radioResourceConfigDedicated.drbToAddModList.
Definition at line 5056 of file lte-rrc-header.cc.
References ns3::LteRrcSap::RadioResourceConfigDedicated::drbToAddModList, and m_radioResourceConfigDedicated.
| std::list< uint8_t > ns3::RrcConnectionSetupHeader::GetDrbToReleaseList | ( | ) | const |
Gets m_radioResourceConfigDedicated.drbToReleaseList.
Definition at line 5062 of file lte-rrc-header.cc.
References ns3::LteRrcSap::RadioResourceConfigDedicated::drbToReleaseList, and m_radioResourceConfigDedicated.
| LteRrcSap::RrcConnectionSetup ns3::RrcConnectionSetupHeader::GetMessage | ( | ) | const |
Returns a RrcConnectionSetup IE from the values in the class attributes.
Definition at line 5029 of file lte-rrc-header.cc.
References ns3::Create(), m_radioResourceConfigDedicated, m_rrcTransactionIdentifier, and ns3::LteRrcSap::RrcConnectionSetup::rrcTransactionIdentifier.
Here is the call graph for this function:| LteRrcSap::PhysicalConfigDedicated ns3::RrcConnectionSetupHeader::GetPhysicalConfigDedicated | ( | ) | const |
Gets m_radioResourceConfigDedicated.physicalConfigDedicated.
Definition at line 5068 of file lte-rrc-header.cc.
References m_radioResourceConfigDedicated, and ns3::LteRrcSap::RadioResourceConfigDedicated::physicalConfigDedicated.
| LteRrcSap::RadioResourceConfigDedicated ns3::RrcConnectionSetupHeader::GetRadioResourceConfigDedicated | ( | ) | const |
Getter for m_radioResourceConfigDedicated.
Definition at line 5074 of file lte-rrc-header.cc.
References m_radioResourceConfigDedicated.
Referenced by RrcConnectionSetupTestCase::DoRun().
Here is the caller graph for this function:| uint8_t ns3::RrcConnectionSetupHeader::GetRrcTransactionIdentifier | ( | ) | const |
Getter for m_rrcTransactionIdentifier.
Definition at line 5038 of file lte-rrc-header.cc.
References m_rrcTransactionIdentifier.
Referenced by RrcConnectionSetupTestCase::DoRun().
Here is the caller graph for this function:| std::list< LteRrcSap::SrbToAddMod > ns3::RrcConnectionSetupHeader::GetSrbToAddModList | ( | ) | const |
Gets m_radioResourceConfigDedicated.srbToAddModList.
Definition at line 5050 of file lte-rrc-header.cc.
References m_radioResourceConfigDedicated, and ns3::LteRrcSap::RadioResourceConfigDedicated::srbToAddModList.
| bool ns3::RrcConnectionSetupHeader::HavePhysicalConfigDedicated | ( | ) | const |
Gets m_radioResourceConfigDedicated.havePhysicalConfigDedicated.
Definition at line 5044 of file lte-rrc-header.cc.
References ns3::LteRrcSap::RadioResourceConfigDedicated::havePhysicalConfigDedicated, and m_radioResourceConfigDedicated.
|
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 4919 of file lte-rrc-header.cc.
References ns3::Asn1Header::FinalizeSerialization(), m_radioResourceConfigDedicated, m_rrcTransactionIdentifier, ns3::Asn1Header::m_serializationResult, ns3::Asn1Header::SerializeChoice(), ns3::RrcDlCcchMessage::SerializeDlCcchMessage(), ns3::Asn1Header::SerializeInteger(), ns3::RrcAsn1Header::SerializeRadioResourceConfigDedicated(), and ns3::Asn1Header::SerializeSequence().
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 4911 of file lte-rrc-header.cc.
References m_radioResourceConfigDedicated, m_rrcTransactionIdentifier, and ns3::RrcAsn1Header::Print().
Here is the call graph for this function:| void ns3::RrcConnectionSetupHeader::SetMessage | ( | LteRrcSap::RrcConnectionSetup | msg | ) |
Receives a RrcConnectionSetup IE and stores the contents into the class attributes.
| msg | The information element to parse |
Definition at line 5021 of file lte-rrc-header.cc.
References ns3::Create(), ns3::Asn1Header::m_isDataSerialized, m_radioResourceConfigDedicated, and m_rrcTransactionIdentifier.
Referenced by RrcConnectionSetupTestCase::DoRun(), and ns3::LteEnbRrcProtocolReal::DoSendRrcConnectionSetup().
Here is the call graph for this function:
Here is the caller graph for this function:
|
mutableprivate |
radio resource config dedicated
Definition at line 663 of file lte-rrc-header.h.
Referenced by Deserialize(), GetDrbToAddModList(), GetDrbToReleaseList(), GetMessage(), GetPhysicalConfigDedicated(), GetRadioResourceConfigDedicated(), GetSrbToAddModList(), HavePhysicalConfigDedicated(), PreSerialize(), Print(), and SetMessage().
|
private |
RRC transaction identifier.
Definition at line 661 of file lte-rrc-header.h.
Referenced by Deserialize(), GetMessage(), GetRrcTransactionIdentifier(), PreSerialize(), Print(), and SetMessage().