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.
Showing the changes to include/uapi (1 of 3 files). Show all
Unified · Split
| @@ -160,6 +160,7 @@ enum { · 159 unmodified lines | ||
| 160 | 160 | INET_DIAG_ULP_INFO, |
| 161 | 161 | INET_DIAG_SK_BPF_STORAGES, |
| 162 | 162 | INET_DIAG_CGROUP_ID, |
| 163 | + INET_DIAG_SOCKOPT, | |
| 163 | 164 | __INET_DIAG_MAX, |
| 164 | 165 | }; |
| 165 | 166 | |
| @@ -183,6 +184,23 @@ struct inet_diag_meminfo { · 17 unmodified lines | ||
| 183 | 184 | __u32 idiag_tmem; |
| 184 | 185 | }; |
| 185 | 186 | |
| 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 | + | |
| 186 | 204 | /* INET_DIAG_VEGASINFO */ |
| 187 | 205 | |
| 188 | 206 | struct tcpvegas_info { |