[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CADvbK_d+B2sRCZ-aBDUz3808os2C2gvdJsQQO6_FNs7djQA9kQ@mail.gmail.com>
Date: Fri, 28 Feb 2014 09:27:35 +0800
From: lucien xin <lucien.xin@...il.com>
To: Xin Long <lucien.xin@...il.com>,
network dev <netdev@...r.kernel.org>
Subject: Re: [PATCH] ip_tunnel:multicast process cause panic due to
skb->_skb_refdst NULL pointer
On Mon, Feb 24, 2014 at 10:58 PM, Hannes Frederic Sowa
<hannes@...essinduktion.org> wrote:
>
> If the packet is locally forwarded we can test for IPCB(skb)->flags &
> IPSKB_FORWARDED.
>
thanks for your reply, hannes
IPSKB_FORWARDED is locally forwarded flag, but in ip_tunnel_rcv(), it
check if the packet
is a *looped back packet* (not about locally forwarded), the path is
__ip_route_output_key()-->
__mkroute_output()(rth->dst.output = ip_mc_output), then,
ip_mc_output()-->dev_loopback_xmit(),
which happen when inet_sk(sk)->mc_loop =1, and in __mkroute_output(),
rth->rt_is_input = 0.
In that path, IPCB(skb)->flags &IPSKB_FORWARDED always 0.
so I think 'IPCB(skb)->flags &IPSKB_FORWARDED' cannot meet the goal.
--
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