inet_diag: allow protocols to provide additional data
authorIvan Delalande <colona@arista.com>
Thu, 31 Aug 2017 16:59:38 +0000 (09:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Sep 2017 01:38:09 +0000 (18:38 -0700)
commitb37e88407c1d78f157778d73427cd7e9e1d6369d
tree5bd87476c4a0e835d01179270abffbdcfc6b5471
parent6391c4f67ad1643a17b54376e381038b9e660a0f
inet_diag: allow protocols to provide additional data

Extend inet_diag_handler to allow individual protocols to report
additional data on INET_DIAG_INFO through idiag_get_aux. The size
can be dynamic and is computed by idiag_get_aux_size.

Signed-off-by: Ivan Delalande <colona@arista.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