1 #ifndef PACKETPP_WAKEONLAN_LAYER 2 #define PACKETPP_WAKEONLAN_LAYER 22 void init(uint16_t len);
47 :
Layer(data, dataLen, prevLayer, packet)
111 bool setPassword(
const uint8_t *password, uint8_t len);
138 static bool isWakeOnLanPort(uint16_t port) {
return (port == 0) || (port == 7) || (port == 9); }
146 static bool isDataValid(
const uint8_t *data,
size_t dataSize);
The main namespace for the PcapPlusPlus lib.
OsiModelLayer
Definition: ProtocolType.h:333
WakeOnLanLayer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: WakeOnLanLayer.h:46
void setTargetAddr(const pcpp::MacAddress &targetAddr)
Definition: ProtocolType.h:338
const ProtocolType WakeOnLan
Definition: ProtocolType.h:293
std::string toString() const
wol_header * getWakeOnLanHeader() const
Definition: WakeOnLanLayer.h:85
std::string getPassword() const
Definition: IpAddress.h:42
bool setPassword(const uint8_t *password, uint8_t len)
Definition: WakeOnLanLayer.h:19
size_t getHeaderLen() const
Definition: WakeOnLanLayer.h:156
OsiModelLayer getOsiModelLayer() const
Definition: WakeOnLanLayer.h:164
void parseNextLayer()
Parses the next layer. Wake on LAN is the always last so does nothing for this layer.
Definition: WakeOnLanLayer.h:151
static bool isWakeOnLanPort(uint16_t port)
Definition: WakeOnLanLayer.h:138
static bool isDataValid(const uint8_t *data, size_t dataSize)
pcpp::MacAddress getTargetAddr() const
Definition: MacAddress.h:28
void computeCalculateFields()
Does nothing for this layer.
Definition: WakeOnLanLayer.h:159