Documentation
¶
Index ¶
- func FindAvailableUDPPort(minPort, maxPort uint16) (uint16, error)
- func FixKey(key string) string
- func GetDestPort(packet []byte) (uint16, bool)
- func GetProtocol(packet []byte) (uint8, bool)
- func MapToWireGuardLogLevel(level logger.LogLevel) int
- func ParseLogLevel(level string) logger.LogLevel
- func ResolveDomain(domain string) (string, error)
- func UnfixKey(hexKey string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindAvailableUDPPort ¶
find an available UDP port in the range [minPort, maxPort] and also the next port for the wgtester
func GetDestPort ¶
GetDestPort returns destination port from TCP/UDP packet (fast path)
func GetProtocol ¶
GetProtocol returns protocol number from IPv4 packet (fast path)
func MapToWireGuardLogLevel ¶
func ParseLogLevel ¶
func ResolveDomain ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.