net: diag: Support SOCK_DESTROY for inet sockets.
authorLorenzo Colitti <lorenzo@google.com>
Wed, 16 Dec 2015 03:30:04 +0000 (12:30 +0900)
committerLorenzo Colitti <lorenzo@google.com>
Thu, 25 Feb 2016 00:01:21 +0000 (09:01 +0900)
commitc4c2b94c178d8b5676595b5435e86b55159f4a89
tree5de83baabb86e6174e4cf47c46c479e4e2514abf
parentf340b7c9ecf2daeb454df421b7cc4b0ca74bc545
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