Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1781420imu; Sun, 16 Dec 2018 08:39:27 -0800 (PST) X-Google-Smtp-Source: AFSGD/UOzgCoCw96suO9ERQnVi0o/MR2O1T3RkgQ7BboAUOHUsHJmxlG/pD9MjVXRgcEkhxw+ABM X-Received: by 2002:a17:902:b093:: with SMTP id p19mr9764317plr.135.1544978367682; Sun, 16 Dec 2018 08:39:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544978367; cv=none; d=google.com; s=arc-20160816; b=bVkSnX3E2mjxAWlv4QNw26/qiphm4a9EHxA+TXnbRxCA5zJZ4v3Z6jJD1AIQc2ybjY vwJZs/vVQzMsRUQWk/KKSQWobsXistCrSIi7Lryum5K6mogmaPxC3waFfFJm2EprJo42 q9Zn7S3a+U7L066rF6LiaJNcpeHUinrSitn1FNin7AeO4assKfmiFEAIdWk8OOMsisLf ax4vNxGpQUyijJ0SWuuBbAHtv4dtD1IjL+BMtz/gNa2xzcoMpSBDJ/7uIXVgtYnnO16h sTEBf6JDlFHlFWg4YB+8KdnN3VRAeKUE5VBI435MoepqtKX6xZpk9zY3JaMlop+E8m88 dgLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=n/GUlcTLExCOORYslFpiBHrcr9m5YEdxiiQM4qq8R+0=; b=UM/i/TzLN8jr8DXW1PUmHWI0apCFV6fpobER3LmzA/HYyEJ9DK885OuGcabSwm/eH3 2EN2gtl2o9Ljyb5gCcL0EGfuQpkEuy1oGS0wRk7Z6jVRE5XHXsKy6nGravoZ4Ch0lBvd sLXUGUDOym43sGxd35TX0QsGEXnd9s29+RGAr1s0isNcoSKVLjkpa3040ai9TA+EK4RH VcgRMt5A65IgMDlklbBVkyGUO4OuOFv56rhQ9hgqMLNSp4GP2OM5bfC8WJQHFMVNMIdp mdCD9sSNoWXpzntiTwQ4MfsXXY/UkYyIH4X5si8rtMualJUbzmTAj2Wi16wow0stO5xz fPPA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g12si8822347pgd.567.2018.12.16.08.39.12; Sun, 16 Dec 2018 08:39:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730716AbeLPQiG (ORCPT + 99 others); Sun, 16 Dec 2018 11:38:06 -0500 Received: from zimbra.alphalink.fr ([217.15.80.77]:58950 "EHLO zimbra.alphalink.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730500AbeLPQiF (ORCPT ); Sun, 16 Dec 2018 11:38:05 -0500 X-Greylist: delayed 521 seconds by postgrey-1.27 at vger.kernel.org; Sun, 16 Dec 2018 11:38:04 EST Received: from localhost (localhost [127.0.0.1]) by mail-2-cbv2.admin.alphalink.fr (Postfix) with ESMTP id 831FF2B52035; Sun, 16 Dec 2018 17:30:24 +0100 (CET) Received: from zimbra.alphalink.fr ([127.0.0.1]) by localhost (mail-2-cbv2.admin.alphalink.fr [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id MqGsYIYXxy08; Sun, 16 Dec 2018 17:30:23 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail-2-cbv2.admin.alphalink.fr (Postfix) with ESMTP id 4A42B2B5208E; Sun, 16 Dec 2018 17:30:23 +0100 (CET) X-Virus-Scanned: amavisd-new at mail-2-cbv2.admin.alphalink.fr Received: from zimbra.alphalink.fr ([127.0.0.1]) by localhost (mail-2-cbv2.admin.alphalink.fr [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id zI5nstDccUim; Sun, 16 Dec 2018 17:30:23 +0100 (CET) Received: from localhost (unknown [82.120.188.200]) by mail-2-cbv2.admin.alphalink.fr (Postfix) with ESMTPSA id 0B4B62B52035; Sun, 16 Dec 2018 17:30:23 +0100 (CET) Date: Sun, 16 Dec 2018 17:30:59 +0100 From: Guillaume Nault To: Sam Protsenko Cc: James Chapman , "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] l2tp: Add Protocol field compression Message-ID: <20181216163059.i5nadsfzyvcwa4o6@kdev> References: <20181214211242.9721-1-semen.protsenko@linaro.org> <20181214211242.9721-2-semen.protsenko@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181214211242.9721-2-semen.protsenko@linaro.org> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 14, 2018 at 11:12:42PM +0200, Sam Protsenko wrote: > When Protocol Field Compression (PFC) is enabled, the "Protocol" field > in PPP packet should be transmitted without leading 0x00. See section > 6.5 in RFC 1661 for details. Let's compress protocol field if needed, > the same way it's done in drivers/net/ppp/pptp.c. > > To actually enable PFC, one should issue corresponding ioctl to L2TP > driver from user-space, like this: > > ioctl(fd, PPPIOCGFLAGS, &flags); > flags |= SC_COMP_PROT; > ioctl(fd, PPPIOCSFLAGS, &flags); > > It can be done e.g. from pppol2tp plugin (pppd), when pcomp option was > negotiated with peer. > > Of course, we don't compress Protocol field when sending LCP packets. As > stated in RFC 1661, section 6.5: > > The Protocol field is never compressed when sending any LCP > packet. This rule guarantees unambiguous recognition of LCP > packets. > Again, I'm sorry, but I must oppose this change. Although I'm lacking time to keep sanitising L2TP, at least I'd like to avoid making the situation worse. L2TP's uapi is already messy enough. Please don't add non-L2TP features there. Activating PFC should be done on PPP file descriptors, not no L2TP sockets. We certainly don't want L2TP to snoop on PPP data, much less modify them.