Commit 81cfe912 authored by Stephen Hemminger's avatar Stephen Hemminger

[TCP]: Add receive DRS info to tcp_info.

parent 66b992e8
...@@ -183,6 +183,9 @@ struct tcp_info ...@@ -183,6 +183,9 @@ struct tcp_info
__u32 tcpi_snd_cwnd; __u32 tcpi_snd_cwnd;
__u32 tcpi_advmss; __u32 tcpi_advmss;
__u32 tcpi_reordering; __u32 tcpi_reordering;
__u32 tcpi_rcv_rtt;
__u32 tcpi_rcv_space;
}; };
#ifdef __KERNEL__ #ifdef __KERNEL__
......
...@@ -91,6 +91,9 @@ void tcp_get_info(struct sock *sk, struct tcp_info *info) ...@@ -91,6 +91,9 @@ void tcp_get_info(struct sock *sk, struct tcp_info *info)
info->tcpi_snd_cwnd = tp->snd_cwnd; info->tcpi_snd_cwnd = tp->snd_cwnd;
info->tcpi_advmss = tp->advmss; info->tcpi_advmss = tp->advmss;
info->tcpi_reordering = tp->reordering; info->tcpi_reordering = tp->reordering;
info->tcpi_rcv_rtt = ((1000000*tp->rcv_rtt_est.rtt)/HZ)>>3;
info->tcpi_rcv_space = tp->rcvq_space.space;
} }
static int tcpdiag_fill(struct sk_buff *skb, struct sock *sk, static int tcpdiag_fill(struct sk_buff *skb, struct sock *sk,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment