From owner-svn-src-head@freebsd.org Fri Nov 25 21:39:39 2016 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7E8CCC55F60; Fri, 25 Nov 2016 21:39:39 +0000 (UTC) (envelope-from kubito@gmail.com) Received: from mail-wj0-x244.google.com (mail-wj0-x244.google.com [IPv6:2a00:1450:400c:c01::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1B10BA7B; Fri, 25 Nov 2016 21:39:39 +0000 (UTC) (envelope-from kubito@gmail.com) Received: by mail-wj0-x244.google.com with SMTP id o2so3055251wje.2; Fri, 25 Nov 2016 13:39:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version; bh=5kJAkoq8uemaam81B29fZULwzGPgysSt+U+LD8J4zXI=; b=0OrQ6JqksgnOKEvsqRwozOto/uR00qp+A6vVLf7cVQNgiasD+S1XAE+DTlklQfyf5c 1IyJI+146r0c5+hpeLiljgO14OZkLHbJj7TnzdEXl1cDsuCkCixZu1yqf8T8k/eW7Itc rsxAS3YHfxHaBvl7iMBzwOdlYmVBNUtk1m1895f2PNIIxtbxAFFz4SHUdPXRwjUNTVE7 loTvTd3RVYhs1ODn4/yWPamZgO8YY0Sfrw+ZfbF9JRlVNGMeciFjjF0jthPOQmkBJb6/ +0+vMpU3dhsN7FqRPy4F5o7v/mxc1j0oGilsj93IzWAV6PC1W9EEaecoEwQ45TDufWt9 JAWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version; bh=5kJAkoq8uemaam81B29fZULwzGPgysSt+U+LD8J4zXI=; b=dzzRLLv4bCpV7zNaNjDxMAZ67va2UlE6TAF9phjNzuGxIOecXZo96aZDMSLCWZOKZh 83iGm7FAru5r/6UZcrIhCm9Vy7KFjOhfVrYj6zOCsny9q7IzQSSkkBM01NCmUCr9Ftiu zwdfTGyIxW4oZk7vnxJ/vGgzHR6ymW92tM0eZdsRqdR8I1FgIhNrVaM5kHCPZllB+u4G 1dfvYKmO9R5jjQrEazuzygPwekwsytv2VQ/rbopxLBf96Ha8i//TczkMLJsRETwhZHQn NjhT5sJXq3AAsYiJcS2UuAAvK1SQ886AurRxxhShdCb9ED8JvZTccV0ceR7x6qkHJqII iKlA== X-Gm-Message-State: AKaTC01w359f4bL+K+plDknDZXO7Gb9sBESWPgPjcnuJrhjIXq/uPUjf7jx9FAd8es6pyQ== X-Received: by 10.194.75.227 with SMTP id f3mr8774614wjw.19.1480109976452; Fri, 25 Nov 2016 13:39:36 -0800 (PST) Received: from orwell.gmail.com (dhcp-077-248-147-050.chello.nl. [77.248.147.50]) by smtp.gmail.com with ESMTPSA id k2sm49015110wjv.11.2016.11.25.13.39.35 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 25 Nov 2016 13:39:35 -0800 (PST) Sender: Raphael Kubo da Costa From: Raphael Kubo da Costa To: Fabien Thomas Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r309144 - in head: lib/libipsec sys/net sys/netipsec In-Reply-To: <201611251444.uAPEinKb066023@repo.freebsd.org> (Fabien Thomas's message of "Fri, 25 Nov 2016 14:44:49 +0000 (UTC)") References: <201611251444.uAPEinKb066023@repo.freebsd.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2.50 (berkeley-unix) Date: Fri, 25 Nov 2016 22:39:06 +0100 Message-ID: <8660nbfddx.fsf@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Nov 2016 21:39:39 -0000 Fabien Thomas writes: > Author: fabient > Date: Fri Nov 25 14:44:49 2016 > New Revision: 309144 > URL: https://svnweb.freebsd.org/changeset/base/309144 > > Log: > IPsec RFC6479 support for replay window sizes up to 2^32 - 32 packets. > > Since the previous algorithm, based on bit shifting, does not scale > with large replay windows, the algorithm used here is based on > RFC 6479: IPsec Anti-Replay Algorithm without Bit Shifting. > The replay window will be fast to be updated, but will cost as many bits > in RAM as its size. > > The previous implementation did not provide a lock on the replay window, > which may lead to replay issues. This broke the build here: In file included from /usr/src/sys/netipsec/key_debug.c:54: In file included from /usr/src/sys/netipsec/ipsec.h:46: In file included from /usr/src/sys/netipsec/keydb.h:38: /usr/src/sys/sys/mutex.h:367:2: error: LOCK_DEBUG not defined, include before #error LOCK_DEBUG not defined, include before