net: diag: Support SOCK_DESTROY for inet sockets.
This passes the SOCK_DESTROY operation to the underlying protocol diag handler, or returns -EOPNOTSUPP if that handler does not define a destroy operation. Most of this patch is just renaming functions. This is not strictly necessary, but it would be fairly counterintuitive to have the code to destroy inet sockets be in a function whose name starts with inet_diag_get. 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
64be0aed59
commit
6eb5d2e08f
@@ -24,6 +24,10 @@ struct inet_diag_handler {
|
||||
void (*idiag_get_info)(struct sock *sk,
|
||||
struct inet_diag_msg *r,
|
||||
void *info);
|
||||
|
||||
int (*destroy)(struct sk_buff *in_skb,
|
||||
const struct inet_diag_req_v2 *req);
|
||||
|
||||
__u16 idiag_type;
|
||||
__u16 idiag_info_size;
|
||||
};
|
||||
|
Reference in New Issue
Block a user