Merge remote-tracking branch 'origin/packet_routing' into packet_routing

# Conflicts:
#	modules/arp_spoof.go
This commit is contained in:
Giuseppe Trotta 2018-02-13 04:19:26 +01:00
commit e698af7607

View file

@ -144,6 +144,9 @@ func (p *ArpSpoofer) pktRouter(eth *layers.Ethernet, ip4 *layers.IPv4, pkt gopac
return
}
// check if this packet is from or to one of the spoofing targets
// and therefore needs patching and forwarding.
doForward := false
for _, target := range p.addresses {
targetMAC, err := p.getMAC(target, true);