Allow build on 2.4

(Logical change 1.16)
This commit is contained in:
osdl.org!shemminger 2004-06-08 23:50:43 +00:00
parent f1fa44da2c
commit d25ad2901e
1 changed files with 2 additions and 0 deletions

View File

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