#include <lte-rrc-header.h>
Public Member Functions | |
RrcConnectionRequestHeader () | |
~RrcConnectionRequestHeader () | |
uint32_t | Deserialize (Buffer::Iterator bIterator) |
LteRrcSap::RrcConnectionRequest | GetMessage () const |
std::bitset< 8 > | GetMmec () const |
std::bitset< 32 > | GetMtmsi () const |
void | PreSerialize () const |
void | Print (std::ostream &os) const |
void | SetMessage (LteRrcSap::RrcConnectionRequest msg) |
![]() | |
RrcAsn1Header () | |
int | GetMessageType () |
![]() | |
Asn1Header () | |
virtual | ~Asn1Header () |
uint32_t | GetSerializedSize (void) const |
void | Serialize (Buffer::Iterator bIterator) const |
![]() | |
virtual | ~Header () |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
Private Types | |
enum | { EMERGENCY = 0, HIGHPRIORITYACCESS, MT_ACCESS, MO_SIGNALLING, MO_DATA, SPARE3, SPARE2, SPARE1 } |
Private Attributes | |
enum ns3::RrcConnectionRequestHeader:: { ... } | m_establishmentCause |
std::bitset< 8 > | m_mmec |
std::bitset< 32 > | m_mTmsi |
std::bitset< 1 > | m_spare |
Additional Inherited Members | |
![]() | |
int | m_messageType |
Stores RRC message type, according to 3GPP TS 36.331. |
This class manages the serialization/deserialization of RrcConnectionRequest IE
Definition at line 180 of file lte-rrc-header.h.
|
private |
Definition at line 219 of file lte-rrc-header.h.
ns3::RrcConnectionRequestHeader::RrcConnectionRequestHeader | ( | ) |
Definition at line 3856 of file lte-rrc-header.cc.
References m_establishmentCause, m_mmec, m_mTmsi, m_spare, and MO_SIGNALLING.
ns3::RrcConnectionRequestHeader::~RrcConnectionRequestHeader | ( | ) |
Definition at line 3865 of file lte-rrc-header.cc.
|
virtual |
start | an iterator which points to where the header should written. |
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.
Reimplemented from ns3::RrcUlCcchMessage.
Definition at line 3931 of file lte-rrc-header.cc.
References ns3::Asn1Header::DeserializeBitstring(), ns3::Asn1Header::DeserializeChoice(), ns3::Asn1Header::DeserializeEnum(), ns3::Asn1Header::DeserializeSequence(), ns3::RrcUlCcchMessage::DeserializeUlCcchMessage(), ns3::Asn1Header::GetSerializedSize(), m_mmec, and m_mTmsi.
LteRrcSap::RrcConnectionRequest ns3::RrcConnectionRequestHeader::GetMessage | ( | ) | const |
Returns a RrcConnectionRequest IE from the values in the class attributes
Definition at line 3978 of file lte-rrc-header.cc.
References m_mmec, m_mTmsi, and ns3::LteRrcSap::RrcConnectionRequest::ueIdentity.
Referenced by ns3::LteEnbRrcProtocolReal::DoReceivePdcpPdu().
std::bitset< 8 > ns3::RrcConnectionRequestHeader::GetMmec | ( | ) | const |
Get MMEC attribute
Definition at line 3987 of file lte-rrc-header.cc.
References m_mmec.
std::bitset< 32 > ns3::RrcConnectionRequestHeader::GetMtmsi | ( | ) | const |
Get M-TMSI attribute
Definition at line 3993 of file lte-rrc-header.cc.
References m_mTmsi.
|
static |
Reimplemented from ns3::RrcAsn1Header.
Definition at line 3870 of file lte-rrc-header.cc.
References ns3::TypeId::SetParent().
|
virtual |
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 meningful information elements are in the subclasses.
Reimplemented from ns3::RrcUlCcchMessage.
Definition at line 3888 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().
|
virtual |
os | output 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 |
Reimplemented from ns3::RrcUlCcchMessage.
Definition at line 3879 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 3970 of file lte-rrc-header.cc.
References ns3::Asn1Header::m_isDataSerialized, m_mmec, m_mTmsi, and ns3::LteRrcSap::RrcConnectionRequest::ueIdentity.
Referenced by ns3::RrcConnectionRequestTestCase::DoRun(), and ns3::LteUeRrcProtocolReal::DoSendRrcConnectionRequest().
enum { ... } ns3::RrcConnectionRequestHeader::m_establishmentCause |
Referenced by PreSerialize(), Print(), and RrcConnectionRequestHeader().
|
private |
Definition at line 217 of file lte-rrc-header.h.
Referenced by Deserialize(), GetMessage(), GetMmec(), PreSerialize(), Print(), RrcConnectionRequestHeader(), and SetMessage().
|
private |
Definition at line 218 of file lte-rrc-header.h.
Referenced by Deserialize(), GetMessage(), GetMtmsi(), PreSerialize(), Print(), RrcConnectionRequestHeader(), and SetMessage().
|
private |
Definition at line 224 of file lte-rrc-header.h.
Referenced by Print(), and RrcConnectionRequestHeader().