Fix packet payload stripping in net_probe.py

This commit is contained in:
Andrey Danin 2013-01-09 18:12:04 +04:00 committed by default
parent 37d753db5e
commit bfa4c11ebb

View File

@ -97,6 +97,7 @@ def get_probe_frames(iface):
vlan = 0
rmsg = str(p[scapy.UDP].payload)[len(cookie):]
riface, uid = rmsg.split(' ', 1)
uid = uid.strip('\x00\n')
if vlan not in neigbor_dict:
neigbor_dict[vlan] = {}
if uid not in neigbor_dict[vlan]: