diff options
author | Marek Lindner <lindner_marek@yahoo.de> | 2012-02-07 04:20:50 -0500 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-04-18 03:54:00 -0400 |
commit | 76e3d7fc1a49ea8c377ddc91a4ec40f326404833 (patch) | |
tree | 297060a4b0651ab2d5744130cbda20e9953bc412 /net/batman-adv/routing.c | |
parent | cd8b78e7e9d1d9625634dc1ec2bb4b5a14d1295a (diff) |
batman-adv: rename BATMAN_OGM_LEN to BATMAN_OGM_HLEN
Using BATMAN_OGM_LEN leaves one with the impression that this is
the full packet size which is not the case. Therefore the variable
is renamed.
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Diffstat (limited to 'net/batman-adv/routing.c')
-rw-r--r-- | net/batman-adv/routing.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/routing.c b/net/batman-adv/routing.c index 78eddc9067e6..ac13a6a7409d 100644 --- a/net/batman-adv/routing.c +++ b/net/batman-adv/routing.c | |||
@@ -254,7 +254,7 @@ int recv_bat_ogm_packet(struct sk_buff *skb, struct hard_iface *hard_iface) | |||
254 | struct ethhdr *ethhdr; | 254 | struct ethhdr *ethhdr; |
255 | 255 | ||
256 | /* drop packet if it has not necessary minimum size */ | 256 | /* drop packet if it has not necessary minimum size */ |
257 | if (unlikely(!pskb_may_pull(skb, BATMAN_OGM_LEN))) | 257 | if (unlikely(!pskb_may_pull(skb, BATMAN_OGM_HLEN))) |
258 | return NET_RX_DROP; | 258 | return NET_RX_DROP; |
259 | 259 | ||
260 | ethhdr = (struct ethhdr *)skb_mac_header(skb); | 260 | ethhdr = (struct ethhdr *)skb_mac_header(skb); |