Date: Tue, 19 Feb 2013 18:42:40 +0000 From: Alex Yong <annonymouse+freebsd@gmail.com> To: freebsd-net@freebsd.org Subject: Wallclock vs monotonic time in v6 expiry times? Message-ID: <CAJW_4zAszUermNQ0Xmz_G2A1X9Oz-2WhbrRj3UNKtCnDu-obmg@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hi, I've been looking around in the IPv6 code recently and I noticed that time_second seems to be the clock of choice for calculating expiry times for prefixes, routers and addresses. Is there any specific reason it uses wall clock time and not time_uptime as this makes more sense to me? I'm referring to the kernel's internal representation of these expiry times, rather than what's exposed via sysctls. As an example, dr0.expire = time_second + dr0.rtlifetime; taken from sys/netinet6/nd6_rtr.c from nd6_ra_input. AlexY
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJW_4zAszUermNQ0Xmz_G2A1X9Oz-2WhbrRj3UNKtCnDu-obmg>