Skip to content
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

datalink(linux): add feature to pass the fd (socket) to ::channel() #584

Merged
merged 1 commit into from
May 30, 2024

Commits on May 30, 2024

  1. datalink(linux): add feature to pass the fd (socket) to ::channel()

    This can be useful if the caller want to manipulate the
    socket differently at creating. For example setting a
    BPF filter on the socket before passing it in the channel:
    
    ```
    datalink::linux::channel(interface, config, socket_fd)
    ```
    
    Signed-off-by: Martin Andre <martin.andre@tessares.net>
    Martichou authored and mrmonday committed May 30, 2024
    Configuration menu
    Copy the full SHA
    bd4c8b0 View commit details
    Browse the repository at this point in the history