Code Monkey home page Code Monkey logo

Comments (15)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
I am facing the same issue. I need to parse a UDP packet and can't do it. 
Please let me 
know what can I do.

Thanks,

Ram.

Original comment by [email protected] on 20 Nov 2009 at 6:42

from dpkt.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
attaching file.

Original comment by [email protected] on 20 Nov 2009 at 6:55

Attachments:

from dpkt.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
i have the same problem too.

Original comment by [email protected] on 3 Dec 2009 at 10:45

from dpkt.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
[deleted comment]

from dpkt.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
[deleted comment]

from dpkt.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
Be sure to open your file in binary mode. Otherwise, the raw data content of 
the pcap
file will not be interpreted correctly.

Open your file like this:
f = open('capture.pcap', 'rb')

MGS

Original comment by [email protected] on 30 Dec 2009 at 12:17

from dpkt.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
I also ran into this problem.  Opening the file in binary mode makes no 
difference. 
What I did notice however is that it that you don't run into this problem if 
you are
running dpkt on Linux.  It seems to be Windows-specific.  Any ideas?  Thanks.

Original comment by [email protected] on 15 Feb 2010 at 7:01

from dpkt.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
I believe Windows has some LFS issues when using longs for read/seek/tell/etc.
Unfortunately, I don't have a 32-bit Windows machine to reproduce on.

Original comment by [email protected] on 24 Mar 2010 at 3:10

  • Changed state: Accepted

from dpkt.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
I have the same problem on my Windows XP machine. Running in cygwin solves the 
problem. I also added some debug prints in pcap.py and it looks like the file 
read function does not return enough bytes.

Original comment by [email protected] on 30 Sep 2010 at 5:35

from dpkt.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
Opening the file in binary mode solved my problem.

Original comment by [email protected] on 13 Oct 2010 at 8:32

from dpkt.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
yeah...just open file in mode = 'rb'

Original comment by [email protected] on 26 Aug 2011 at 11:08

from dpkt.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
Worked for me too. Thanks!

Original comment by [email protected] on 21 Jan 2014 at 9:34

from dpkt.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
open file in mode 'rb'
solved my problem too, Thanks!

Original comment by [email protected] on 22 Apr 2014 at 7:27

from dpkt.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
open file in mode 'rb'
solved my problem too, Thanks!

Original comment by [email protected] on 22 Apr 2014 at 7:27

from dpkt.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
On Windows, pcap files should be opened in binary mode (rb). Closing the issue.

Original comment by [email protected] on 25 Dec 2014 at 2:58

  • Changed state: WontFix

from dpkt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.