microsoft / microsoft/ebpf-for-windows

Add support for `BPF_MAP_TYPE_SOCKHASH` and relevant helper funcs

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

Nobody has claimed this yet.

help wanted triaged
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

Open the contributing guide

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.