Update Npcap example programs to use consistent, modern API usage
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 3.6k
- Forks
- 592
- PR merge metrics
- No merged PRs in 30d
Description
Examples are currently split between Examples (older WinPcap stuff) and Examples-pcap (WinPcap's "cross-platform" examples). There are code differences, missing error checks, older/deprecated API usage, etc. Additionally, the sendpack example does not send correctly on Windows 10 ARM64 (Samsung GalaxyBook) probably due to MAC address mismatch.
We should consolidate, prune, and update these examples with correct API usage, useful comments, and modern programming practices.
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 by comparing the examples in Examples and Examples-pcap, focusing on their API differences, missing error checks, and deprecated usage. Investigate the sendpack behavior on Windows 10 ARM64, including the reported MAC address mismatch. Done means the examples are consolidated and pruned, use consistent modern APIs, include useful comments and error handling, and send correctly on the reported platform.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- networking
- Issue type
- Refactor
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100