summaryrefslogtreecommitdiff
path: root/include/uapi/linux/sock_diag.h
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2015-12-16 06:30:03 +0300
committerDavid S. Miller <davem@davemloft.net>2015-12-16 07:26:51 +0300
commit64be0aed59ad519d6f2160868734f7e278290ac1 (patch)
treeb260bf31b69ecc73f490d13151cb795901ecbb36 /include/uapi/linux/sock_diag.h
parentb613f56ec9baf30edf5d9d607b822532a273dad7 (diff)
downloadlinux-64be0aed59ad519d6f2160868734f7e278290ac1.tar.xz
net: diag: Add the ability to destroy a socket.
This patch adds a SOCK_DESTROY operation, a destroy function pointer to sock_diag_handler, and a diag_destroy function pointer. It does not include any implementation code. Signed-off-by: Lorenzo Colitti <lorenzo@google.com> Acked-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/sock_diag.h')
-rw-r--r--include/uapi/linux/sock_diag.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/sock_diag.h b/include/uapi/linux/sock_diag.h
index 49230d36f9ce..bae2d80034d4 100644
--- a/include/uapi/linux/sock_diag.h
+++ b/include/uapi/linux/sock_diag.h
@@ -4,6 +4,7 @@
#include <linux/types.h>
#define SOCK_DIAG_BY_FAMILY 20
+#define SOCK_DESTROY 21
struct sock_diag_req {
__u8 sdiag_family;