2005-10-02 14:21:30

by Yan Zheng

[permalink] [raw]
Subject: [PATCH] fix ipv6 fragment ID selection at slow path

--- linux-2.6.13.2/net/ipv6/ip6_output.c 2005-09-17 09:02:12.000000000 +0800
+++ linux/net/ipv6/ip6_output.c 2005-10-02 22:12:54.000000000 +0800
@@ -701,7 +701,7 @@
*/
fh->nexthdr = nexthdr;
fh->reserved = 0;
- if (frag_id) {
+ if (!frag_id) {
ipv6_select_ident(skb, fh);
frag_id = fh->identification;
} else


Attachments:
patch (332.00 B)

2005-10-03 00:18:40

by Herbert Xu

[permalink] [raw]
Subject: Re: [PATCH] fix ipv6 fragment ID selection at slow path

Yan Zheng <[email protected]> wrote:
>
> --- linux-2.6.13.2/net/ipv6/ip6_output.c 2005-09-17 09:02:12.000000000 +0800
> +++ linux/net/ipv6/ip6_output.c 2005-10-02 22:12:54.000000000 +0800
> @@ -701,7 +701,7 @@
> */
> fh->nexthdr = nexthdr;
> fh->reserved = 0;
> - if (frag_id) {
> + if (!frag_id) {
> ipv6_select_ident(skb, fh);
> frag_id = fh->identification;
> } else

This patch makes sense to me.

Please add a Signed-off-by line and send the patch to
[email protected] and [email protected].

Thanks,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt