Issue 134 in dpkt: time and size of packet

15 views
Skip to first unread message

dp...@googlecode.com

unread,
Nov 9, 2014, 8:30:26 AM11/9/14
to dp...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 134 by itayr...@gmail.com: time and size of packet
https://code.google.com/p/dpkt/issues/detail?id=134

Hello,
i am new in python, and i need your help.
I am trying to get the time and size of each packet from a pcap file.
i tried the following:

f = open('test.pcap')
pcap = dpkt.pcap.Reader(f)
for ts, buf in pcap:
print ts, len(buf)

but all i getting is some numbers, that are wrong comparing to the pcap in
wireshark.
can someone help me???

Thanks


--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

Jeff Silverman

unread,
Nov 9, 2014, 3:46:28 PM11/9/14
to dp...@googlegroups.com
I'd like to help you.  Please send your pcap file to jeffsilverm at gm4il dot c0m and I will take a look at it.

Jeff Silverman


You received this message because you are subscribed to the Google Groups "dpkt" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dpkt+unsubscribe@googlegroups.com.
To post to this group, send email to dp...@googlegroups.com.
Visit this group at http://groups.google.com/group/dpkt.
For more options, visit https://groups.google.com/d/optout.



--
Jeff Silverman, linux sysadmin
nine two four   twentieth avenue east
Seattle, WA, nine eight one one two -3507
(2O6) 329-1O94
jeffs...@gmail.c0m (note the zero!)
http://www.commercialventvac.com
Read my book, "Failure is Not an Option: How to build reliable computer systems from unreliable parts using Open Source software" http://www.commercialventvac.com/finao/index.html"

dp...@googlecode.com

unread,
Nov 12, 2014, 1:46:58 PM11/12/14
to dp...@googlegroups.com

Comment #1 on issue 134 by vinifa...@gmail.com: time and size of packet
https://code.google.com/p/dpkt/issues/detail?id=134

Try open with binary

f = open('test.pcap','rb')
pcap = dpkt.pcap.Reader(f)
for ts, buf in pcap:
print ts, len(buf)

dp...@googlecode.com

unread,
Dec 24, 2014, 11:17:57 PM12/24/14
to dp...@googlegroups.com

Comment #2 on issue 134 by kba...@in2void.com: time and size of packet
https://code.google.com/p/dpkt/issues/detail?id=134

Could you please provide more details like the operating System and dpkt
version?
Also, please upload the test pcap file that fails in comparison with
wireshark.

dp...@googlecode.com

unread,
Dec 25, 2014, 12:58:17 AM12/25/14
to dp...@googlegroups.com
Updates:
Status: WontFix

Comment #3 on issue 134 by kba...@in2void.com: time and size of packet
https://code.google.com/p/dpkt/issues/detail?id=134

Please see the following issues:
https://code.google.com/p/dpkt/issues/detail?id=129
https://code.google.com/p/dpkt/issues/detail?id=27

If the timestamp values are not matching up with Wireshark, it is because
of the way you are printing the value in python. See issue #129 for more
details.
Reply all
Reply to author
Forward
0 new messages