[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1452878324.1223.188.camel@edumazet-glaptop2.roam.corp.google.com>
Date: Fri, 15 Jan 2016 09:18:44 -0800
From: Eric Dumazet <eric.dumazet@...il.com>
To: Tom Herbert <tom@...bertland.com>
Cc: David Miller <davem@...emloft.net>,
Pablo Neira Ayuso <pablo@...filter.org>,
Patrick McHardy <kaber@...sh.net>,
netfilter-devel <netfilter-devel@...r.kernel.org>,
netdev <netdev@...r.kernel.org>,
Herbert Xu <herbert@...dor.apana.org.au>
Subject: Re: [PATCH net] netfilter: xt_TCPMSS: handle CHECKSUM_COMPLETE in
tcpmss_tg6()
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 ?
Powered by blists - more mailing lists