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
160160 INET_DIAG_ULP_INFO,
161161 INET_DIAG_SK_BPF_STORAGES,
162162 INET_DIAG_CGROUP_ID,
163+ INET_DIAG_SOCKOPT,
163164 __INET_DIAG_MAX,
164165 };
165166
@@ -183,6 +184,23 @@ struct inet_diag_meminfo { · 17 unmodified lines
183184 __u32 idiag_tmem;
184185 };
185186
187+/* INET_DIAG_SOCKOPT */
188+
189+struct 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+
186204 /* INET_DIAG_VEGASINFO */
187205
188206 struct tcpvegas_info {