Comments (15)
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.
attaching file.
Original comment by [email protected]
on 20 Nov 2009 at 6:55
Attachments:
from dpkt.
i have the same problem too.
Original comment by [email protected]
on 3 Dec 2009 at 10:45
from dpkt.
[deleted comment]
from dpkt.
[deleted comment]
from dpkt.
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.
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.
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.
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.
Opening the file in binary mode solved my problem.
Original comment by [email protected]
on 13 Oct 2010 at 8:32
from dpkt.
yeah...just open file in mode = 'rb'
Original comment by [email protected]
on 26 Aug 2011 at 11:08
from dpkt.
Worked for me too. Thanks!
Original comment by [email protected]
on 21 Jan 2014 at 9:34
from dpkt.
open file in mode 'rb'
solved my problem too, Thanks!
Original comment by [email protected]
on 22 Apr 2014 at 7:27
from dpkt.
open file in mode 'rb'
solved my problem too, Thanks!
Original comment by [email protected]
on 22 Apr 2014 at 7:27
from dpkt.
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)
- [patch] dns.unpack_name improvements
- Common DNS RR types missing (patch included)
- FCS field on dpkt.ethernet.Ethernet HOT 4
- ssl.py TLSMultiFactory recursion causes stack overflow HOT 2
- IEEE80211 - Management Frame Subtype Support HOT 11
- IEEE 802.11 Packets - Random Parsing Crashing HOT 2
- cannot install HOT 3
- Example Request - Control Type Packets - Destination/Source Addresses HOT 4
- Unsupported Control Packet Subtypes HOT 3
- Time stamp problem in dpkt HOT 3
- ip total length header field not stored correctly
- Patch for /trunk/dpkt/pcap.py
- IPv6 doesn't handle ESP packets sanely
- multiple IPv6 extension headers of the same type aren't handled
- time and size of packet HOT 3
- Contents of the pkt is cut
- Record Fragmentation not handled in TLSMultiFactory(buf)
- lldp parser should stop at end tlv HOT 1
- [patch] Made http.py return ordered headers
- Check if a given dpkt-layer is part of the packet
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.