Re: [PATCH net v4] ipv6/netfilter: Discard first fragment not including all headers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 18.11.2020 19:16, Pablo Neira Ayuso wrote:
> 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
Thanks for the link to the similar problem. I have been looking into this all day.
I am working on a patch now.





[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux