diff options
author | Craig Gallek <kraig@google.com> | 2015-06-15 17:26:19 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-06-16 04:49:22 +0200 |
commit | 3fd22af808f4d7455ba91596d334438c7ee0f889 (patch) | |
tree | 96b0f9e9e4d067bae6d5068cc8a8d0617d2d408e /net/ipv4/udp_diag.c | |
parent | sock_diag: define destruction multicast groups (diff) | |
download | linux-3fd22af808f4d7455ba91596d334438c7ee0f889.tar.xz linux-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 'net/ipv4/udp_diag.c')
-rw-r--r-- | net/ipv4/udp_diag.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv4/udp_diag.c b/net/ipv4/udp_diag.c index b763c39ae1d7..6116604bf6e8 100644 --- a/net/ipv4/udp_diag.c +++ b/net/ipv4/udp_diag.c @@ -170,6 +170,7 @@ static const struct inet_diag_handler udp_diag_handler = { .dump_one = udp_diag_dump_one, .idiag_get_info = udp_diag_get_info, .idiag_type = IPPROTO_UDP, + .idiag_info_size = 0, }; static void udplite_diag_dump(struct sk_buff *skb, struct netlink_callback *cb, @@ -190,6 +191,7 @@ static const struct inet_diag_handler udplite_diag_handler = { .dump_one = udplite_diag_dump_one, .idiag_get_info = udp_diag_get_info, .idiag_type = IPPROTO_UDPLITE, + .idiag_info_size = 0, }; static int __init udp_diag_init(void) |