]> git.karo-electronics.de Git - linux-beck.git/commit
batman-adv: use ETH_HLEN instead of sizeof(struct ethhdr)
authorAntonio Quartulli <ordex@autistici.org>
Sat, 18 Feb 2012 10:27:34 +0000 (11:27 +0100)
committerAntonio Quartulli <ordex@autistici.org>
Wed, 18 Apr 2012 07:54:01 +0000 (09:54 +0200)
commit0d125074ebc8c971e939f8c2c8f90a80fa09aeb4
treefb31ee069ab0a2abc7681b999839fd81392110f7
parent1eeb479fda2405269b3a85c86ba0eca41fcc4ea0
batman-adv: use ETH_HLEN instead of sizeof(struct ethhdr)

Instead of using sizeof(struct ethhdr) it is strongly recommended to use the
kernel macro ETH_HLEN. This patch substitute each occurrence of the former
expressione with the latter one.

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
net/batman-adv/bat_iv_ogm.c
net/batman-adv/bridge_loop_avoidance.c
net/batman-adv/hard-interface.c
net/batman-adv/icmp_socket.c
net/batman-adv/routing.c
net/batman-adv/send.c
net/batman-adv/soft-interface.c
net/batman-adv/types.h
net/batman-adv/vis.c