diff options
author | Antonio Quartulli <ordex@autistici.org> | 2013-05-12 19:51:15 (GMT) |
---|---|---|
committer | Antonio Quartulli <antonio@meshcoding.com> | 2013-10-12 09:58:30 (GMT) |
commit | f7f8ed5695ef441495cfab5287951927d9d5f12e (patch) | |
tree | bce239bcd43bdb8e61c7162d1f314adb32b1e7d2 /firmware/ihex2fw.c | |
parent | 210260594782ba9bc52732d84880573466c13441 (diff) | |
download | linux-fsl-qoriq-f7f8ed5695ef441495cfab5287951927d9d5f12e.tar.xz |
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 <ordex@autistici.org>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Diffstat (limited to 'firmware/ihex2fw.c')
0 files changed, 0 insertions, 0 deletions