summaryrefslogtreecommitdiff
path: root/include/linux/inet_diag.h
diff options
context:
space:
mode:
authorIvan Delalande <colona@arista.com>2017-08-31 19:59:38 +0300
committerDavid S. Miller <davem@davemloft.net>2017-09-02 04:38:09 +0300
commitb37e88407c1d78f157778d73427cd7e9e1d6369d (patch)
tree5bd87476c4a0e835d01179270abffbdcfc6b5471 /include/linux/inet_diag.h
parent6391c4f67ad1643a17b54376e381038b9e660a0f (diff)
downloadlinux-b37e88407c1d78f157778d73427cd7e9e1d6369d.tar.xz
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>
Diffstat (limited to 'include/linux/inet_diag.h')
-rw-r--r--include/linux/inet_diag.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/inet_diag.h b/include/linux/inet_diag.h
index 65da430e260f..ee251c585854 100644
--- a/include/linux/inet_diag.h
+++ b/include/linux/inet_diag.h
@@ -25,6 +25,13 @@ struct inet_diag_handler {
struct inet_diag_msg *r,
void *info);
+ int (*idiag_get_aux)(struct sock *sk,
+ bool net_admin,
+ struct sk_buff *skb);
+
+ size_t (*idiag_get_aux_size)(struct sock *sk,
+ bool net_admin);
+
int (*destroy)(struct sk_buff *in_skb,
const struct inet_diag_req_v2 *req);