Comments (9)
npcap version:1.79
npcap-sdk version:1.13
from npcap.
How many dropped packets does pcap_stats()
report in ps_drop
?
from npcap.
Should I write fetch ps_drop in the timeout branch
from npcap.
Should I write fetch ps_drop in the timeout branch
Since your capture loop seems not to ever exit, the right place to try it might be to, every N packets, for some value of N, call pcap_stats()
and, if ps_drop
is non-zero, print its current value as a count of dropped packets.
from npcap.
Well. I tried to get ps_drop every 15678 packets, and the results seemed a little hard to understand. The code looks like this:
srcIndex = uh->index;
if (srcIndex % 15678 == 0)
{
int size;
pcap_stat* stat = pcap_stats_ex(adhandle, &size);
printf("drop num: %d\n", stat->ps_drop);
}
from npcap.
The results show that most of the packets are lost.
from npcap.
I set the buffer size and the packet buffer timeout, and now I can fetch all the packets!
Thank you for your help, Sir.
from npcap.
Another question, if I want to use Npcap to reliably transfer 1 gigabit data to another device in the LAN in the shortest possible time, is there any good advice?
from npcap.
Now, I set the buffer size to 2*1024*1024*1024
(which seems to be the maximum for an int), the packet buffer timeout to 1000
, and the ps_drop
to end up being 0. As I scale up the number of packets to 2M, ps_drop
starts to become nonzero during reads. However, the number of packets monitored by Wireshark was as expected. Am I setting my parameters wrong or missing some configuration items?
from npcap.
Related Issues (20)
- NPF install ERROR , NPF service can not start.
- After installing NPcap 1.79, a blue screen crash occurred when attempting to connect to the Internet through dial-up.
- pcap_oid_get_request is missing in npcap-1.79.exe HOT 1
- BSOD during VMware player (network driver) installation
- Update EV codesigning certificate used for Npcap and Nmap
- Update building documentation for Win11 SDK HOT 1
- Old version of Npcap on winget HOT 1
- Failed to capture traffic HOT 2
- Failure to Capture Virtual Adapter - winpcap can capture but npcap does not HOT 6
- PcapLiveDevice.cpp: sendPacket:628] Error sending packet: send error: PacketSendPacket failed: A device attached to the system is not functioning. (31) HOT 2
- Update Npcap to support NDIS 6.89 HOT 2
- With GNS3 and NPCAP not possible to ping and connect to host within GNS3
- Nmap Error: 'Error compiling our pcap filter: expression rejects all packets' HOT 6
- Not able to send 10 Gbps HOT 1
- Couldn't capture 802.11 radio beacon packets using Npcap SDK in Windows C++ HOT 7
- Resolve Application Verifier stops in libpcap (wpcap.dll) included with Npcap 1.79 HOT 5
- Npcap Bug Report - Error 0x80070002 failed to install npcap service
- outbound packets logged twice on vEthernet HOT 2
- Fix reported BSOD in !NPF_RemoveFromGroupOpenArray HOT 1
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 npcap.