aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_input.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/tcp_input.c')
-rw-r--r--net/ipv4/tcp_input.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c
index 2e878f392..c934446f3 100644
--- a/net/ipv4/tcp_input.c
+++ b/net/ipv4/tcp_input.c
@@ -3098,6 +3098,13 @@ static bool tcp_ack_update_rtt(struct sock *sk, const int flag,
3098 3098
3099 /* RFC6298: only reset backoff on valid RTT measurement. */ 3099 /* RFC6298: only reset backoff on valid RTT measurement. */
3100 inet_csk(sk)->icsk_backoff = 0; 3100 inet_csk(sk)->icsk_backoff = 0;
3101 //打印RTT
3102 struct inet_sock *inet2;
3103 inet2 = inet_sk(sk);
3104 if(ntohs(inet2->inet_dport) == 5201 || ntohs(inet2->inet_sport) == 5201){
3105 printk(KERN_DEBUG "in tcp_ack_update_rtt now RTT is %ld\n",rs->rtt_us);
3106 // printk(KERN_DEBUG "in tcp_ack_update_rtt cwnd is %u\n", tp->snd_cwnd);
3107 }
3101 return true; 3108 return true;
3102} 3109}
3103 3110