Re: [PATCH v3] xfrm: take iphdr size into account for esp payloadsize calculation
From: David Miller
Date: Thu May 17 2012 - 20:07:51 EST
From: Benjamin Poirier <bpoirier@xxxxxxx>
Date: Wed, 16 May 2012 15:35:25 -0400
> Corrects the function that determines the esp payload size.
> The calculations done in esp4_get_mtu lead to overlength frames in transport
> mode for certain mtu values and suboptimal frames for others.
>
> According to what is done, mainly in esp_output(), net_header_len aka
> sizeof(struct iphdr) must be taken into account before doing the alignment
> calculation.
>
> Signed-off-by: Benjamin Poirier <bpoirier@xxxxxxx>
This looks great.
Could you please fix net/ipv6/esp6.c too, it seems to have the same
exact bug.
Once you respin this patch with both ipv4 and ipv6 fixed, I'll apply
it.
Thank you.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/