From owner-freebsd-net@FreeBSD.ORG Fri Nov 14 12:34:34 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 0C6E7EAB; Fri, 14 Nov 2014 12:34:34 +0000 (UTC) Received: from olymp.kibab.com (olymp.kibab.com [5.9.14.202]) by mx1.freebsd.org (Postfix) with ESMTP id 5BE83EFD; Fri, 14 Nov 2014 12:34:32 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.8.3 olymp.kibab.com 3743A75918 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=bakulin.de; s=default; t=1415968470; bh=07v+EQ6VSe0WWql2imxQcrebpY21wPv/AqBSYQZikXU=; h=In-Reply-To:References:Subject:From:Date:To:CC; b=bx9zwWEQ1iyauD09xBLVU4mPAEUkrNDUKir+HMErpjP4JLEmmA7il4pb4NMjIX+5U jwZXmNQ/tmeqQRFEm7Dz8+Kiy99l23IkDzNQgvNsO6OtbRO9wR055nu7P9me4U+WHu uc47QURrHWXXpB3mNSpe7jI38N9xNEyIZUrCuMzc= In-Reply-To: References: <9734b7d34828a102d9a2f5061c11ae3d@mail.bakulin.de> MIME-Version: 1.0 Subject: Re: Checksumming outgoing packets in PF vs in ip[6]_output From: Ilya Bakulin Date: Fri, 14 Nov 2014 13:34:29 +0100 To: =?ISO-8859-1?Q?Ermal_Lu=E7i?= Message-ID: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: Freebsd hackers list , freebsd-pf@freebsd.org, freebsd-net , J David , owner-freebsd-net@freebsd.org, ermal.luci@gmail.com 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: Fri, 14 Nov 2014 12:34:34 -0000 Hi Ermal, yes, this patch works for both #179392 and #172648. What do you need to merge this into -CURRENT and MFC to stable/9? On 2014-11-14 12:57, Ermal Luçi wrote: > Here is a direct patch. > Give it a try. > > For the reply-to issues there is another patch complementary to this i > will send. > > On Fri, Nov 14, 2014 at 11:34 AM, Ilya Bakulin > wrote: > >> Hi all, >> >> actually with _my_ checksumming patch the rdr-to is broken >> completely :-( >> So I'm waiting for Ermal to send an updated version of his patch >> that may really solve the problem! >> >> On 2014-11-14 09:17, Ermal Luçi wrote: >> Yes confirmed it will solve that issue as well. >> >> On Thu, Nov 13, 2014 at 9:30 PM, J David >> wrote: >> >> On Wed, Nov 5, 2014 at 9:28 AM, Ilya Bakulin >> wrote: >>> Of course it was interesting what does the upstream PF do (@ >> OpenBSD). >> Seems >>> they have made the decision to >>> leave the task of recalculating the checksums for outgoing >> packets to >>> ip[6]_output, because currently >>> the code there overwrites the checksum anyway. >>> This seems a correct way to me. pf should not longer do any >> checksum >> updates >>> in inbound and outbound path. >> >> Is there any chance this change would help with bug 179392 as well? >> >> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=179392 [1] >> >> Or is that a separate issue? >> >> Thanks! >> _______________________________________________ >> freebsd-net@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-net [2] >> To unsubscribe, send any mail to >> "freebsd-net-unsubscribe@freebsd.org" > > -- > > Ermal > > Links: > ------ > [1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=179392 > [2] http://lists.freebsd.org/mailman/listinfo/freebsd-net -- Sent from my Android device with K-9 Mail. Please excuse my brevity. From owner-freebsd-net@FreeBSD.ORG Fri Nov 14 13:08:35 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 91B3B70E; Fri, 14 Nov 2014 13:08:35 +0000 (UTC) Received: from mail-pa0-x22f.google.com (mail-pa0-x22f.google.com [IPv6:2607:f8b0:400e:c03::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 58C85243; Fri, 14 Nov 2014 13:08:35 +0000 (UTC) Received: by mail-pa0-f47.google.com with SMTP id kx10so17530494pab.34 for ; Fri, 14 Nov 2014 05:08:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=k91e6+X4iCJo8otmRKo8iS0pLtFK6YhROZ6Rlf3HI98=; b=nM0e38ZwQkwXNODNyGE6/RbEA0SilHtfzn4RDjwrm7T4Uqe2XWxDBynCucl/WBC29o J7LPVvHuTMl4cFdYy/ds4PFbUnl8DIjmGT/Xv2hyQaTb8XbYQdie0prnXEp05Al4JssP w8YBsptGtr10JQ0QnpJKi2/IcfAuU4JyqVHgjdsOSYChlwOOwSVfaIbb3bDjSPeN+Tjx B5LuHe3bnNW7Wnmmk9Jt6QD9EOxV/YP4ka0OpnRNaE0SLeiVmA3+E9OMxBXE5pQ3SHh1 pRKwNi4EzGZ/fcahqMjgxekyCmmlB5X+RCt2oiFkZ9Qq/DpMpP2I9Sl2XMo4QeWA/xpY SSHg== MIME-Version: 1.0 X-Received: by 10.70.131.199 with SMTP id oo7mr10079581pdb.138.1415970513950; Fri, 14 Nov 2014 05:08:33 -0800 (PST) Sender: ermal.luci@gmail.com Received: by 10.70.73.2 with HTTP; Fri, 14 Nov 2014 05:08:33 -0800 (PST) In-Reply-To: References: <9734b7d34828a102d9a2f5061c11ae3d@mail.bakulin.de> Date: Fri, 14 Nov 2014 14:08:33 +0100 X-Google-Sender-Auth: vE7hR9KrsnB7cD3PU_p5tm3KvRU Message-ID: Subject: Re: Checksumming outgoing packets in PF vs in ip[6]_output From: =?UTF-8?Q?Ermal_Lu=C3=A7i?= To: Ilya Bakulin Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: Freebsd hackers list , freebsd-net , J David , owner-freebsd-net@freebsd.org, "freebsd-pf@freebsd.org" 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: Fri, 14 Nov 2014 13:08:35 -0000 Hello Ilya, just approval from some people. I will follow-up. On Fri, Nov 14, 2014 at 1:34 PM, Ilya Bakulin wrote: > Hi Ermal, > yes, this patch works for both #179392 and #172648. > > What do you need to merge this into -CURRENT and MFC to stable/9? > > > On 2014-11-14 12:57, Ermal Lu=C3=A7i wrote: > > Here is a direct patch. > > Give it a try. > > > > For the reply-to issues there is another patch complementary to this i > > will send. > > > > On Fri, Nov 14, 2014 at 11:34 AM, Ilya Bakulin > > wrote: > > > >> Hi all, > >> > >> actually with _my_ checksumming patch the rdr-to is broken > >> completely :-( > >> So I'm waiting for Ermal to send an updated version of his patch > >> that may really solve the problem! > >> > >> On 2014-11-14 09:17, Ermal Lu=C3=A7i wrote: > >> Yes confirmed it will solve that issue as well. > >> > >> On Thu, Nov 13, 2014 at 9:30 PM, J David > >> wrote: > >> > >> On Wed, Nov 5, 2014 at 9:28 AM, Ilya Bakulin > >> wrote: > >>> Of course it was interesting what does the upstream PF do (@ > >> OpenBSD). > >> Seems > >>> they have made the decision to > >>> leave the task of recalculating the checksums for outgoing > >> packets to > >>> ip[6]_output, because currently > >>> the code there overwrites the checksum anyway. > >>> This seems a correct way to me. pf should not longer do any > >> checksum > >> updates > >>> in inbound and outbound path. > >> > >> Is there any chance this change would help with bug 179392 as well? > >> > >> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D179392 [1] > >> > >> Or is that a separate issue? > >> > >> Thanks! > >> _______________________________________________ > >> freebsd-net@freebsd.org mailing list > >> http://lists.freebsd.org/mailman/listinfo/freebsd-net [2] > >> To unsubscribe, send any mail to > >> "freebsd-net-unsubscribe@freebsd.org" > > > > -- > > > > Ermal > > > > Links: > > ------ > > [1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D179392 > > [2] http://lists.freebsd.org/mailman/listinfo/freebsd-net > -- > Sent from my Android device with K-9 Mail. Please excuse my brevity. --=20 Ermal