Skip to content

Add SockFilter #581

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 25, 2025
Merged

Add SockFilter #581

merged 2 commits into from
May 25, 2025

Conversation

Thomasdezeeuw
Copy link
Collaborator

A wrapper around libc::sock_filter, so we don't use any libc types in our API.

/// Berkeley Packet Filter (BPF).
///
/// See [`Socket::attach_filter[
#[cfg(all(feature = "all", any(target_os = "linux", target_os = "android")))]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Cygwin?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm using the same cfg as for the attach_filter method where this is used.

A wrapper around libc::sock_filter, so we don't use any libc types in
our API.
@Thomasdezeeuw Thomasdezeeuw merged commit 2446f48 into master May 25, 2025
44 of 46 checks passed
@Thomasdezeeuw Thomasdezeeuw deleted the add-SockFilter branch May 25, 2025 11:07
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