Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateIPs ¶
GenerateIPs generates all the IP addresses given the subnet prefix (if there is one) and destination IP in CustomIP
Types ¶
type Capturer ¶
type Capturer struct { Iface pcap.Interface IPs []CustomIP // contains filtered or unexported fields }
Capturer contains a set of IPs to capture from (or a subnet), otherwise it captures from everything on the wire
func (Capturer) CaptureIPs ¶
CaptureIPs captures from the specified IP addresses in IPs it does this asynchronously, and returns captured echo replies to a returned channel you can close the channel with the optional parameter channel. Just pass it a number.
func (Capturer) GetDevs ¶
GetDevs prints the devices, so you can pick which one to set the index to.
type Controller ¶
Controller is the intermediary between capturer and sender
it sends data with the sender and captures packets and gets specific IP packets with the capturer
func (Controller) SendAndRecv ¶
func (c Controller) SendAndRecv(timeout time.Duration) map[string]bool
SendAndRecv sends data with the sender and receives data with the capturer