Documentation ¶
Index ¶
- func AddFilters(v []string, v2 []string) []string
- func FileIsExist(f string) bool
- func GetAllDevices() ([]*pcap.Interface, error)
- func GetIPs(v string) ([]string, error)
- func GetLocalIPs(v string) (map[string]string, error)
- func GetNIC(v string) *pcap.Interface
- func GetPacketReader(v string, snaplen int, rtimeout int64) (*pcap.Handle, error)
- func GetPacketWriter(v string, snaplen int) (*pcapgo.Writer, error)
- func GetPorts(v string) ([]string, error)
- func PacketFilter(custom, ports, ips string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFilters ¶
AddFilters add some filter rules
func GetAllDevices ¶
GetAllDevices get all network interface
func GetLocalIPs ¶
GetLocalIPs get the specified network interface info
func GetPacketReader ¶
GetPacketReader get packet reader
func GetPacketWriter ¶
GetPacketWriter get packet writer
func PacketFilter ¶
PacketFilter set packet filtering rules
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.