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)
std::string toString() const override
OsiModelLayer getOsiModelLayer() const override
Definition: WakeOnLanLayer.h:172
void computeCalculateFields() override
Does nothing for this layer.
Definition: WakeOnLanLayer.h:166
pcpp::MacAddress getTargetAddr() const
bool setPassword(const uint8_t *password, uint8_t len)
bool setPassword(const std::string &password)
WakeOnLanLayer(const pcpp::MacAddress &targetAddr)
wol_header * getWakeOnLanHeader() const
Definition: WakeOnLanLayer.h:82
static bool isDataValid(const uint8_t *data, size_t dataSize)
size_t getHeaderLen() const override
Definition: WakeOnLanLayer.h:160
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)
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
void parseNextLayer() override
Parses the next layer. Wake on LAN is the always last so does nothing for this layer.
Definition: WakeOnLanLayer.h:154
The main namespace for the PcapPlusPlus lib.
const ProtocolType WakeOnLan
Definition: ProtocolType.h:298
OsiModelLayer
Definition: ProtocolType.h:364
@ OsiModelDataLinkLayer
Definition: ProtocolType.h:368