代码
登录 - Gitee.comhttps://gitee.com/r77683962/linux-6.9.0/commit/50bb00d844b9423c9bacf44d9b06604fab941686
https://gitee.com/r77683962/linux-6.9.0/raw/50bb00d844b9423c9bacf44d9b06604fab941686/dmesg_log/kern_tcp_with_state.log
从打印的日志,搜索关键字“TCP:”,把一些重复的信息去掉后(其实还不如直接用sed命令),CSDN排版可能不太好看,自已电脑可以使用 notepad++这类工具查看比较好,主要关注sk->sk_state这个字段,后边的状态数字来源这个枚举:
include\net\tcp_states.h
enum {
TCP_ESTABLISHED = 1,
TCP_SYN_SENT, 2
TCP_SYN_RECV, 3
TCP_FIN_WAIT1, 4
TCP_FIN_WAIT2, 5
TCP_TIME_WAIT, 6
TCP_CLOSE, 7
TCP_CLOSE_WAIT, 8
TCP_LAST_ACK, 9
TCP_LISTEN, 10
TCP_CLOSING, /* Now a valid state */ 11
TCP_NEW_SYN_RECV, 12
TCP_BOUND_INACTIVE, /* Pseudo-state for inet_diag */ 13
TCP_MAX_STATES /* Leave at the end! */
};
节选日志(状态很多都是1:TCP_ESTABLISHED ):
2024-06-18T18:46:48.944354: net/ipv4/tcp_output.c tcp_connect TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688
2024-06-18T18:46:48.944355: net/ipv4/tcp_output.c tcp_connect_init TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 2
2024-06-18T18:46:48.944357: net/ipv4/tcp_output.c __tcp_transmit_skb TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 2
2024-06-18T18:46:48.959320: net/ipv4/tcp_ipv4.c tcp_v4_rcv TCP:
2024-06-18T18:46:48.959323: net/ipv4/tcp_ipv4.c tcp_v4_do_rcv TCP:
2024-06-18T18:46:48.959325: net/ipv4/tcp_input.c tcp_rcv_state_process TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 2
2024-06-18T18:46:48.959328: net/ipv4/tcp_output.c tcp_send_ack TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:48.959329: net/ipv4/tcp_output.c __tcp_transmit_skb TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:48.966556: net/ipv4/tcp_output.c tcp_event_ack_sent TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.007577: net/ipv4/tcp.c tcp_sendmsg TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688
2024-06-18T18:46:49.007579: net/ipv4/tcp_output.c __tcp_transmit_skb TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.007580: net/ipv4/tcp_output.c tcp_event_ack_sent TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.007582: net/ipv4/tcp_output.c tcp_event_data_sent TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.007584: net/ipv4/tcp_output.c tcp_event_new_data_sent TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.009248: net/ipv4/tcp.c tcp_recvmsg TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688
2024-06-18T18:46:49.029118: net/ipv4/tcp_ipv4.c tcp_v4_rcv TCP:
2024-06-18T18:46:49.030464: net/ipv4/tcp_ipv4.c tcp_v4_do_rcv TCP:
2024-06-18T18:46:49.030494: net/ipv4/tcp_ipv4.c tcp_v4_rcv TCP:
2024-06-18T18:46:49.030509: net/ipv4/tcp_ipv4.c tcp_v4_do_rcv TCP:
2024-06-18T18:46:49.030512: net/ipv4/tcp_output.c tcp_send_ack TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.030514: net/ipv4/tcp_output.c __tcp_transmit_skb TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.031281: net/ipv4/tcp_output.c tcp_event_ack_sent TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.031310: net/ipv4/tcp.c tcp_recvmsg TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688
2024-06-18T18:46:49.031313: net/ipv4/tcp.c tcp_recvmsg TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688
2024-06-18T18:46:49.031316: net/ipv4/tcp_ipv4.c tcp_v4_rcv TCP:
2024-06-18T18:46:49.031318: net/ipv4/tcp.c tcp_recvmsg TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688
2024-06-18T18:46:49.031322: message repeated 2 times: [ net/ipv4/tcp.c tcp_recvmsg TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688]
2024-06-18T18:46:49.031323: net/ipv4/tcp_ipv4.c tcp_v4_do_rcv TCP:
2024-06-18T18:46:49.031329: net/ipv4/tcp_output.c tcp_send_ack TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.031340: net/ipv4/tcp_output.c __tcp_transmit_skb TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.031346: net/ipv4/tcp_output.c tcp_event_ack_sent TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.031985: net/ipv4/tcp.c tcp_recvmsg TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688
2024-06-18T18:46:49.032024: net/ipv4/tcp_ipv4.c tcp_v4_rcv TCP:
2024-06-18T18:46:49.032035: net/ipv4/tcp.c tcp_recvmsg TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688
2024-06-18T18:46:49.032037: net/ipv4/tcp_ipv4.c tcp_v4_do_rcv TCP:
2024-06-18T18:46:49.032038: net/ipv4/tcp_output.c tcp_send_ack TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.032039: net/ipv4/tcp_output.c __tcp_transmit_skb TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.032040: net/ipv4/tcp_output.c tcp_event_ack_sent TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.037550: net/ipv4/tcp.c tcp_recvmsg TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688
2024-06-18T18:46:49.040197: message repeated 4 times: [ net/ipv4/tcp.c tcp_recvmsg TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688]
2024-06-18T18:46:49.040198: net/ipv4/tcp.c tcp_sendmsg TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688
2024-06-18T18:46:49.040230: net/ipv4/tcp_output.c __tcp_transmit_skb TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.040232: net/ipv4/tcp_output.c tcp_event_ack_sent TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.040233: net/ipv4/tcp_output.c tcp_event_data_sent TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.040234: net/ipv4/tcp_output.c tcp_event_new_data_sent TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.058632: net/ipv4/tcp.c tcp_recvmsg TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688
2024-06-18T18:46:49.058779: net/ipv4/tcp_ipv4.c tcp_v4_rcv TCP:
2024-06-18T18:46:49.059284: net/ipv4/tcp_ipv4.c tcp_v4_do_rcv TCP:
2024-06-18T18:46:49.059309: net/ipv4/tcp_ipv4.c tcp_v4_rcv TCP:
2024-06-18T18:46:49.059312: net/ipv4/tcp_ipv4.c tcp_v4_do_rcv TCP:
2024-06-18T18:46:49.059313: net/ipv4/tcp_output.c tcp_send_delayed_ack TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.059321: net/ipv4/tcp.c tcp_recvmsg TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688
2024-06-18T18:46:49.060316: message repeated 5 times: [ net/ipv4/tcp.c tcp_recvmsg TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688]
2024-06-18T18:46:49.060317: net/ipv4/tcp.c tcp_sendmsg TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688
2024-06-18T18:46:49.060332: net/ipv4/tcp_output.c __tcp_transmit_skb TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.060333: net/ipv4/tcp_output.c tcp_event_ack_sent TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.060334: net/ipv4/tcp_output.c tcp_event_data_sent TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.060335: net/ipv4/tcp_output.c tcp_event_new_data_sent TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.062162: net/ipv4/tcp.c tcp_recvmsg TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688
2024-06-18T18:46:49.090562: net/ipv4/tcp_ipv4.c tcp_v4_rcv TCP:
2024-06-18T18:46:49.107841: net/ipv4/tcp_ipv4.c tcp_v4_do_rcv TCP:
2024-06-18T18:46:49.107873: net/ipv4/tcp_ipv4.c tcp_v4_rcv TCP:
2024-06-18T18:46:49.107875: net/ipv4/tcp_ipv4.c tcp_v4_do_rcv TCP:
2024-06-18T18:46:49.107877: net/ipv4/tcp_output.c tcp_send_delayed_ack TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.107879: net/ipv4/tcp.c tcp_recvmsg TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688
2024-06-18T18:46:49.108478: message repeated 2 times: [ net/ipv4/tcp.c tcp_recvmsg TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688]
2024-06-18T18:46:49.108526: net/ipv4/tcp_ipv4.c tcp_v4_rcv TCP:
2024-06-18T18:46:49.108559: net/ipv4/tcp_ipv4.c tcp_v4_do_rcv TCP:
2024-06-18T18:46:49.108561: net/ipv4/tcp_output.c tcp_send_ack TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.108563: net/ipv4/tcp_output.c __tcp_transmit_skb TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.109274: net/ipv4/tcp_output.c tcp_event_ack_sent TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.109317: net/ipv4/tcp.c tcp_recvmsg TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688
2024-06-18T18:46:49.111113: net/ipv4/tcp.c tcp_recvmsg TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688
2024-06-18T18:46:49.111151: net/ipv4/tcp_ipv4.c tcp_v4_rcv TCP:
2024-06-18T18:46:49.111173: net/ipv4/tcp_ipv4.c tcp_v4_do_rcv TCP:
2024-06-18T18:46:49.111176: net/ipv4/tcp_output.c tcp_send_delayed_ack TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.111178: net/ipv4/tcp_ipv4.c tcp_v4_rcv TCP:
2024-06-18T18:46:49.111179: net/ipv4/tcp_ipv4.c tcp_v4_do_rcv TCP:
2024-06-18T18:46:49.111180: net/ipv4/tcp_output.c tcp_send_ack TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.111181: net/ipv4/tcp_output.c __tcp_transmit_skb TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.111909: net/ipv4/tcp_output.c tcp_event_ack_sent TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.111940: net/ipv4/tcp.c tcp_recvmsg TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688
2024-06-18T18:46:49.111943: net/ipv4/tcp.c tcp_recvmsg TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688
2024-06-18T18:46:49.111947: net/ipv4/tcp_ipv4.c tcp_v4_rcv TCP:
2024-06-18T18:46:49.111960: net/ipv4/tcp_ipv4.c tcp_v4_do_rcv TCP:
2024-06-18T18:46:49.111962: net/ipv4/tcp_output.c tcp_send_ack TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.111963: net/ipv4/tcp_output.c __tcp_transmit_skb TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.112184: net/ipv4/tcp_output.c tcp_event_ack_sent TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.112192: net/ipv4/tcp.c tcp_recvmsg TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688
2024-06-18T18:46:49.112193: net/ipv4/tcp_ipv4.c tcp_v4_rcv TCP:
2024-06-18T18:46:49.112194: net/ipv4/tcp_ipv4.c tcp_v4_do_rcv TCP:
2024-06-18T18:46:49.112196: net/ipv4/tcp_output.c tcp_send_ack TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.112197: net/ipv4/tcp_output.c __tcp_transmit_skb TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.113065: net/ipv4/tcp_output.c tcp_event_ack_sent TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.114830: net/ipv4/tcp.c tcp_recvmsg TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688
2024-06-18T18:46:49.116221: message repeated 3 times: [ net/ipv4/tcp.c tcp_recvmsg TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688]
2024-06-18T18:46:49.116236: net/ipv4/tcp_ipv4.c tcp_v4_rcv TCP:
2024-06-18T18:46:49.116253: net/ipv4/tcp_ipv4.c tcp_v4_do_rcv TCP:
2024-06-18T18:46:49.116255: net/ipv4/tcp_output.c tcp_send_ack TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.116256: net/ipv4/tcp_output.c __tcp_transmit_skb TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.116257: net/ipv4/tcp_output.c tcp_event_ack_sent TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.116258: net/ipv4/tcp.c tcp_recvmsg TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688
2024-06-18T18:46:49.117238: net/ipv4/tcp.c tcp_recvmsg TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688
2024-06-18T18:46:49.128304: net/ipv4/tcp_ipv4.c tcp_v4_rcv TCP:
2024-06-18T18:46:49.128338: net/ipv4/tcp_ipv4.c tcp_v4_do_rcv TCP:
2024-06-18T18:46:49.128341: net/ipv4/tcp_output.c tcp_send_ack TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.128343: net/ipv4/tcp_output.c __tcp_transmit_skb TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.128359: net/ipv4/tcp_output.c tcp_event_ack_sent TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.128361: net/ipv4/tcp_ipv4.c tcp_v4_rcv TCP:
2024-06-18T18:46:49.128362: net/ipv4/tcp_ipv4.c tcp_v4_do_rcv TCP:
2024-06-18T18:46:49.128363: net/ipv4/tcp_output.c tcp_send_ack TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.128365: net/ipv4/tcp_output.c __tcp_transmit_skb TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.128366: net/ipv4/tcp_output.c tcp_event_ack_sent TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.128374: net/ipv4/tcp_ipv4.c tcp_v4_rcv TCP:
2024-06-18T18:46:49.128375: net/ipv4/tcp_ipv4.c tcp_v4_do_rcv TCP:
2024-06-18T18:46:49.128377: net/ipv4/tcp_output.c tcp_send_ack TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.128382: net/ipv4/tcp_output.c __tcp_transmit_skb TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.129211: net/ipv4/tcp_output.c tcp_event_ack_sent TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.129224: net/ipv4/tcp_ipv4.c tcp_v4_rcv TCP:
2024-06-18T18:46:49.129226: net/ipv4/tcp_ipv4.c tcp_v4_do_rcv TCP:
2024-06-18T18:46:49.129228: net/ipv4/tcp_output.c tcp_send_ack TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.129229: net/ipv4/tcp_output.c __tcp_transmit_skb TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.129230: net/ipv4/tcp_output.c tcp_event_ack_sent TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.129231: net/ipv4/tcp_ipv4.c tcp_v4_rcv TCP:
2024-06-18T18:46:49.129232: net/ipv4/tcp_ipv4.c tcp_v4_do_rcv TCP:
2024-06-18T18:46:49.129233: net/ipv4/tcp_output.c tcp_send_delayed_ack TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.129235: net/ipv4/tcp_ipv4.c tcp_v4_rcv TCP:
2024-06-18T18:46:49.129235: net/ipv4/tcp_ipv4.c tcp_v4_do_rcv TCP:
2024-06-18T18:46:49.129236: net/ipv4/tcp_output.c tcp_send_ack TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.129238: net/ipv4/tcp_output.c __tcp_transmit_skb TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.129239: net/ipv4/tcp_output.c tcp_event_ack_sent TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.129242: net/ipv4/tcp_ipv4.c tcp_v4_rcv TCP:
2024-06-18T18:46:49.129243: net/ipv4/tcp_ipv4.c tcp_v4_do_rcv TCP:
2024-06-18T18:46:49.129244: net/ipv4/tcp_output.c tcp_send_ack TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.129245: net/ipv4/tcp_output.c __tcp_transmit_skb TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.129246: net/ipv4/tcp_output.c tcp_event_ack_sent TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.129247: net/ipv4/tcp.c tcp_recvmsg TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688
2024-06-18T18:46:49.129255: message repeated 3 times: [ net/ipv4/tcp.c tcp_recvmsg TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688]
2024-06-18T18:46:49.138310: net/ipv4/tcp_ipv4.c tcp_v4_rcv TCP:
2024-06-18T18:46:49.138311: net/ipv4/tcp_ipv4.c tcp_v4_do_rcv TCP:
2024-06-18T18:46:49.138313: net/ipv4/tcp_output.c tcp_send_ack TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.138314: net/ipv4/tcp_output.c __tcp_transmit_skb TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.139195: net/ipv4/tcp_output.c tcp_event_ack_sent TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.139219: net/ipv4/tcp.c tcp_recvmsg TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688
2024-06-18T18:46:49.139232: net/ipv4/tcp.c tcp_recvmsg TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688
2024-06-18T18:46:49.139237: net/ipv4/tcp_ipv4.c tcp_v4_rcv TCP:
2024-06-18T18:46:49.139240: net/ipv4/tcp_ipv4.c tcp_v4_do_rcv TCP:
2024-06-18T18:46:49.139247: net/ipv4/tcp_output.c tcp_send_ack TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.139250: net/ipv4/tcp_output.c __tcp_transmit_skb TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.140322: net/ipv4/tcp_output.c tcp_event_ack_sent TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.140371: net/ipv4/tcp_ipv4.c tcp_v4_rcv TCP:
2024-06-18T18:46:49.140375: net/ipv4/tcp_ipv4.c tcp_v4_do_rcv TCP:
2024-06-18T18:46:49.140376: net/ipv4/tcp_output.c tcp_send_ack TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.140378: net/ipv4/tcp_output.c __tcp_transmit_skb TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.140379: net/ipv4/tcp_output.c tcp_event_ack_sent TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.140382: net/ipv4/tcp_ipv4.c tcp_v4_rcv TCP:
2024-06-18T18:46:49.140384: net/ipv4/tcp_ipv4.c tcp_v4_do_rcv TCP:
2024-06-18T18:46:49.140385: net/ipv4/tcp_output.c tcp_send_ack TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.140388: net/ipv4/tcp_output.c __tcp_transmit_skb TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.140390: net/ipv4/tcp_output.c tcp_event_ack_sent TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.140392: net/ipv4/tcp_ipv4.c tcp_v4_rcv TCP:
2024-06-18T18:46:49.140394: net/ipv4/tcp_ipv4.c tcp_v4_do_rcv TCP:
2024-06-18T18:46:49.140396: net/ipv4/tcp_output.c tcp_send_delayed_ack TCP: sk->sk_family: 2, sk->sk_portpair: 2304948993, sk->sk_dport: 47873, sk->sk_daddr: 2637854922, sk->sk_rcv_saddr: 1979754688, sk->sk_state: 1
2024-06-18T18:46:49.140397: net/ipv4/tcp_ipv4.c tcp_v4_rcv TCP:
2024-06-18T18:46:49.140399: net/ipv4/tcp_ipv4.c tcp_v4_do_rcv TCP:
从wget这个操作来看tcp_recvmsg出现了1424次:
tcp_sendmsg 出现了3次:
感觉TCP那个状态机,感觉看着有点乱。。。。