Versions in this module Expand all Collapse all v0 v0.4.1 Mar 14, 2022 Changes in this version + const MaxPacketLength + const ScanType + func BPFFilter(r *scan.Range) (filter string, maxPacketLength int) + type PacketFiller struct + func NewPacketFiller(opts ...PacketFillerOption) *PacketFiller + func (f *PacketFiller) Fill(packet gopacket.SerializeBuffer, r *scan.Request) (err error) + type PacketFillerOption func(f *PacketFiller) + func WithCode(code uint8) PacketFillerOption + func WithIPFlags(flags uint8) PacketFillerOption + func WithIPProtocol(proto uint8) PacketFillerOption + func WithIPTotalLength(length uint16) PacketFillerOption + func WithPayload(payload []byte) PacketFillerOption + func WithTTL(ttl uint8) PacketFillerOption + func WithType(typ uint8) PacketFillerOption + func WithVPNmode(vpnMode bool) PacketFillerOption + type PacketProcessor struct + func NewPacketProcessor(scanType string, results scan.ResultChan, vpnMode bool) *PacketProcessor + func (p *PacketProcessor) ProcessPacketData(data []byte, _ *gopacket.CaptureInfo) (err error) + func (p *PacketProcessor) Results() <-chan scan.Result + type Response struct + Code uint8 + Type uint8 + type ScanMethod struct + func NewScanMethod(psrc scan.PacketSource, results scan.ResultChan, vpnMode bool) *ScanMethod + type ScanResult struct + ICMP *Response + IP string + ScanType string + TTL uint8 + func (r *ScanResult) ID() string + func (r *ScanResult) String() string + func (v *ScanResult) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *ScanResult) UnmarshalJSON(data []byte) error + func (v ScanResult) MarshalEasyJSON(w *jwriter.Writer) + func (v ScanResult) MarshalJSON() ([]byte, error)