Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Source ¶
type Source struct {
// contains filtered or unexported fields
}
func (*Source) ReadPacketData ¶
func (s *Source) ReadPacketData() ([]byte, *gopacket.CaptureInfo, error)
func (*Source) SetBPFFilter ¶
maxPacketLength is the maximum size of packets to capture in bytes. pcap calls it "snaplen" and default value used in tcpdump is 262144 bytes, that is redundant for most scans, see pcap(3) and tcpdump(1) for more info
func (*Source) WritePacketData ¶
Click to show internal directories.
Click to hide internal directories.