summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_output.c
diff options
context:
space:
mode:
authortholo <tholo@openbsd.org>2004-06-21 23:50:35 +0000
committertholo <tholo@openbsd.org>2004-06-21 23:50:35 +0000
commit3212dc310ec9c3aa2cd9e7180fe81d66a37e4443 (patch)
treeb8b428eb79259cc5ab8e628e0b78b672af7aa38b /sys/netinet/ip_output.c
parentWhen in_ifinit fails and we've created a new address, clean it up before (diff)
downloadwireguard-openbsd-3212dc310ec9c3aa2cd9e7180fe81d66a37e4443.tar.xz
wireguard-openbsd-3212dc310ec9c3aa2cd9e7180fe81d66a37e4443.zip
First step towards more sane time handling in the kernel -- this changes
things such that code that only need a second-resolution uptime or wall time, and used to get that from time.tv_secs or mono_time.tv_secs now get this from separate time_t globals time_second and time_uptime. ok art@ niklas@ nordin@
Diffstat (limited to 'sys/netinet/ip_output.c')
-rw-r--r--sys/netinet/ip_output.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c
index 701134d30cf..69badd9337a 100644
--- a/sys/netinet/ip_output.c
+++ b/sys/netinet/ip_output.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_output.c,v 1.165 2004/06/21 19:26:01 mcbride Exp $ */
+/* $OpenBSD: ip_output.c,v 1.166 2004/06/21 23:50:37 tholo Exp $ */
/* $NetBSD: ip_output.c,v 1.28 1996/02/13 23:43:07 christos Exp $ */
/*
@@ -618,7 +618,7 @@ sendit:
/* Check if we are allowed to fragment */
if (ip_mtudisc && (ip->ip_off & htons(IP_DF)) && tdb->tdb_mtu &&
ntohs(ip->ip_len) > tdb->tdb_mtu &&
- tdb->tdb_mtutimeout > time.tv_sec) {
+ tdb->tdb_mtutimeout > time_second) {
struct rtentry *rt = NULL;
int rt_mtucloned = 0;