sock_diag: specify info_size per inet protocol
authorCraig Gallek <kraig@google.com>
Mon, 15 Jun 2015 15:26:19 +0000 (11:26 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Jun 2015 02:49:22 +0000 (19:49 -0700)
commit3fd22af808f4d7455ba91596d334438c7ee0f889
tree96b0f9e9e4d067bae6d5068cc8a8d0617d2d408e
parenteb4cb008529ca08e0d8c0fa54e8f739520197a65
sock_diag: specify info_size per inet protocol

Previously, there was no clear distinction between the inet protocols
that used struct tcp_info to report information and those that didn't.
This change adds a specific size attribute to the inet_diag_handler
struct which defines these interfaces.  This will make dispatching
sock_diag get_info requests identical for all inet protocols in a
following patch.

Tested: ss -au
Tested: ss -at
Signed-off-by: Craig Gallek <kraig@google.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/inet_diag.h
net/dccp/diag.c
net/ipv4/inet_diag.c
net/ipv4/tcp_diag.c
net/ipv4/udp_diag.c