From owner-freebsd-net@FreeBSD.ORG Tue Feb 19 18:42:42 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id D2FEE226 for ; Tue, 19 Feb 2013 18:42:42 +0000 (UTC) (envelope-from annonymouse@gmail.com) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 75403DAB for ; Tue, 19 Feb 2013 18:42:41 +0000 (UTC) Received: by mail-wg0-f50.google.com with SMTP id es5so5632256wgb.17 for ; Tue, 19 Feb 2013 10:42:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:date:x-google-sender-auth:message-id :subject:from:to:content-type; bh=MGHc8Ce5INH6bHlF/tFo19L58Nc6K5G/T5RjmCTYgvY=; b=I7uFUvZRkMPBgje9pCDr4BPytbT8oOCs3nRy4W3Y4LGZeoM8jrddpzqe2iV8qLmJTe 8xzO09L3EhRhK9y339VKbARBvVLHum5psu4+UFiy8rdf9DZ+sUBOch+np1xIUwiNXedk +USACJ6xaRQEr5dSuo7aIUkYxOF0OFB+MnagsKFdrlcKMf3r7qJl3toPD3fgt2npUgcJ jhjzGxtN8KTPi6u2GF+bGGmuPylOkNnvCmbnjEKPIubE/cKVStDXoxcEHJqVQCcxldrt 37ZhasdhpuhHMgbMAki0uxqYte2lbYLVo4D5PniZFMbHM0Fma2/27M+sklD5mEuEFoNH 5eCA== MIME-Version: 1.0 X-Received: by 10.194.83.105 with SMTP id p9mr28605225wjy.56.1361299360834; Tue, 19 Feb 2013 10:42:40 -0800 (PST) Sender: annonymouse@gmail.com Received: by 10.217.50.67 with HTTP; Tue, 19 Feb 2013 10:42:40 -0800 (PST) Date: Tue, 19 Feb 2013 18:42:40 +0000 X-Google-Sender-Auth: m0XX3ogl2p17O1r5NxHAl8RU44o Message-ID: Subject: Wallclock vs monotonic time in v6 expiry times? From: Alex Yong To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Feb 2013 18:42:42 -0000 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