From: Guillaume Nault <g.nault@alphalink.fr>
To: James Chapman <jchapman@katalix.com>
Cc: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>,
davem@davemloft.net, netdev@vger.kernel.org,
liuhangbin@gmail.com
Subject: Re: [PATCH net-next 2/2] l2tp: add peer_offset parameter
Date: Tue, 2 Jan 2018 18:50:48 +0100 [thread overview]
Message-ID: <20180102175048.GA1402@alphalink.fr> (raw)
In-Reply-To: <27e0a7c8-b95b-04eb-d808-bcae67e417b1@katalix.com>
On Fri, Dec 29, 2017 at 06:53:56PM +0000, James Chapman wrote:
> On 28/12/17 19:45, Guillaume Nault wrote:
> > Here we have an option that:
> > * creates invalid packets (AFAIK),
> > * is buggy and leaks memory on the network,
> > * doesn't seem to have any use case (even the manpage
> > says "This is hardly ever used").
> >
> > So I'm sorry, but I don't see the point in expanding this option to
> > allow even stranger setups. If there's a use case, then fine.
> > Otherwise, let's just acknowledge that the "peer_offset" option of
> > iproute2 is a noop (and maybe remove it from the manpage).
> >
> > And the kernel "offset" option needs to be fixed. Actually, I wouldn't
> > mind if it was converted to be a noop, or even rejected. L2TP already
> > has its share of unused features that complicate the code and hamper
> > evolution and bug fixing. As I said earlier, if it's buggy, unused and
> > can't even produce valid packets, then why bothering with it?
> >
> > But that's just my point of view. James, do you have an opinion on
> > this?
>
> I agree, Guillaume.
>
> The L2TPv3 protocol RFC dropped the configurable offset of L2TPv2 - instead,
> the Layer-2-Specific-Sublayer is supposed to handle any transport-specific
> data alignment requirements.
>
Yes, and AFAIK, no RFC has ever defined an L2TPv3 sublayer using offsets.
> I think a configurable offset has found its way
> into iproute2 l2tp commands by mistake, perhaps because the netlink API
> defines an attribute for it, but which was only intended for use with
> L2TPv2.
>
Makes sense, however L2TP_ATTR_OFFSET seems to be a noop for L2TPv2 in
the current implementation.
> For L2TPv2, we only configure the offset for transmitted packets. In
> received packets, the offset (if present) is obtained from the L2TPv2 header
> in each received packet. There is no need to add a peer-offset netlink
> attribute to set the offset expected in received packets.
>
Agreed for Rx side. I also agree on the theory for Tx, but in the current
implementation, l2tp_build_l2tpv2_header() doesn't take the session's
"offset" field into account. So, unless I've missed something,
L2TP_ATTR_OFFSET is already a noop for L2TPv2.
Not sure if it's worth handling this feature of L2TPv2. The Linux
implementation has been there for so long, and nobody ever complained
that there was no way to define an offset on Tx.
next prev parent reply other threads:[~2018-01-02 17:50 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-22 14:10 [PATCH net-next 0/2] l2tp: fix offset/peer_offset conf parameters Lorenzo Bianconi
2017-12-22 14:10 ` [PATCH net-next 1/2] l2tp: fix missing print session offset info Lorenzo Bianconi
2017-12-22 14:10 ` [PATCH net-next 2/2] l2tp: add peer_offset parameter Lorenzo Bianconi
2017-12-28 14:53 ` Guillaume Nault
2017-12-28 18:23 ` Lorenzo Bianconi
2017-12-28 19:45 ` Guillaume Nault
2017-12-29 18:53 ` James Chapman
2017-12-29 22:21 ` Lorenzo Bianconi
2018-01-02 18:05 ` Guillaume Nault
2018-01-02 19:28 ` Lorenzo Bianconi
2018-01-02 20:18 ` James Chapman
2018-01-03 14:16 ` Guillaume Nault
2018-01-03 15:06 ` Lorenzo Bianconi
2018-01-03 16:35 ` Guillaume Nault
2018-01-08 17:27 ` Lorenzo Bianconi
2018-01-02 20:08 ` James Chapman
2018-01-02 20:59 ` James Chapman
2018-01-03 14:27 ` Guillaume Nault
2018-01-02 17:50 ` Guillaume Nault [this message]
2018-01-02 20:08 ` James Chapman
2017-12-27 17:12 ` [PATCH net-next 0/2] l2tp: fix offset/peer_offset conf parameters David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180102175048.GA1402@alphalink.fr \
--to=g.nault@alphalink.fr \
--cc=davem@davemloft.net \
--cc=jchapman@katalix.com \
--cc=liuhangbin@gmail.com \
--cc=lorenzo.bianconi@redhat.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).