tcpi_client_accecn_state tcpi_connstatus tcpi_delivered_ce_bytes tcpi_delivered_ect0_bytes tcpi_delivered_ect1_bytes tcpi_dsack_recvd tcpi_dsack_sent tcpi_ecn_capable_packets_acked tcpi_ecn_capable_packets_lost tcpi_ecn_capable_packets_marked tcpi_ecn_capable_packets_sent tcpi_ecn_clien...
(socklen_t *)&len); printf("info.tcpi_state = %d\n",info.tcpi_state); if(info.tcpi_state == TCP_ESTABLISHED) { printf("connect ok \r\n"); //return 0; } else { printf("connect error\r\n"); //return -1; } } sleep(1); printf("\n\n"); } } 编辑于 2024-12-03...
tcpi_rcv_ooopack}, {"snd_zerowin", info.tcpi_snd_zerowin}, }; #elif defined(__OpenBSD__) json jinfo{ {"state", info.tcpi_state}, {"ca_state", info.__tcpi_ca_state}, {"retransmits", info.__tcpi_retransmits}, {"probes", info.__tcpi_probes}, {"backoff", info.__t...
u64 tcpi_bytes_sent; u64 tcpi_bytes_retrans; u32 tcpi_dsack_dups; u32 tcpi_reord_seen; u32 tcpi_rcv_ooopack; u32 tcpi_snd_wnd; }; /* values for tcp_info.tcpi_state */ enum { TCP_ESTABLISHED = 1, TCP_SYN_SENT, TCP_SYN_RECV, TCP_FIN_WAIT1, TCP_FIN_WAIT2, TCP_TIM...
+#define TCPI_HOOK_SSN_CLOSE 0x08u + struct Config { int sample; const char* log_file; int log_fd; int log_level; - int hook; }; -static Config config; - -static void -load_config() { - char config_file[PATH_MAX];
__u8 tcpi_ca_state; //congestion state: __u8 tcpi_retransmits; //重传数,表示当前待重传的包数,这个值在重传完毕后清零 __u8 tcpi_probes; ///* 持续定时器或保活定时器发送且未确认的段数*/ __u8 tcpi_backoff; //用来计算持续定时器的下一个设计值的指数退避算法指数,在传送超时是会递增。
info->tcpi_bytes_acked=tp->bytes_acked; spin_unlock_bh(&sk->sk_lock.slock); } EXPORT_SYMBOL_GPL(tcp_get_info); 13 changes: 11 additions & 2 deletions 13 net/ipv4/tcp_input.c Original file line numberDiff line numberDiff line change ...
("tcpi_state", __u8), ("tcpi_ca_state", __u8), ("tcpi_retransmits", __u8), ("tcpi_probes", __u8), ("tcpi_backoff", __u8), ("tcpi_options", __u8), ("tcpi_snd_wscale", __u8, 4), ("tcpi_rcv_wscale", __u8, 4), ("tcpi_rto",...
("tcpi_state", __u8), ("tcpi_ca_state", __u8), ("tcpi_retransmits", __u8), ("tcpi_probes", __u8), ("tcpi_backoff", __u8), ("tcpi_options", __u8), ("tcpi_snd_wscale", __u8, 4), ("tcpi_rcv_wscale", __u8, 4), ("tcpi_rto", __u32), ...