21 void init(uint16_t len);
140 return (port == 0) || (port == 7) || (port == 9);
Definition: IpAddress.h:32
Definition: MacAddress.h:25
Definition: WakeOnLanLayer.h:19
WakeOnLanLayer(const pcpp::MacAddress &targetAddr, const IPv4Address &password)
pcpp::MacAddress getTargetAddr() const
bool setPassword(const uint8_t *password, uint8_t len)
size_t getHeaderLen() const
Definition: WakeOnLanLayer.h:160
bool setPassword(const std::string &password)
void parseNextLayer()
Parses the next layer. Wake on LAN is the always last so does nothing for this layer.
Definition: WakeOnLanLayer.h:154
WakeOnLanLayer(const pcpp::MacAddress &targetAddr)
wol_header * getWakeOnLanHeader() const
Definition: WakeOnLanLayer.h:82
void computeCalculateFields()
Does nothing for this layer.
Definition: WakeOnLanLayer.h:166
static bool isDataValid(const uint8_t *data, size_t dataSize)
WakeOnLanLayer(const pcpp::MacAddress &targetAddr, uint8_t *password, uint8_t len)
bool setPassword(const MacAddress &addr)
bool setPassword(const IPv4Address &addr)
WakeOnLanLayer(const pcpp::MacAddress &targetAddr, const pcpp::MacAddress &password)
void setTargetAddr(const pcpp::MacAddress &targetAddr)
std::string toString() const
static bool isWakeOnLanPort(uint16_t port)
Definition: WakeOnLanLayer.h:138
std::string getPassword() const
WakeOnLanLayer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: WakeOnLanLayer.h:45
OsiModelLayer getOsiModelLayer() const
Definition: WakeOnLanLayer.h:172
The main namespace for the PcapPlusPlus lib.
const ProtocolType WakeOnLan
Definition: ProtocolType.h:298
OsiModelLayer
Definition: ProtocolType.h:354
@ OsiModelDataLinkLayer
Definition: ProtocolType.h:358