[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4B69A75A.2020908@trash.net>
Date: Wed, 03 Feb 2010 17:42:02 +0100
From: Patrick McHardy <kaber@...sh.net>
To: Shan Wei <shanwei@...fujitsu.com>
CC: David Miller <davem@...emloft.net>,
Yasuyuki KOZAKAI <yasuyuki.kozakai@...hiba.co.jp>,
eric.dumazet@...il.com, randy.dunlap@...cle.com, mst@...hat.com,
johannes@...solutions.net, kuznet@....inr.ac.ru, pekkas@...core.fi,
jmorris@...ei.org, yoshfuji@...ux-ipv6.org, pablo@...filter.org,
ebiederm@...ssion.com, adobriyan@...il.com, brian.haley@...com,
shemminger@...tta.com, akpm@...ux-foundation.org,
netfilter-devel@...r.kernel.org,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: Re: [PATCH] IPv6:Send an ICMPv6 "Fragment Reassembly Timeout" message
when enabling connection track
Shan Wei wrote:
> @@ -349,17 +378,20 @@ static int nf_ct_frag6_queue(struct nf_ct_frag6_queue *fq, struct sk_buff *skb,
> else
> fq->q.fragments = skb;
>
> - skb->dev = NULL;
> fq->q.stamp = skb->tstamp;
> fq->q.meat += skb->len;
> atomic_add(skb->truesize, &nf_init_frags.mem);
>
> /* The first fragment.
> * nhoffset is obtained from the first fragment, of course.
> + * Reserve dev for sending an ICMP "Fragment Reassembly Timeout"
> + * message.
> */
> if (offset == 0) {
> fq->nhoffset = nhoff;
> fq->q.last_in |= INET_FRAG_FIRST_IN;
> + } else {
> + skb->dev = NULL;
> }
We need to store the iif and perform a lookup later just as in IPv4
because the device is not reference counted and might disappear while
the fragments are queued.
Besides this, the patch looks good.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists