[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20201118181655.GA11119@salvia>
Date: Wed, 18 Nov 2020 19:16:55 +0100
From: Pablo Neira Ayuso <pablo@...filter.org>
To: Georg Kohmann <geokohma@...co.com>
Cc: netdev@...r.kernel.org, kadlec@...filter.org, fw@...len.de,
davem@...emloft.net, kuznet@....inr.ac.ru, yoshfuji@...ux-ipv6.org,
kuba@...nel.org, netfilter-devel@...r.kernel.org,
coreteam@...filter.org
Subject: Re: [PATCH net v4] ipv6/netfilter: Discard first fragment not
including all headers
Hi,
On Wed, Nov 11, 2020 at 12:50:25PM +0100, Georg Kohmann wrote:
[...]
> diff --git a/net/ipv6/reassembly.c b/net/ipv6/reassembly.c
> index c8cf1bb..e3869ba 100644
> --- a/net/ipv6/reassembly.c
> +++ b/net/ipv6/reassembly.c
> @@ -318,15 +318,43 @@ static int ip6_frag_reasm(struct frag_queue *fq, struct sk_buff *skb,
> return -1;
> }
>
> +/* Check if the upper layer header is truncated in the first fragment. */
> +bool ipv6_frag_thdr_truncated(struct sk_buff *skb, int start, u8 *nexthdrp)
Please, follow up and send a patch to place this function in
include/net/ipv6_frag.h as static inline.
See: https://marc.info/?l=netfilter-devel&m=160571942728516&w=2
Powered by blists - more mailing lists