pcap_sendpacket and pcap_sendqueue_transmit packet drops
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 3.6k
- Forks
- 592
- PR merge metrics
- No merged PRs in 30d
Description
Both pcap_sendpacket and pcap_sendqueue_transmit return status (the latter via total number of bytes sent which can be compared to sendqueue->len to verify if all packets were indeed sent).
Is this just the system call status or is there a guarantee that the packets did make it out of the NIC?
If there is no guarantee is there a way to get any drop stats out of the Windows kernel/system to confirm this?
In my tests, I have two pcap_t handles A1 and A2 for the same adapter A. I call pcap_sendqueue_transmit on A1 and am able to 'capture' these sent packets on A2. However, the number of packets captured on A2 is sometimes less than the number of packets sent on A1 - especially at high send rates. I would have expected these counts to be equal. This leads me to suspect that there is some packet drop somewhere.
npcap version: 1.10
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the pcap_sendpacket and pcap_sendqueue_transmit entry points and compare their reported status with the packet counts observed through handles A1 and A2. Reproduce the high-rate Windows case and determine whether the behavior reflects documented transmission semantics or requires kernel drop statistics; done means documenting the guarantee and a supported way to verify losses, if one exists.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- networking, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100