23 #include "ns3/lte-rlc-header.h" 34 m_sequenceNumber (0xfffa)
110 return lengthIndicator;
138 os <<
" E=" << (uint16_t)(*it1);
148 os << (uint16_t)(*it1);
158 os << (uint16_t)(*it2) <<
" ";
176 (((*it1) << 2) & 0x04) |
184 uint16_t oddLi, evenLi;
199 i.
WriteU8 ( ((oddE << 7) & 0x80) | ((oddLi >> 4) & 0x007F) );
200 i.
WriteU8 ( ((oddLi << 4) & 0x00F0) | ((evenE << 3) & 0x08) | ((evenLi >> 8) & 0x0007) );
208 i.
WriteU8 ( ((oddE << 7) & 0x80) | ((oddLi >> 4) & 0x007F) );
209 i.
WriteU8 ( ((oddLi << 4) & 0x00F0) );
220 uint8_t extensionBit;
228 extensionBit = (byte_1 & 0x04) >> 2;
236 uint16_t oddLi, evenLi;
245 oddE = (byte_1 & 0x80) >> 7;
246 oddLi = ((byte_1 & 0x7F) << 4) | ((byte_2 & 0xF0) >> 4);
257 evenE = (byte_2 & 0x08) >> 3;
258 evenLi = ((byte_2 & 0x07) << 8) | (byte_3 & 0xFF);
uint16_t GetValue() const
Extracts the numeric value of the sequence number.
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
iterator in a Buffer instance
Every class exported by the ns3 library is enclosed in the ns3 namespace.
void WriteU8(uint8_t data)
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.