Giter Club home page Giter Club logo

Comments (13)

kbandla avatar kbandla commented on July 19, 2024

From [email protected] on November 20, 2009 10:42:46

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.

from dpkt.

kbandla avatar kbandla commented on July 19, 2024

From [email protected] on November 20, 2009 10:55:35

attaching file.

Attachment: tracing.pcap

from dpkt.

kbandla avatar kbandla commented on July 19, 2024

From [email protected] on December 03, 2009 02:45:52

i have the same problem too.

from dpkt.

kbandla avatar kbandla commented on July 19, 2024

From [email protected] on December 29, 2009 16:17:46

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

from dpkt.

kbandla avatar kbandla commented on July 19, 2024

From [email protected] on February 15, 2010 11:01:48

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.

from dpkt.

kbandla avatar kbandla commented on July 19, 2024

From [email protected] on March 24, 2010 08:10:00

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.

Status: Accepted

from dpkt.

kbandla avatar kbandla commented on July 19, 2024

From [email protected] on September 30, 2010 10:35:40

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.

from dpkt.

kbandla avatar kbandla commented on July 19, 2024

From [email protected] on October 13, 2010 13:32:31

Opening the file in binary mode solved my problem.

from dpkt.

kbandla avatar kbandla commented on July 19, 2024

From [email protected] on August 26, 2011 04:08:03

yeah...just open file in mode = 'rb'

from dpkt.

kbandla avatar kbandla commented on July 19, 2024

From [email protected] on January 21, 2014 01:34:31

Worked for me too. Thanks!

from dpkt.

kbandla avatar kbandla commented on July 19, 2024

From [email protected] on April 22, 2014 00:27:25

open file in mode 'rb'
solved my problem too, Thanks!

from dpkt.

kbandla avatar kbandla commented on July 19, 2024

From [email protected] on April 22, 2014 00:27:25

open file in mode 'rb'
solved my problem too, Thanks!

from dpkt.

kbandla avatar kbandla commented on July 19, 2024

From [email protected] on December 24, 2014 18:58:10

On Windows, pcap files should be opened in binary mode (rb). Closing the issue.

Status: WontFix
Owner: [email protected]

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.