microsoft / microsoft/ebpf-for-windows
Add support for `BPF_MAP_TYPE_SOCKHASH` and relevant helper funcs
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 3.6k
- Forks
- 311
- Avg merge
- 6d 10h
- Merged PRs (30d)
- 21
Description
Implement
- [ ] `BPF_MAP_TYPE_SOCKHASH`
- [ ] `bpf_sk_redirect_hash`
- [ ] `bpf_msg_redirect_hash`
- [ ] `bpf_sock_hash_update`
`BPF_MAP_TYPE_SOCKMAP` is an array of sockets whereas `BPF_MAP_TYPE_SOCKHASH` is a hashtable and takes a hashkey for the socket.
Contributor guide
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 finding the existing BPF_MAP_TYPE_SOCKMAP implementation and the related helper definitions or registration points. Compare the socket map's array behavior with the requested hash-key behavior, then verify support for all three listed helpers and the SOCKHASH map type with the project's relevant tests, if present.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- networking
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100