[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20140127.203900.1924366993738449780.davem@davemloft.net>
Date: Mon, 27 Jan 2014 20:39:00 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: duanj.fnst@...fujitsu.com
Cc: dborkman@...hat.com, netdev@...r.kernel.org, pshelar@...ira.com
Subject: Re: [PATCH v2] net: gre: use icmp_hdr() to get inner ip header
From: Duan Jiong <duanj.fnst@...fujitsu.com>
Date: Tue, 28 Jan 2014 11:49:43 +0800
>
> When dealing with icmp messages, the skb->data points the
> ip header that triggered the sending of the icmp message.
>
> In gre_cisco_err(), the parse_gre_header() is called, and the
> iptunnel_pull_header() is called to pull the skb at the end of
> the parse_gre_header(), so the skb->data doesn't point the
> inner ip header.
>
> Unfortunately, the ipgre_err still needs those ip addresses in
> inner ip header to look up tunnel by ip_tunnel_lookup().
>
> So just use icmp_hdr() to get inner ip header instead of skb->data.
>
> Signed-off-by: Duan Jiong <duanj.fnst@...fujitsu.com>
Applied and queued up for -stable, thanks.
--
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