Documentation
¶
Index ¶
- Variables
- func FindInterfaceByIP(ip string) (net.Interface, error)
- func GetPublicRoute() (*net.Interface, net.IP, net.IP, error)
- func IsPrivateIPString(target string) bool
- func Route(timeout time.Duration, target string) (iface *net.Interface, gateway, preferredSrc net.IP, err error)
- type GrokResult
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DarwinGetawayExtractorRe = regexp2.MustCompile(`gateway: ([\[\]0-9a-fA-TaskFunc:\.]+)`, regexp2.IgnoreCase|regexp2.Multiline) DarwinInterfaceExtractorRe = regexp2.MustCompile(`interface: ([^\s]+)`, regexp2.IgnoreCase|regexp2.Multiline) )
Functions ¶
func IsPrivateIPString ¶
Types ¶
type GrokResult ¶
func Grok ¶
func Grok(line string, rule string) GrokResult
func (GrokResult) Get ¶
func (g GrokResult) Get(key string) string
func (GrokResult) GetAll ¶
func (g GrokResult) GetAll(key string) []string
Directories
¶
Path | Synopsis |
---|---|
Originally found in https://github.com/google/gopacket/blob/master/routing/routing.go
|
Originally found in https://github.com/google/gopacket/blob/master/routing/routing.go |
Click to show internal directories.
Click to hide internal directories.