nmap / nmap/npcap

Update Npcap example programs to use consistent, modern API usage

Open
#605 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.