net: diag: Support SOCK_DESTROY for inet sockets.
authorLorenzo Colitti <lorenzo@google.com>
Wed, 16 Dec 2015 03:30:04 +0000 (12:30 +0900)
committerAmit Pundir <amit.pundir@linaro.org>
Thu, 7 Apr 2016 11:19:53 +0000 (16:49 +0530)
commit1046108bbba31dc9f080c176647fa59f50118622
tree85ff163f3cd13d19f1dc69a8d01fbe6b837bef59
parent7ae15a607bb106627859da621bd7543d44a6b61d
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.

[backport of net-next 6eb5d2e08f071c05ecbe135369c9ad418826cab2]

Change-Id: Idc13a7def20f492a5323ad2f8de105426293bd37
Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/inet_diag.h
net/ipv4/inet_diag.c