From owner-freebsd-net@freebsd.org Tue Feb 18 18:09:15 2020 Return-Path: Delivered-To: freebsd-net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 25537241E51 for ; Tue, 18 Feb 2020 18:09:15 +0000 (UTC) (envelope-from Jason@zx2c4.com) Received: from frisell.zx2c4.com (frisell.zx2c4.com [192.95.5.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "frisell.zx2c4.com", Issuer "frisell.zx2c4.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 48MTQ26PcQz4QHK; Tue, 18 Feb 2020 18:09:14 +0000 (UTC) (envelope-from Jason@zx2c4.com) Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTP id b30aae06; Tue, 18 Feb 2020 18:06:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=zx2c4.com; h=mime-version :references:in-reply-to:from:date:message-id:subject:to:cc :content-type:content-transfer-encoding; s=mail; bh=EuCsCcDTOFLA 4TvmZ1EhAPoWw7o=; b=rtBUdr3Wz2fsNswEHSzfgfTbmSa69QsLZi0/WFXqvhIZ SnS33r79cND3S1HdJ14dmgSjrdDmWTc+1F6CFv6Bq6VSwJV4wXuD3N3RYvq0eYEU pRjG2JQwxrN75B8BPOTYmHXK++npfi2PnZ3ZNeOLxCdQqFmrgzP70aUKjLY12yAG vlpa8Vd4w7yCQfVkjf8nSgU7V2F20jc36+GPYaD/gNwLZemEGSfsTnuGI7VjYR9y fUbRUz5XOcVTbhgZYeHrkfIr06xu3ON0FQoGDMq6ijLWkHOsf/7F+Amf3Ra79M/y DrVVPPOfdhIVsCciCWfP/AxBnkRFTqw2J1GADwhPVg== Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id d1f77721 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Tue, 18 Feb 2020 18:06:34 +0000 (UTC) Received: by mail-ot1-f49.google.com with SMTP id 66so20419396otd.9; Tue, 18 Feb 2020 10:09:13 -0800 (PST) X-Gm-Message-State: APjAAAUiWs1Qy1HPCrDpqVumOAbJ7r1Vlq6mrjT8izc1xGOtgY04fc3/ 9imcQyYjAtvR0rR+KnxTAdYucyOTJoXr86jV1Zs= X-Google-Smtp-Source: APXvYqxPG7ym7TcfRR6smpDOLXhJ8wm5uBBsV8ZOol98QZQdC29HkdUmVi+MUvRlvaOjeHDSEz6csIZqI8graTGxa3k= X-Received: by 2002:a9d:6a53:: with SMTP id h19mr17334749otn.120.1582049352554; Tue, 18 Feb 2020 10:09:12 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: "Jason A. Donenfeld" Date: Tue, 18 Feb 2020 19:09:01 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: wireguard implementation in progress with zero coordination or communication with wireguard project? can we help? To: "K. Macy" Cc: "freebsd-net@freebsd.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 48MTQ26PcQz4QHK X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-6.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.29 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, 18 Feb 2020 18:09:15 -0000 Hey K, On Tue, Feb 18, 2020 at 4:33 PM K. Macy wrote: > I appreciate your enthusiasm, but I can=E2=80=99t count the number of nas= cent kernel projects that have come up in discussion over the years and ult= imately come to nothing. Do you mean that the FreeBSD one might not work out, or you're skeptical that the OpenBSD one will? Either way, I'm pretty determined to bring them both -- FreeBSD (with you) and the OpenBSD one -- across the finish line as best as we can. > I started by getting the OpenBSD bits to build on FreeBSD. However, the i= mplementation in Open is not really a very good semantic match for FreeBSD.= So I often have to check what the Linux one is doing as well and sometimes= the NetBSD one. Ultimately, apart from struct definitions, very little cod= e will be shared between the platforms. Yea, that's what I initially had thought, but then for the OpenBSD stuff we were actually able to take a lot from the Linux implementation in the end, especially with regards to timer semantic and key exchange flow. If it winds up helping, we can do the same where it's useful for FreeBSD and in the end we'll relicense what we need to to {1,2,3,28}-clause BSD, since I imagine FreeBSD doesn't want GPL stuff. > I don=E2=80=99t see a whole lot of benefit to coordination until I can co= nfigure a Wireguard interface and there is at least the possibility of pass= ing packets. I think there will be quite some benefit for coordinating early on and talking through some design challenges. We've now worked through this exercise several times on a few platforms an might be able to help out quite a bit. Are you on IRC? If so, poke me on Freenode -- I'm zx2c4 -- where we have a channel of people who have implemented this before and are eager and excited to help out. Looking forward, Jason