Skip to content

Conversation

@Alan-Jowett
Copy link
Member

Description

Add proposal to add bpf_sock_ops_get_flow_id

Testing

N/A

Documentation

Yes

Installation

No

Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
@dthaler
Copy link
Collaborator

dthaler commented Oct 31, 2025

Github CI should have commented on the lack of an issue number being referenced in the PR description.
(Commenting failed due to issue #4726 fixed in pending PR #4762.)

Copy link
Collaborator

@dthaler dthaler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Design proposal looks good to me.


## Summary

This proposal introduces a new helper function `bpf_sock_ops_get_flow_id()` that allows eBPF socket operations (sock_ops) programs to access the Windows Filtering Platform (WFP) flow ID associated with network connections. This enhancement enables eBPF programs to correlate network events with WFP flow tracking for advanced network monitoring, security analysis, and troubleshooting scenarios.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: recommend breaking source lines into 120 characters or less (per https://github.com/microsoft/ebpf-for-windows/blob/main/docs/DevelopmentGuide.md#formatting-notes "Source lines MUST NOT exceed 120 columns").

@dthaler
Copy link
Collaborator

dthaler commented Nov 3, 2025

Part of issue #4764 (this comment will link it to that issue)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants