diff options
author | Lorenzo Colitti <lorenzo@google.com> | 2015-12-16 03:30:03 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-12-16 04:26:51 (GMT) |
commit | 64be0aed59ad519d6f2160868734f7e278290ac1 (patch) | |
tree | b260bf31b69ecc73f490d13151cb795901ecbb36 /include/net/sock.h | |
parent | b613f56ec9baf30edf5d9d607b822532a273dad7 (diff) | |
download | linux-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/net/sock.h')
-rw-r--r-- | include/net/sock.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/sock.h b/include/net/sock.h index ab0269f..6e6e8a2 100644 --- a/include/net/sock.h +++ b/include/net/sock.h @@ -1060,6 +1060,7 @@ struct proto { void (*destroy_cgroup)(struct mem_cgroup *memcg); struct cg_proto *(*proto_cgroup)(struct mem_cgroup *memcg); #endif + int (*diag_destroy)(struct sock *sk, int err); }; int proto_register(struct proto *prot, int alloc_slab); |