Comments (13)
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.
From [email protected] on November 20, 2009 10:55:35
attaching file.
Attachment: tracing.pcap
from dpkt.
From [email protected] on December 03, 2009 02:45:52
i have the same problem too.
from dpkt.
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.
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.
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.
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.
From [email protected] on October 13, 2010 13:32:31
Opening the file in binary mode solved my problem.
from dpkt.
From [email protected] on August 26, 2011 04:08:03
yeah...just open file in mode = 'rb'
from dpkt.
From [email protected] on January 21, 2014 01:34:31
Worked for me too. Thanks!
from dpkt.
From [email protected] on April 22, 2014 00:27:25
open file in mode 'rb'
solved my problem too, Thanks!
from dpkt.
From [email protected] on April 22, 2014 00:27:25
open file in mode 'rb'
solved my problem too, Thanks!
from dpkt.
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)
- 1.9.7: sphinx documentation support removed??? HOT 9
- Performance regression in v1.9.7 HOT 9
- Add KEYLOGFILE TLS decryption support. HOT 1
- Issue with MPLS HOT 4
- How does dpkt parse the content in multipart/form-data๏ผ HOT 1
- dpkt.http.Response always fails HOT 2
- Extract Sequence Num & Fragment Num from 802.11 Pkt
- payload is not the same as before when the packet is written to a new pcap file HOT 9
- Unable to pull data from non TCP/UDP packets HOT 1
- The HTTP response message is divided into multiple TCP messages. HOT 1
- support for "modified pcaps" HOT 1
- Release 1.9.8 HOT 3
- Verify checksums HOT 2
- Coveralls failures are misleading HOT 3
- Writing packets from raw IPv6 not working HOT 2
- lists in self.data and pprint-todo HOT 2
- bitfield unittest might be platform dependant HOT 4
- `Diameter.__bytes__` has side effects (messes up `len` and `cmd`) HOT 1
- HTTP HEAD Responses cannot be processed correctly
- Github actions CI/CD failure HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dpkt.