Documentation ¶
Index ¶
- func ConnectServer(config config.Config) net.Conn
- func DiscoverGateway(ipv4 bool) string
- func ExecCmd(c string, args ...string) string
- func GetDefaultHttpResponse() []byte
- func GetDstKey(packet []byte) string
- func GetIPv4Dst(packet []byte) net.IP
- func GetIPv4Src(packet []byte) net.IP
- func GetIPv6Dst(packet []byte) net.IP
- func GetIPv6Src(packet []byte) net.IP
- func GetInterface() (name string)
- func GetSrcKey(packet []byte) string
- func IsIPv4(packet []byte) bool
- func IsIPv6(packet []byte) bool
- func LookupIP(domain string) net.IP
- func LookupServerAddrIP(serverAddr string) net.IP
- func PrintErr(err error, enableVerbose bool)
- func PrintStats(enableVerbose bool, serverMode bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectServer ¶ added in v1.4.1
ConnectServer connects to the server with the given address.
func DiscoverGateway ¶ added in v1.6.6
DiscoverGateway returns the local gateway IP address
func GetDefaultHttpResponse ¶ added in v1.6.7
func GetDefaultHttpResponse() []byte
GetDefaultHttpResponse returns the default http response
func GetIPv4Dst ¶ added in v1.5.7
GEtIPv4Dst returns the IPv4 destination address of the packet
func GetIPv4Src ¶ added in v1.5.7
GetIPv4Src returns the IPv4 source address of the packet
func GetIPv6Dst ¶ added in v1.5.7
GetIPv6Dst returns the IPv6 destination address of the packet
func GetIPv6Src ¶ added in v1.5.7
GetIPv6Src returns the IPv6 source address of the packet
func GetInterface ¶ added in v1.5.7
func GetInterface() (name string)
GetInterfaceName returns the name of interface
func LookupServerAddrIP ¶ added in v1.6.6
LookupServerAddrIP returns the IP of server address
func PrintStats ¶ added in v1.6.7
PrintStats returns the stats info
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.