Documentation ¶
Index ¶
- Variables
- func GetProtocol(p uint8) string
- func IntToIP(ipNum uint32) net.IP
- func IsRoot() bool
- func LookupAndTrim(ip net.IP) ([]string, error)
- func OneOf(s string, values []string) bool
- func OneOfContains(search string, set []string) bool
- func OneOfInt32(s int32, values []int32) bool
- func ParseHosts(ips string) ([]net.IP, error)
- func ParseProgramName(e *ebpf.Program) string
- func TrimNullBytes(p [16]uint8) string
Constants ¶
This section is empty.
Variables ¶
View Source
var AllowedRanges = []string{}/* 3472 elements not displayed */
Functions ¶
func GetProtocol ¶
returns the given protock name TODO: find better alternative
func LookupAndTrim ¶
lookup IP address and trim suffix (".") in the doamin name
func OneOfContains ¶
OneOfContains returns true if any items of the given string list contains the given value
func OneOfInt32 ¶
OneOfInt32 returns true if the given string is one of the given values
func ParseHosts ¶
ParseHosts function parses the given hosts (or IP addresses) runs a lookup function, validates and ignores IPv6
func ParseProgramName ¶
parse eBPF program name from *ebpf.Program struct
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.