EMANE
1.2.1
|
#include <commonmacheader.h>
Public Member Functions | |
CommonMACHeader (RegistrationId registrationId, std::uint64_t u64SequenceNumber) | |
CommonMACHeader (UpstreamPacket &pkt) | |
CommonMACHeader (CommonMACHeader &&rvalue) | |
~CommonMACHeader () | |
RegistrationId | getRegistrationId () const |
std::uint64_t | getSequenceNumber () const |
void | prependTo (DownstreamPacket &pkt) const |
Strings | format () const |
Definition at line 47 of file commonmacheader.h.
EMANE::CommonMACHeader::CommonMACHeader | ( | RegistrationId | registrationId, |
std::uint64_t | u64SequenceNumber | ||
) |
Create a CommonMACHeader
registrationId | Unique MAC registration id |
u64SequenceNumber | Packet sequence number |
Definition at line 95 of file commonmacheader.cc.
EMANE::CommonMACHeader::CommonMACHeader | ( | UpstreamPacket & | pkt | ) |
Creates a CommonMACHeader instance by stripping an UpstreamPacket
pkt | UpstreamPacket that is stripped in order to create the instance |
SerializationException | when the data stripped cannot be de-serialized into a CommonMACPHYHeader |
Definition at line 61 of file commonmacheader.cc.
EMANE::CommonMACHeader::CommonMACHeader | ( | CommonMACHeader && | rvalue | ) |
Creates a CommonMACHeader instance by moving another instance
Definition at line 102 of file commonmacheader.cc.
EMANE::CommonMACHeader::~CommonMACHeader | ( | ) |
Destroys an instance
Definition at line 106 of file commonmacheader.cc.
EMANE::Strings EMANE::CommonMACHeader::format | ( | ) | const |
Definition at line 139 of file commonmacheader.cc.
EMANE::RegistrationId EMANE::CommonMACHeader::getRegistrationId | ( | ) | const |
std::uint64_t EMANE::CommonMACHeader::getSequenceNumber | ( | ) | const |
Gets the MAC header packet sequence number
Definition at line 113 of file commonmacheader.cc.
void EMANE::CommonMACHeader::prependTo | ( | DownstreamPacket & | pkt | ) | const |
Prepends CommonMACHeader to downstream packet
pkt | Packet to prepend header |
SerializationException |
Definition at line 119 of file commonmacheader.cc.