Closed GoogleCodeExporter closed 9 years ago
Could you post the dump file you're processing (or an de-sensitized one that
reproduces what you're seeing)?
Also, you should take a look at the Reader class in dpkt's pcap.py. It
provides a
convenient interface for reading in pcap files.
Original comment by jon.ober...@gmail.com
on 27 Jul 2007 at 10:14
...or I could just take a minute to read your posted code. ;-)
I've never used pcapy, but as it is a pcap library I'm assuming it hands you
the raw
packet from the pcap dump which includes the appropriate link and network
layers, not
just the transport layer (TCP).
So try the following:
for i in pcap_dumps[key]:
print `Ethernet(i[1])`
#packet_data[key].append(TCP(i[1]))
If the TCP port listed in the output looks correct, then that's your problem.
Original comment by jon.ober...@gmail.com
on 27 Jul 2007 at 10:28
closing as invalid...
Original comment by jon.ober...@gmail.com
on 27 Jul 2007 at 11:02
Original issue reported on code.google.com by
demonic....@gmail.com
on 27 Jul 2007 at 9:41Attachments: