[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20160115200416.GA2331@salvia>
Date: Fri, 15 Jan 2016 21:04:16 +0100
From: Pablo Neira Ayuso <pablo@...filter.org>
To: David Miller <davem@...emloft.net>
Cc: eric.dumazet@...il.com, tom@...bertland.com, kaber@...sh.net,
netfilter-devel@...r.kernel.org, netdev@...r.kernel.org,
herbert@...dor.apana.org.au
Subject: Re: [PATCH net] netfilter: xt_TCPMSS: handle CHECKSUM_COMPLETE in
tcpmss_tg6()
On Fri, Jan 15, 2016 at 02:04:49PM -0500, David Miller wrote:
> From: Eric Dumazet <eric.dumazet@...il.com>
> Date: Fri, 15 Jan 2016 09:18:44 -0800
>
> > On Fri, 2016-01-15 at 08:43 -0800, Tom Herbert wrote:
> >
> >> Probably should have a utility function do this. Maybe something like
> >> update_hdr_field(skb, old, new)? Could return new value so above could
> >> just be:
> >>
> >> ipv6h->payload_len = update_hdr_field(skb, ipv6h->payload_len,
> >> htons(ntohs(oldlen) + ret);
> >
> > Well, oldlen would still need to be ipv6h->payload_len
> >
> > Not sure a helper will be nice for a stable submission.
> >
> > Probably better for net-next ?
>
> Agreed. We already have those csum_replace{2,4}() helpers in net/checksum.h
> which we could augment with ones that can handle length changes too.
I'm going to place this into the nf tree, thanks!
Powered by blists - more mailing lists