package
0.0.0-20231009070437-a6714d8b357d
Repository: https://github.com/skx/simple-vpn.git
Documentation: pkg.go.dev

# Functions

BroadcastMessage sends the given data over all sockets.
FindSocketByMAC finds the correct socket, by looking for the specified MAC address.
GetDestMAC retreives the destination MAC address of a TCP/IP packet.
GetSrcMAC retrieves the source MAC address of a TCP/IP packet.
MACIsUnicast returns true if the MAC address is a unicast address.
MakeSocket is our constructor.

# Structs

Socket holds state about our connection.

# Type aliases

CommandHandler is the signature of a function which can be triggered via a command over our websocket connection.
MacAddr stores a MAC address.