Documentation ¶
Index ¶
- func BytesToHexStr(b []byte) string
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToHexStr ¶
func DiscoverGateway ¶
DiscoverGateway returns the local gateway IP address
func GetDefaultHttpResponse ¶
func GetDefaultHttpResponse() []byte
GetDefaultHttpResponse returns the default http response
func GetIPv4Dst ¶
GetIPv4Dst returns the IPv4 destination address of the packet
func GetIPv4Src ¶
GetIPv4Src returns the IPv4 source address of the packet
func GetIPv6Dst ¶
GetIPv6Dst returns the IPv6 destination address of the packet
func GetIPv6Src ¶
GetIPv6Src returns the IPv6 source address of the packet
func LookupServerAddrIP ¶
LookupServerAddrIP returns the IP of server address
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.