Skip to content

Commit edf6572

Browse files
committed
removed the type field
1 parent 632108a commit edf6572

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

processarp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
pkts = rdpcap(pcap_path) #inbuilt function of scapy to read pcap files
1717
for i in range(len(pkts)):
1818
if ARP in pkts[i]: #checks if the packet is an ARP packet or not
19-
file.write('%d,%s,%s,%s,%s,%d,%s\n'%( pkts[i].time, pkts[i].hwsrc, pkts[i].psrc, pkts[i].hwdst, pkts[i].pdst, pkts[i].hwtype, pkts[i].op))
19+
file.write('%d,%s,%s,%s,%s,%d,%s\n'%( pkts[i].time, pkts[i].hwsrc, pkts[i].psrc, pkts[i].hwdst, pkts[i].pdst, pkts[i].op))
2020
print 'file write complete'
2121
#Timestamp, source MAC address, source IP address, Destination MAC address, Destination IP address
2222
file.close()

0 commit comments

Comments
 (0)