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>
This commit is contained in:
committed by
David S. Miller
parent
b613f56ec9
commit
64be0aed59
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user