diff --git a/modules/net_probe.go b/modules/net_probe.go index d668b992..f466c79c 100644 --- a/modules/net_probe.go +++ b/modules/net_probe.go @@ -110,9 +110,6 @@ func (p *Prober) Start() error { } else if p.Session.Skip(ip) { log.Debug("Skipping address %s from UDP probing.", ip) continue - } else if p.Session.Lan.GetByIp(ip.String()) != nil { - log.Debug("Skipping address %s from UDP probing (already in the arp cache).", ip) - continue } p.sendProbe(from, from_hw, ip) diff --git a/packets/queue.go b/packets/queue.go index 6982c8b8..2642bd0a 100644 --- a/packets/queue.go +++ b/packets/queue.go @@ -166,30 +166,18 @@ func (q *Queue) TrackError() { func (q *Queue) getPacketMeta(pkt gopacket.Packet) map[string]string { meta := make(map[string]string) - mdns := MDNSGetMeta(pkt) - nbns := NBNSGetMeta(pkt) - if mdns != nil { + if mdns := MDNSGetMeta(pkt); mdns != nil { for k, v := range mdns { meta[k] = v } } - if nbns != nil { + if nbns := NBNSGetMeta(pkt); nbns != nil { for k, v := range nbns { meta[k] = v } } - /* - // check if the packet is a useful mDNS query response - hostname := MDNSGetHostname(pkt) - // check if we can get some meta info from mDNS TXT records - meta := MDNSGetMeta(pkt) - - if hostname != "" { - meta["mdns:hostname"] = hostname - } - */ return meta }