From owner-freebsd-net@FreeBSD.ORG Wed Oct 29 09:35:52 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A259ABCB; Wed, 29 Oct 2014 09:35:52 +0000 (UTC) Received: from forward4l.mail.yandex.net (forward4l.mail.yandex.net [84.201.143.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Certum Level IV CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5681CC35; Wed, 29 Oct 2014 09:35:51 +0000 (UTC) Received: from smtp13.mail.yandex.net (smtp13.mail.yandex.net [95.108.130.68]) by forward4l.mail.yandex.net (Yandex) with ESMTP id C88E71441295; Wed, 29 Oct 2014 12:35:41 +0300 (MSK) Received: from smtp13.mail.yandex.net (localhost [127.0.0.1]) by smtp13.mail.yandex.net (Yandex) with ESMTP id 9CF83E40275; Wed, 29 Oct 2014 12:35:40 +0300 (MSK) Received: from unknown (unknown [2a02:6b8:0:40c:120b:a9ff:fe93:c998]) by smtp13.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 97ICnHF1An-ZdSimkOQ; Wed, 29 Oct 2014 12:35:40 +0300 (using TLSv1.2 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) X-Yandex-Uniq: 765454ed-9d77-45d4-b3a9-754409616c00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1414575340; bh=nxJBUaCWwdO7eFbsiYR0jhKO2yDcc2gDW++MYt1m3NM=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:Subject: Content-Type; b=Eh/rtxIqZ19nZ8Q6kOootom9WzTaGHwC/FDHZrqY2CmVymgBwStwk9i593kkftlBH pYcSDoi8+Se0Brwp3nQJ8ByXpyhtQJTbBg3DBVx0+JIVdzsKO6YzSEldovNU+qIbdL Jn8Mz7o77nPe17qN9UKXjFxiT6BwscnXLBczF4ac= Authentication-Results: smtp13.mail.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <5450B4E5.7020804@yandex.ru> Date: Wed, 29 Oct 2014 12:35:33 +0300 From: "Andrey V. Elsukov" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: "freebsd-net@freebsd.org" , freebsd-current Subject: [RFC][RFT] overhaul if_gre(4) Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="MvE3iFSrEc0MFFqSF9PRoA2rfJdNneOfc" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Oct 2014 09:35:52 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --MvE3iFSrEc0MFFqSF9PRoA2rfJdNneOfc Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi All, I prepared the patch for review https://reviews.freebsd.org/D1023 Split if_gre(4) into two modules, if_gre(4) for GRE encapsulation and if_me(4) for minimal encapsulation within IP. gre(4) changes: * convert to if_transmit; * rework locking: protect access to softc with rmlock, protect from concurrent ioctls with sx lock; * make implementation conform to the RFC 2784 and partially to RFC 2890; * correct interface accounting for outgoing datagramms (count only payload size); * implement generic support for using IPv6 as delivery header; * add support for GRE checksums - calculate for outgoing datagramms and check for inconming datagramms; * add support for sending sequence number in GRE header; * remove caching routes support. This fixes problem, when gre(4) doesn't work at system startup. But this also removes ability to have tunnels with the same addresses for inner and outer header. * deprecate support for various GREXXX ioctls, use our standard ioctls for tunnels. me(4): * use the same locking model as gre(4); * use if_transmit; * implementation conform to RFC 2004; --=20 WBR, Andrey V. Elsukov --MvE3iFSrEc0MFFqSF9PRoA2rfJdNneOfc Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJUULTpAAoJEAHF6gQQyKF6+PUIAJgZbHITiPZgBU1pgS7CxcQ7 qaaUc3a8/ClH5pbSH1fdgiboF00ONplUP+F3XElAJn8l9GcfzNEcnBFVffdATaYK NycbCAjYeA9k26pLNiGywianuGI4uOFAOeTXaZhbCIBaaRlIffUCntS1oc/bMZ3w JV/gBHwbGizawOnWkN/MvGvdw8StJmywZyJ8F617xgZ1mzIP6nd2SCfBPRpX2s/w LTAqf3MnIR7bpc4+4qKoVPVmz+SdFDiAFgaxbZ7XeAfoxpJXQzZCYezrw6HzqF8t D7SwSnDJmFGOcMPALNbwK/anyZmwYI1A9V73pkYdCEHBftS1N+aaOh4LMiL4gs4= =5vQs -----END PGP SIGNATURE----- --MvE3iFSrEc0MFFqSF9PRoA2rfJdNneOfc--