summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_fastfwd.c
diff options
context:
space:
mode:
authorandre <andre@FreeBSD.org>2005-09-19 22:54:55 +0000
committerandre <andre@FreeBSD.org>2005-09-19 22:54:55 +0000
commitb1aa5bb640247072fc8d1d7048d185f1394ada0e (patch)
tree367e738ce0debc500f889e7881a2f0024d561920 /sys/netinet/ip_fastfwd.c
parentc4178ac83e7a9df4a8066ef58796d8b474a13d06 (diff)
downloadFreeBSD-src-b1aa5bb640247072fc8d1d7048d185f1394ada0e.zip
FreeBSD-src-b1aa5bb640247072fc8d1d7048d185f1394ada0e.tar.gz
Use monotonic 'time_uptime' instead of 'time_second' as timebase
for rt->rt_rmx.rmx_expire.
Diffstat (limited to 'sys/netinet/ip_fastfwd.c')
-rw-r--r--sys/netinet/ip_fastfwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/ip_fastfwd.c b/sys/netinet/ip_fastfwd.c
index 8a84078..1f5f535 100644
--- a/sys/netinet/ip_fastfwd.c
+++ b/sys/netinet/ip_fastfwd.c
@@ -495,7 +495,7 @@ passout:
* Check if route is dampned (when ARP is unable to resolve)
*/
if ((ro.ro_rt->rt_flags & RTF_REJECT) &&
- ro.ro_rt->rt_rmx.rmx_expire >= time_second) {
+ ro.ro_rt->rt_rmx.rmx_expire >= time_uptime) {
icmp_error(m, ICMP_UNREACH, ICMP_UNREACH_HOST, 0, 0);
goto consumed;
}
OpenPOWER on IntegriCloud