print('packet data ' + p.psrc + '   ' + p.src + '  ' + p.pdst + ' ' + p.dst + ' ' + str(
    c))
print('packet number = ' + str(c))
print('MAC of attacker = ' + p.dst)
print('IP of attacker = ' + ipadr[macadr.index(p.dst)])
print('MAC of target = ' + p.src)
print('IP of target = ' + p.psrc)
Detect ARP poisoning using scapy