Open GoogleCodeExporter opened 9 years ago
I also got the same error while accessing dport
Original comment by ali.huss...@ebryx.com
on 31 Jan 2013 at 7:28
will work much better when you actually use the right convention.
for ts, buf in pcap:
eth = dpkt.ethernet.Ethernet(buf)
#we only care about IP packets for now
if eth.type != dpkt.ethernet.ETH_TYPE_IP:
continue
ip = eth.data
#example implements TCP data reading only
if ip.p = 6:
tcp = ip.data
dstport=tcp.dport
Original comment by kyle.creyts@gmail.com
on 31 Jan 2013 at 2:14
Original issue reported on code.google.com by
daw...@un0wn.org
on 3 Sep 2012 at 2:47