Commit d25ad290 authored by osdl.org!shemminger's avatar osdl.org!shemminger

Allow build on 2.4

(Logical change 1.16)
parent f1fa44da
...@@ -1318,6 +1318,7 @@ void tcp_show_info(struct nlmsghdr *nlh, struct tcpdiagmsg *r) ...@@ -1318,6 +1318,7 @@ void tcp_show_info(struct nlmsghdr *nlh, struct tcpdiagmsg *r)
if (info->tcpi_snd_ssthresh < 0xFFFF) if (info->tcpi_snd_ssthresh < 0xFFFF)
printf(" ssthresh:%d", info->tcpi_snd_ssthresh); printf(" ssthresh:%d", info->tcpi_snd_ssthresh);
#if LINUX_VERSION_CODE >= 0x20607
if (info->tcpi_rcv_rtt) if (info->tcpi_rcv_rtt)
printf(" rcv_rtt:%g", (double) info->tcpi_rcv_rtt/1000); printf(" rcv_rtt:%g", (double) info->tcpi_rcv_rtt/1000);
if (info->tcpi_rcv_space) if (info->tcpi_rcv_space)
...@@ -1340,6 +1341,7 @@ void tcp_show_info(struct nlmsghdr *nlh, struct tcpdiagmsg *r) ...@@ -1340,6 +1341,7 @@ void tcp_show_info(struct nlmsghdr *nlh, struct tcpdiagmsg *r)
8000000. / (double) vinfo->tcpv_rtt); 8000000. / (double) vinfo->tcpv_rtt);
} }
} }
#endif
} }
} }
......
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