little-dude / netlink

netlink libraries for rust
Other
329 stars 89 forks source link

diag: add support for SOCK_DESTROY #279

Closed anisse closed 2 years ago

anisse commented 2 years ago

It is implemented on top of SockDiagMessage, and allows using Linux's CONFIG_INET_DIAG_DESTROY feature to close an arbitrary socket.

Please consider this PR more like a request for comments, and a feature request for SOCK_DESTROY support. I'm not really a fan of how it's implemented, but I wanted to see if this was possible, and sent the first working version :-)

cathay4t commented 2 years ago

@anisse Sorry. I clicked the merge on wrong PR. Could you open a new PR for review and dicussion? Thank you!

anisse commented 2 years ago

@anisse Sorry. I clicked the merge on wrong PR. Could you open a new PR for review and dicussion? Thank you!

Done !