diff options
author | Wei Wang <weiwan@google.com> | 2020-09-02 01:10:08 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-04 01:17:28 +0300 |
commit | c1077616142907bb6ee987ecd136d6857ffd8787 (patch) | |
tree | 50914fc894031bc4281ef9881ba6d2b03c698b3c /include/linux/inet_diag.h | |
parent | a33d91ee3817ef00fc7abfe95ab0b8ccef1b26fb (diff) | |
download | linux-c1077616142907bb6ee987ecd136d6857ffd8787.tar.xz |
ip: expose inet sockopts through inet_diag
Expose all exisiting inet sockopt bits through inet_diag for debug purpose.
Corresponding changes in iproute2 ss will be submitted to output all
these values.
Signed-off-by: Wei Wang <weiwan@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Mahesh Bandewar <maheshb@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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/inet_diag.h b/include/linux/inet_diag.h index 0ef2d800fda7..84abb30a3fbb 100644 --- a/include/linux/inet_diag.h +++ b/include/linux/inet_diag.h @@ -75,6 +75,8 @@ static inline size_t inet_diag_msg_attrs_size(void) #ifdef CONFIG_SOCK_CGROUP_DATA + nla_total_size_64bit(sizeof(u64)) /* INET_DIAG_CGROUP_ID */ #endif + + nla_total_size(sizeof(struct inet_diag_sockopt)) + /* INET_DIAG_SOCKOPT */ ; } int inet_diag_msg_attrs_fill(struct sock *sk, struct sk_buff *skb, |