From: Antonio Quartulli Date: Sun, 12 May 2013 19:51:15 +0000 (+0200) Subject: batman-adv: h_vlan_encapsulated_proto access refactoring X-Git-Tag: v3.13-rc1~105^2~191^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7f8ed5695ef441495cfab5287951927d9d5f12e;p=pandora-kernel.git batman-adv: h_vlan_encapsulated_proto access refactoring In case of a VLAN tagged frame the ethhdr pointer is moved forward by 4 bytes so that the offset of h_proto in struct ethhdr matches the real h_vlan_encapsulated_proto address in the skb. While this trickery is correct it makes the code harder to understand and may lead to bugs in case of re-use of ethhdr for other purposes. This patch introduces a proto variable to make things cleaner and easier to understand. Signed-off-by: Antonio Quartulli Signed-off-by: Marek Lindner --- Reading git-diff-tree failed