libguac 1.5.5
Loading...
Searching...
No Matches
Macros
wol-constants.h File Reference

Header file that provides constants and defaults related to libguac Wake-on-LAN support. More...

Go to the source code of this file.

Macros

#define GUAC_WOL_LOCAL_IPV4_BROADCAST   "255.255.255.255"
 The value for the local IPv4 broadcast address.
 
#define GUAC_WOL_PACKET_SIZE   102
 The size of the magic Wake-on-LAN packet to send to wake a remote host.
 
#define GUAC_WOL_PORT   9
 The port number that the magic packet should contain as the destination.
 

Detailed Description

Header file that provides constants and defaults related to libguac Wake-on-LAN support.

Macro Definition Documentation

◆ GUAC_WOL_PACKET_SIZE

#define GUAC_WOL_PACKET_SIZE   102

The size of the magic Wake-on-LAN packet to send to wake a remote host.

This consists of 6 bytes of 0xFF, and then the MAC address repeated 16 times. https://en.wikipedia.org/wiki/Wake-on-LAN#Magic_packet

◆ GUAC_WOL_PORT

#define GUAC_WOL_PORT   9

The port number that the magic packet should contain as the destination.

In reality this doesn't matter all that much, since the packet is not usually processed by a full IP stack, but defining one is considered a standard practice.