microsoft / microsoft/ebpf-for-windows

_prog_type_supports_interface() in libs\ebpfnetsh\programs.cpp has hard coded knowledge at present.

Open
#3,672 0 comments 0 reactions 0 assignees View on GitHub
enhancement help wanted P3 triaged
Dominant language
C
Stars
3.6k
Forks
311
Avg merge
6d 10h
Merged PRs (30d)
21

Description

We need a better, generalized mechanism to enable extensions to handle extension specific parameters when using netsh for attach management of their program types.

Currently the interface parameter handling (specific to the XDP* extensions) is hardcoded into ebpf's netsh plugin. This approach is not scalable as more extensions become available.

Contributor guide

Open the contributing guide

Research direction

Start in libs\ebpfnetsh\programs.cpp at _prog_type_supports_interface() and inspect how interface parameters are currently hardcoded for XDP* extensions. Trace the netsh attach-management path and define a generalized mechanism that lets extensions handle their own parameters; done means the hardcoded approach is replaced and extension-specific parameters remain supported.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli, tooling
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.