[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20140121.164904.1559727284192286374.davem@davemloft.net>
Date: Tue, 21 Jan 2014 16:49:04 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: duanj.fnst@...fujitsu.com
Cc: dborkman@...hat.com, netdev@...r.kernel.org
Subject: Re: [PATCH] net: gre: don't pull skb if dealing with icmp message
From: Duan Jiong <duanj.fnst@...fujitsu.com>
Date: Sun, 19 Jan 2014 16:35:22 +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(). Unfortunately, the ipgre_err still needs
> the skb->data points the ip header following the icmp layer,
> and those ip addresses in ip header will be used to look up
> tunnel by ip_tunnel_lookup().
>
> Signed-off-by: Duan Jiong <duanj.fnst@...fujitsu.com>
Conditional pulling of headers based upon caller context leads to
impossible to maintain code.
Please find another way to fix this.
--
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