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

diag: add support for SOCK_DESTROY #15

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Oct 12, 2023

  1. diag: add support for SOCK_DESTROY

    It is implemented on top of SockDiagMessage, and allows using Linux's
    CONFIG_INET_DIAG_DESTROY feature to close an arbitrary socket.
    
    A long running, but buggy process might have hanging sockets kept alive
    by error. Using SOCK_DESTROY allows closing arbitrary sockets as root;
    an example tool that uses this feature and this crate is at:
    https://github.com/anisse/tcpkill
    anisse committed Oct 12, 2023
    Configuration menu
    Copy the full SHA
    33579af View commit details
    Browse the repository at this point in the history