Documentation ¶
Overview ¶
Package pcapper provides a facility for continually capturing pcaps at the ip level and then dumping those for specific IPs when the time comes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartCapturing ¶
func StartCapturing(application string, interfaceName string, dir string, numIPs int, packetsPerIP int, snapLen int, timeout time.Duration) error
StartCapturing starts capturing packets from the named network interface. It will dump packets into files at <dir>/<ip>.pcap. It will store data for up to <numIPs> of the most recently active IPs in memory, and it will store up to <packetsPerIP> packets per IP. snapLen specifies the maximum packet length to capture and timeout specifies the capture timeout.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.