netdev
[Top] [All Lists]

Re: [PATCH] IPV4 IPComp : threshold comparison

To: Mitsuru KANDA / 神田 充 <mk@xxxxxxxxxxxxxx>
Subject: Re: [PATCH] IPV4 IPComp : threshold comparison
From: James Morris <jmorris@xxxxxxxxxxxxxxxx>
Date: Sun, 18 May 2003 11:07:10 +1000 (EST)
Cc: davem@xxxxxxxxxx, <kuznet@xxxxxxxxxxxxx>, <netdev@xxxxxxxxxxx>, <usagi@xxxxxxxxxxxxxx>
In-reply-to: <87smrda4q6.wl@xxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
On Sun, 18 May 2003, Mitsuru KANDA / [ISO-2022-JP] $B?@ED(B $B=<(B wrote:

> I'm not sure how exactly we should check threshold.

We should check the length of the IP payload, which the current code is 
only currently doing for tunnel mode.

> In IPsec tunnel mode, the original comparison code 
> seems to be including IP header length.

It is counting the inner IP header, which is correct, as it is part of the 
final IP payload.  The transport mode calculation is incorrect.

> Could you check it?

Your patch fixes the calculation for transport mode, and looks correct.


- James
-- 
James Morris
<jmorris@xxxxxxxxxxxxxxxx>


<Prev in Thread] Current Thread [Next in Thread>