mirror of
				https://github.com/maride/pancap.git
				synced 2025-10-10 19:36:51 +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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user