From: Isaku Yamahata Date: Thu, 20 Dec 2012 15:12:52 +0000 (+0000) Subject: ip_gre: make ipgre_tunnel_xmit() not parse network header as IP unconditionally X-Git-Tag: v3.8-rc2~19^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=412ed94744d16806fbec3bd250fd94e71cde5a1f;p=pandora-kernel.git ip_gre: make ipgre_tunnel_xmit() not parse network header as IP unconditionally ipgre_tunnel_xmit() parses network header as IP unconditionally. But transmitting packets are not always IP packet. For example such packet can be sent by packet socket with sockaddr_ll.sll_protocol set. So make the function check if skb->protocol is IP. Signed-off-by: Isaku Yamahata Acked-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed