aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp/diag.c
diff options
context:
space:
mode:
authorCraig Gallek <kraig@google.com>2015-06-15 11:26:19 -0400
committerDavid S. Miller <davem@davemloft.net>2015-06-15 19:49:22 -0700
commit3fd22af808f4d7455ba91596d334438c7ee0f889 (patch)
tree96b0f9e9e4d067bae6d5068cc8a8d0617d2d408e /net/dccp/diag.c
parentsock_diag: define destruction multicast groups (diff)
downloadlinux-dev-3fd22af808f4d7455ba91596d334438c7ee0f889.tar.xz
linux-dev-3fd22af808f4d7455ba91596d334438c7ee0f889.zip
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>
Diffstat (limited to '')
-rw-r--r--net/dccp/diag.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/dccp/diag.c b/net/dccp/diag.c
index 5a45f8de5d99..2d84303ea6bf 100644
--- a/net/dccp/diag.c
+++ b/net/dccp/diag.c
@@ -66,6 +66,7 @@ static const struct inet_diag_handler dccp_diag_handler = {
.dump_one = dccp_diag_dump_one,
.idiag_get_info = dccp_diag_get_info,
.idiag_type = IPPROTO_DCCP,
+ .idiag_info_size = sizeof(struct tcp_info),
};
static int __init dccp_diag_init(void)