]> git.baikalelectronics.ru Git - kernel.git/commit
[ARP]: Introduce the arp_hdr_len helper.
authorPavel Emelyanov <xemul@openvz.org>
Mon, 3 Mar 2008 20:20:57 +0000 (12:20 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Mar 2008 20:20:57 +0000 (12:20 -0800)
commita58304e16c17d2cb5799bbd949cd0b5b71386503
tree9b57725b954e1e96a80043ed43d83f8e032b47b6
parent3d59db5948335b600a1c980a6fba3b64cc8f6fce
[ARP]: Introduce the arp_hdr_len helper.

There are some place, that calculate the ARP header length. These
calculations are correct, but
 a) some operate with "magic" constants,
 b) enlarge the code length (sometimes at the cost of coding style),
 c) are not informative from the first glance.

The proposal is to introduce a helper, that includes all the good
sides of these calculations.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c
include/linux/if_arp.h
net/core/netpoll.c
net/ipv4/arp.c
net/ipv4/ipconfig.c
net/ipv4/netfilter/arp_tables.c