mirror of
https://github.com/maride/pancap.git
synced 2026-04-13 18:45:46 +00:00
Fix usage of appendIfUnique
This commit is contained in:
@@ -42,7 +42,7 @@ func HandleDHCPv4Packet(packet gopacket.Packet) error {
|
||||
// Examine packet further
|
||||
if dhcppacket.Operation == layers.DHCPOpRequest {
|
||||
// Request packet
|
||||
appendIfUnique(dhcppacket.ClientHWAddr.String(), requestMAC)
|
||||
requestMAC = appendIfUnique(dhcppacket.ClientHWAddr.String(), requestMAC)
|
||||
} else {
|
||||
// Response/Offer packet
|
||||
addResponseEntry(dhcppacket.ClientIP.String(), dhcppacket.YourClientIP.String(), dhcppacket.ClientHWAddr.String(), ethernetpacket.SrcMAC.String())
|
||||
|
||||
Reference in New Issue
Block a user