ITS
|
#include <CommonHeader.h>
Public Member Functions | |
CommonHeader () | |
CommonHeader Default constructor. More... | |
CommonHeader (quint8 nextHeader, enum e_headerType headerType, quint8 headerSubType, TrafficClass trafficClass, quint8 flags, quint16 payloadLength, quint8 maximumHopLimit) | |
CommonHeader Initialization constructor. More... | |
CommonHeader (quint8 nextHeader, quint8 headerType_HeaderSubType, TrafficClass trafficClass, quint8 flags, quint16 payloadLength, quint8 maximumHopLimit) | |
CommonHeader Initialization constructor. More... | |
CommonHeader (const CommonHeader &other) | |
CommonHeader Copy constructor. More... | |
CommonHeader (sniff_commonHeader_t ch) | |
CommonHeader CommonHeader initialization constructor. More... | |
QByteArray | toHex () |
toHex Create a QByteArray containing the hexadecimal format of the CommonHeader. More... | |
quint8 | nextHeader () const |
nextHeader Next header field getter. More... | |
quint8 | headerType_HeaderSubType () const |
headerType_HeaderSubType Header type + header sub-type fields getter. More... | |
quint8 | headerType () const |
headerType Header field getter. More... | |
quint8 | headerSubType () const |
headerSubType Header sub-type field getter. More... | |
TrafficClass | trafficClass () const |
trafficClass Traffic class field getter. More... | |
quint8 | flags () const |
flags Flags field getter. More... | |
quint8 | itsGnIsMobile () const |
itsGnIsMobile First bit of flags field getter. More... | |
quint16 | payloadLength () const |
payloadLength Payload length field getter. More... | |
quint8 | maximumHopLimit () const |
maximumHopLimit Maximum hop limit field getter. More... | |
Private Attributes | |
quint8 | m_nextHeader |
quint8 | m_headerType_HeaderSubType |
TrafficClass | m_trafficClass |
quint8 | m_flags |
quint16 | m_payloadLength |
quint8 | m_maximumHopLimit |
quint8 | m_reserved |
Definition at line 40 of file CommonHeader.h.
The e_headerSubTypeAny enum defines the Header sub-type values of ANY type.
Enumerator | |
---|---|
headerSubTypeAny_unspecified | Unspecified. |
Definition at line 78 of file CommonHeader.h.
The e_headerSubTypeAny enum defines the Header sub-type values of Beacon type.
Enumerator | |
---|---|
headerSubTypeBeacon_unspecified | Unspecified. |
Definition at line 85 of file CommonHeader.h.
The e_headerSubTypeAny enum defines the Header sub-type values of Beacon type.
Enumerator | |
---|---|
headerSubTypeGeoAnycast_circle | Circle. |
headerSubTypeGeoAnycast_rectangle | Rectange. |
headerSubTypeGeoAnycast_ellipse | Ellipse. |
Definition at line 99 of file CommonHeader.h.
The e_headerSubTypeAny enum defines the Header sub-type values of Beacon type.
Enumerator | |
---|---|
headerSubTypeGeoBroadcast_circle | Circle. |
headerSubTypeGeoBroadcast_rectangle | Rectangle. |
headerSubTypeGeoBroadcast_ellipse | Ellipse. |
Definition at line 108 of file CommonHeader.h.
The e_headerSubTypeAny enum defines the Header sub-type values of Beacon type.
Enumerator | |
---|---|
headerSubTypeGeoUnicast_unspecified | Unspecified. |
Definition at line 92 of file CommonHeader.h.
The e_headerSubTypeAny enum defines the Header sub-type values of Beacon type.
Enumerator | |
---|---|
headerSubTypeLocationService_Request | LSRequest. |
headerSubTypeLocationService_Reply | LSReply. |
Definition at line 125 of file CommonHeader.h.
The e_headerSubTypeAny enum defines the Header sub-type values of Beacon type.
Enumerator | |
---|---|
headerSubTypeTopologicallyScopedBroadcast_singleHop | SHB. |
headerSubTypeTopologicallyScopedBroadcast_multiHop | TSB. |
Definition at line 117 of file CommonHeader.h.
The e_headerType enum defines the Header type values.
Definition at line 65 of file CommonHeader.h.
The e_helper enum is used to help to have sizes.
Enumerator | |
---|---|
helper_size | Size of the CH in bytes. |
Definition at line 46 of file CommonHeader.h.
The e_upperProtocolEntity enum defines the Next header values.
Definition at line 54 of file CommonHeader.h.
CommonHeader::CommonHeader | ( | ) |
CommonHeader Default constructor.
Definition at line 3 of file CommonHeader.cpp.
References headerSubTypeAny_unspecified, headerType_any, m_flags, m_headerType_HeaderSubType, m_maximumHopLimit, m_nextHeader, m_payloadLength, m_reserved, m_trafficClass, and nextHeaderType_any.
CommonHeader::CommonHeader | ( | quint8 | nextHeader, |
enum e_headerType | headerType, | ||
quint8 | headerSubType, | ||
TrafficClass | trafficClass, | ||
quint8 | flags, | ||
quint16 | payloadLength, | ||
quint8 | maximumHopLimit | ||
) |
CommonHeader Initialization constructor.
nextHeader | NextHeader field |
headerType | HeaderType field |
headerSubType | HeaderSubType field |
trafficClass | TrafficClass field |
flags | Flags field |
payloadLength | PayloadLength field |
maximumHopLimit | MaximumHopLimit field |
Definition at line 15 of file CommonHeader.cpp.
References flags(), headerSubType(), headerType(), m_flags, m_headerType_HeaderSubType, m_maximumHopLimit, m_nextHeader, m_payloadLength, m_reserved, m_trafficClass, maximumHopLimit(), nextHeader(), payloadLength(), and trafficClass().
CommonHeader::CommonHeader | ( | quint8 | nextHeader, |
quint8 | headerType_HeaderSubType, | ||
TrafficClass | trafficClass, | ||
quint8 | flags, | ||
quint16 | payloadLength, | ||
quint8 | maximumHopLimit | ||
) |
CommonHeader Initialization constructor.
nextHeader | NextHeader field |
headerType_HeaderSubType | HeaderType_HeaderSubType field |
trafficClass | TrafficClass field |
flags | Flags field |
payloadLength | PayloadLength field |
maximumHopLimit | MaximumHopLimit field |
Definition at line 27 of file CommonHeader.cpp.
References flags(), headerType_HeaderSubType(), m_flags, m_headerType_HeaderSubType, m_maximumHopLimit, m_nextHeader, m_payloadLength, m_reserved, m_trafficClass, maximumHopLimit(), nextHeader(), payloadLength(), and trafficClass().
CommonHeader::CommonHeader | ( | const CommonHeader & | other | ) |
CommonHeader Copy constructor.
other | The CommonHeader to copy. |
Definition at line 38 of file CommonHeader.cpp.
References flags(), headerType_HeaderSubType(), m_flags, m_headerType_HeaderSubType, m_maximumHopLimit, m_nextHeader, m_payloadLength, m_reserved, m_trafficClass, maximumHopLimit(), nextHeader(), payloadLength(), and trafficClass().
CommonHeader::CommonHeader | ( | sniff_commonHeader_t | ch | ) |
CommonHeader CommonHeader initialization constructor.
ch | The C version of the class. |
Definition at line 49 of file CommonHeader.cpp.
References sniff_commonHeader_s::flags, sniff_commonHeader_s::headerType_HeaderSubType, m_flags, m_headerType_HeaderSubType, m_maximumHopLimit, m_nextHeader, m_payloadLength, m_trafficClass, sniff_commonHeader_s::maximumHopLimit, sniff_commonHeader_s::nextHeader, sniff_commonHeader_s::payloadLength, sniff_trafficClass_s::SCF_ChannelOffload_TCID, SWAP16, and sniff_commonHeader_s::trafficClass.
|
inline |
flags Flags field getter.
Definition at line 208 of file CommonHeader.h.
References m_flags.
Referenced by CommonHeader().
|
inline |
headerSubType Header sub-type field getter.
Definition at line 198 of file CommonHeader.h.
References m_headerType_HeaderSubType.
Referenced by CBFPacketEntry::CBFPacketEntry(), CommonHeader(), GeoNet::commonHeaderProcessing(), CBFPacketEntry::execute(), GeoNet::gacPacketProcessing(), GeoNet::gbcPacketProcessing(), GeoNet::greedy(), PacketBuffersEntry::lsReplyPacket(), PacketBuffersEntry::lsRequestPacket(), CBFPacketEntry::operator=(), PacketBuffersEntry::operator=(), PacketBuffersEntry::operator==(), PacketBuffersEntry::PacketBuffersEntry(), GeoNet::sendGAC(), GeoNet::sendGBC(), CBFPacketEntry::sendPacket(), PacketBuffersEntry::shbPacket(), PacketBuffersEntry::tsbPacket(), and BroadcastForwardingPacketEntry::updateSourcePacketSoPv().
|
inline |
headerType Header field getter.
Definition at line 193 of file CommonHeader.h.
References m_headerType_HeaderSubType.
Referenced by PacketBuffersEntry::beaconPacket(), CBFPacketEntry::CBFPacketEntry(), CommonHeader(), GeoNet::commonHeaderProcessing(), CBFPacketEntry::execute(), PacketBuffersEntry::gacPacket(), PacketBuffersEntry::gbcPacket(), GeoNet::greedy(), PacketBuffersEntry::gucPacket(), PacketBuffersEntry::lsReplyPacket(), PacketBuffersEntry::lsRequestPacket(), CBFPacketEntry::operator=(), PacketBuffersEntry::operator=(), BroadcastForwardingPacketEntry::operator==(), PacketBuffersEntry::operator==(), PacketBuffersEntry::PacketBuffersEntry(), CBFPacketEntry::sendPacket(), PacketBuffersEntry::shbPacket(), PacketBuffersEntry::tsbPacket(), and BroadcastForwardingPacketEntry::updateSourcePacketSoPv().
|
inline |
headerType_HeaderSubType Header type + header sub-type fields getter.
Definition at line 187 of file CommonHeader.h.
References m_headerType_HeaderSubType.
Referenced by CommonHeader().
|
inline |
itsGnIsMobile First bit of flags field getter.
Definition at line 213 of file CommonHeader.h.
References m_flags.
|
inline |
maximumHopLimit Maximum hop limit field getter.
Definition at line 223 of file CommonHeader.h.
References m_maximumHopLimit.
Referenced by CommonHeader(), and GeoNet::commonHeaderProcessing().
|
inline |
nextHeader Next header field getter.
Definition at line 182 of file CommonHeader.h.
References m_nextHeader.
Referenced by CommonHeader().
|
inline |
payloadLength Payload length field getter.
Definition at line 218 of file CommonHeader.h.
References m_payloadLength.
Referenced by CommonHeader(), GeoNet::gacPacketProcessing(), GeoNet::gbcPacketProcessing(), GeoNet::gucPacketProcessing(), GeoNet::LSRequestPacketProcessing(), GeoNet::shbPacketProcessing(), and GeoNet::tsbPacketProcessing().
QByteArray CommonHeader::toHex | ( | ) |
toHex Create a QByteArray containing the hexadecimal format of the CommonHeader.
Definition at line 59 of file CommonHeader.cpp.
References TrafficClass::helper_size, m_flags, m_headerType_HeaderSubType, m_maximumHopLimit, m_nextHeader, m_payloadLength, m_reserved, m_trafficClass, and TrafficClass::toHex().
Referenced by GeoNet::checkUCFPB(), GeoNet::gacPacketProcessing(), GeoNet::gbcPacketProcessing(), GeoNet::gucPacketProcessing(), GeoNet::LSReplyPacketProcessing(), GeoNet::LSRequestPacketProcessing(), GeoNet::sendGAC(), GeoNet::sendGBC(), GeoNet::sendGUC(), and GeoNet::tsbPacketProcessing().
|
inline |
trafficClass Traffic class field getter.
Definition at line 203 of file CommonHeader.h.
References m_trafficClass.
Referenced by CommonHeader(), GeoNet::greedy(), and GeoNet::tsbPacketProcessing().
|
private |
Flags field.
Definition at line 229 of file CommonHeader.h.
Referenced by CommonHeader(), flags(), itsGnIsMobile(), and toHex().
|
private |
HeaderType (4 bits) + HeaderSubType (4 bits)
Definition at line 227 of file CommonHeader.h.
Referenced by CommonHeader(), headerSubType(), headerType(), headerType_HeaderSubType(), and toHex().
|
private |
Maximum hop limit field.
Definition at line 231 of file CommonHeader.h.
Referenced by CommonHeader(), maximumHopLimit(), and toHex().
|
private |
Next header + reserved fields.
Definition at line 226 of file CommonHeader.h.
Referenced by CommonHeader(), nextHeader(), and toHex().
|
private |
Payload length field.
Definition at line 230 of file CommonHeader.h.
Referenced by CommonHeader(), payloadLength(), and toHex().
|
private |
Reserved field.
Definition at line 232 of file CommonHeader.h.
Referenced by CommonHeader(), and toHex().
|
private |
Traffic class field.
Definition at line 228 of file CommonHeader.h.
Referenced by CommonHeader(), toHex(), and trafficClass().