batman-adv: fix elp packet data reservation
authorLinus Lüssing <linus.luessing@c0d3.blue>
Tue, 23 Aug 2016 01:13:03 +0000 (03:13 +0200)
committerSimon Wunderlich <sw@simonwunderlich.de>
Fri, 26 Aug 2016 13:22:31 +0000 (15:22 +0200)
commit1e5d343b8f23770e8ac5d31f5c439826bdb35148
treeac547b89ea8af754e0671ed70610907d8ce63e2e
parent936523441bb64cdc9a5b263e8fd2782e70313a57
batman-adv: fix elp packet data reservation

The skb_reserve() call only reserved headroom for the mac header, but
not the elp packet header itself.

Fixing this by using skb_put()'ing towards the skb tail instead of
skb_push()'ing towards the skb head.

Fixes: d6f94d91f766 ("batman-adv: ELP - adding basic infrastructure")
Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/bat_v_elp.c