diff options
author | Duan Jiong <duanj.fnst@cn.fujitsu.com> | 2014-01-28 11:49:43 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-02-06 11:34:08 -0800 |
commit | c8579f3216b25a0c5adf473b2e1cbbb3f908fa4c (patch) | |
tree | 3856c11ff4326618de51f5016cf3385cee7e045e /firmware | |
parent | b84c36cb8ca10bdfc0ee8f3e1e74eaeb4010756c (diff) |
net: gre: use icmp_hdr() to get inner ip header
[ Upstream commit c0c0c50ff7c3e331c90bab316d21f724fb9e1994 ]
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@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'firmware')
0 files changed, 0 insertions, 0 deletions