Comments (6)
Thanks for hints.
I observed when I changed snapshotLength to 65536, this problem was also fixed.
from pcapplusplus.
can you provide pcap files?
from pcapplusplus.
from pcapplusplus.
I have this POC code to read from pcap: https://pastebin.com/31LxGqJU
But in this case, I cannot observe this bug.. 🤔 https://justpaste.it/a5knx
from pcapplusplus.
After some retries I can also observe "6272 bytes missing" (nondetermistically printed):
"amount":22990,"photoUrl":"https://rukminim1.flixcart.com/image/832/832/k7nnrm80/refrigerator-new/6/z/f/gl-s292rdsy-2-lg-original-imafpujn
TCP data from port 49912 to port 5000 | Data length: 25 bytes
Data: [6272 bytes missing]0
TCP connection ended between 127.0.0.1:49912 and 127.0.0.1:5000 | Reason: 0
from pcapplusplus.
@davidbolvansky it's hard to say why this is happening on live traffic but not from a pcap file. It probably shows that the issue is not with the TCP reassembly logic, but something with how packets are captured. Maybe there is a packet loss (packets that libpcap drops due to too much traffic or some other reason?). The fact that you see missing bytes can indicate that not all packets are being captured and/or sent to TCP reassembly
from pcapplusplus.
Related Issues (20)
- Pcapng Parsing failure/confusion if unknown interface ID HOT 12
- Error when reading a packet HOT 1
- Why is std::byte not used? HOT 2
- Jumbo Frames in DPDK devices HOT 7
- Power of 2 restriction for number of queues in DpdkDevice HOT 3
- Fix building warning due to LightPcapNg HOT 10
- Migrate LightPcapNg to the forked repo HOT 9
- Error linking pcapplusplus using vcpkg and CMake. HOT 2
- improve macOS get default gateway IP HOT 13
- PcapPlusPlus Configuration Error in CMake with vcpkg HOT 8
- PcapLiveDevice socket is not close HOT 2
- SNI Extension with zero length HOT 2
- Find alternative package for netifaces HOT 1
- Transfer this repository into PcapPlusPlus GitHub organization HOT 12
- warning C4193 HOT 4
- warning C4133 HOT 1
- warning C4129 HOT 1
- -DBUILD_SHARED_LIBS=ON cannot work in Windows HOT 12
- Address all MSVC compilation warnings
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 pcapplusplus.