瀏覽代碼

add new tcp_info fields from linux v4.6

new fields and associated linux commit:
tcpi_notsent_bytes, tcpi_min_rtt cd9b266095f422267bddbec88f9098b48ea548fc
tcpi_data_segs_in, tcpi_data_segs_out a44d6eacdaf56f74fad699af7f4925a5f5ac0e7f
Szabolcs Nagy 9 年之前
父節點
當前提交
349877755d
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      include/netinet/tcp.h

+ 4 - 0
include/netinet/tcp.h

@@ -184,6 +184,10 @@ struct tcp_info
 	uint64_t tcpi_bytes_received;
 	uint32_t tcpi_segs_out;
 	uint32_t tcpi_segs_in;
+	uint32_t tcpi_notsent_bytes;
+	uint32_t tcpi_min_rtt;
+	uint32_t tcpi_data_segs_in;
+	uint32_t tcpi_data_segs_out;
 };
 
 #define TCP_MD5SIG_MAXKEYLEN    80