Versions in this module Expand all Collapse all v0 v0.4.1 Mar 14, 2022 Changes in this version + const MaxPacketLength + func BPFFilter(r *scan.Range) (filter string, maxPacketLength int) + func FillCache(cache *Cache, r io.Reader) error + func NewCacheRequestGenerator(reqgen scan.RequestGenerator, gatewayMAC net.HardwareAddr, cache *Cache) scan.RequestGenerator + type Cache struct + func NewCache() *Cache + func (c *Cache) Delete(ip net.IP) + func (c *Cache) Get(ip net.IP) net.HardwareAddr + func (c *Cache) Put(ip net.IP, mac net.HardwareAddr) + type PacketFiller struct + func NewPacketFiller() *PacketFiller + func (*PacketFiller) Fill(packet gopacket.SerializeBuffer, r *scan.Request) error + type ScanMethod struct + func NewScanMethod(psrc scan.PacketSource, results scan.ResultChan) *ScanMethod + func (s *ScanMethod) ProcessPacketData(data []byte, _ *gopacket.CaptureInfo) error + func (s *ScanMethod) Results() <-chan scan.Result + type ScanResult struct + IP string + MAC string + Vendor string + 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)