History

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.

Wei Wang committed 6 years ago

Commit c1077611 parent a33d91e3 files · +37 −0Browse files

Showing the changes to include/uapi (1 of 3 files). Show all

Unified · Split

include/uapi/linux/inet_diag.h+18−0
@@ -160,6 +160,7 @@ enum { · 159 unmodified lines
160 INET_DIAG_ULP_INFO,160 INET_DIAG_ULP_INFO,
161 INET_DIAG_SK_BPF_STORAGES,161 INET_DIAG_SK_BPF_STORAGES,
162 INET_DIAG_CGROUP_ID,162 INET_DIAG_CGROUP_ID,
163 INET_DIAG_SOCKOPT,
163 __INET_DIAG_MAX,164 __INET_DIAG_MAX,
164};165};
165 166
@@ -183,6 +184,23 @@ struct inet_diag_meminfo { · 17 unmodified lines
183 __u32 idiag_tmem;184 __u32 idiag_tmem;
184};185};
185 186
187/* INET_DIAG_SOCKOPT */
188
189struct inet_diag_sockopt {
190 __u8 recverr:1,
191 is_icsk:1,
192 freebind:1,
193 hdrincl:1,
194 mc_loop:1,
195 transparent:1,
196 mc_all:1,
197 nodefrag:1;
198 __u8 bind_address_no_port:1,
199 recverr_rfc4884:1,
200 defer_connect:1,
201 unused:5;
202};
203
186/* INET_DIAG_VEGASINFO */204/* INET_DIAG_VEGASINFO */
187 205
188struct tcpvegas_info {206struct tcpvegas_info {