From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: matthias@urlichs.de Received: from krantz.zx2c4.com (localhost [127.0.0.1]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id f1b6a85b for ; Mon, 21 May 2018 13:52:27 +0000 (UTC) Received: from netz.smurf.noris.de (mail.vm.smurf.noris.de [IPv6:2001:780:107:8:83::]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 3e641429 for ; Mon, 21 May 2018 13:52:27 +0000 (UTC) Received: from [2001:780:107:0:1278:d2ff:fea3:d4a6] by mail.vm.smurf.noris.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1fKlFP-0005tF-1t for wireguard@lists.zx2c4.com; Mon, 21 May 2018 15:53:11 +0200 Subject: Re: WG: Need for HW-clock independent timestamps To: wireguard@lists.zx2c4.com References: <403fa228-40e5-cbe4-4135-15b71cf76553@cgws.de> <20180521112235.v2ksniasmd36kern@ghostArch.localdomain> <97874cad-ac60-5a88-a384-f036f9688668@cgws.de> <20180521123558.qemdunuwgr4u7gsj@ghostArch.localdomain> From: Matthias Urlichs Message-ID: <8fc246f8-7662-2fd2-f6ee-93d6802a37f0@urlichs.de> Date: Mon, 21 May 2018 15:53:10 +0200 MIME-Version: 1.0 In-Reply-To: <20180521123558.qemdunuwgr4u7gsj@ghostArch.localdomain> Content-Type: text/plain; charset=utf-8 List-Id: Development discussion of WireGuard List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 21.05.2018 14:35, Reto Brunner wrote: > If you just want a single write cycle, then you loose the ability to graceful > handle unexpected shutdowns. Why? > Even if you increment the counter by 10'000 when restoring it, who's to > say the device hasn't been running for several weeks before the > unexpected power cycle happened? So increment the counter by a trillion instead. It's large enough and you're not going to send a trillion packets before the next reboot. -- -- Matthias Urlichs