package
0.0.0-20240412180432-9606b861b064
Repository: https://github.com/deepakkamesh/webtunnel.git
Documentation: pkg.go.dev
# Functions
GenMACAddr generate a random private MAC address for GW server to handle ARP etc.
GetIntCfg returns the hardware address and IPs for the interface.
GetMacbyName returns the mac address of the interface by name.
IsConfigured checks if interface ifName is configured with ip.
NewWaterInterface returns an initialized network interface.
PrintPacketEth prints the Ethernet packet.
PrintPacketIPv4 prints the IPv4 packet.
# Structs
ClientConfig represents the struct to pass config from server to client.
ServerInfo represents the struct provided to the client for debuging purpose.
# Interfaces
Interface represents the network interface.