mirror of
https://github.com/maride/pancap.git
synced 2024-11-24 17:54:24 +00:00
Add device for ARP requests, too
This commit is contained in:
parent
e363a5929d
commit
e41a957e8d
@ -34,6 +34,9 @@ func ProcessARPPacket(packet gopacket.Packet) error {
|
||||
// Request packet
|
||||
participant.asked++
|
||||
appendIfUnique(net.IP(arppacket.DstProtAddress).String(), participant.askedList)
|
||||
|
||||
// Add device entry
|
||||
addDeviceEntry(sourceAddr, net.IP(arppacket.SourceProtAddress).String())
|
||||
} else {
|
||||
// Response packet
|
||||
participant.answered++
|
||||
|
Loading…
Reference in New Issue
Block a user