]> git.karo-electronics.de Git - linux-beck.git/commit
batman-adv: Fix potentially broken skb network header access
authorLinus Lüssing <linus.luessing@c0d3.blue>
Tue, 30 Jun 2015 21:45:26 +0000 (23:45 +0200)
committerAntonio Quartulli <antonio@meshcoding.com>
Fri, 14 Aug 2015 20:52:10 +0000 (22:52 +0200)
commit53cf037bf846417fd92dc92ddf97267f69b110f4
tree677bf06ed90113864db8726610736564b4c13da2
parent3f1e08d0ae6746379b9e21264dae52f4f35c7ad2
batman-adv: Fix potentially broken skb network header access

The two commits noted below added calls to ip_hdr() and ipv6_hdr(). They
need a correctly set skb network header.

Unfortunately we cannot rely on the device drivers to set it for us.
Therefore setting it in the beginning of the according ndo_start_xmit
handler.

Fixes: 1d8ab8d3c176 ("batman-adv: Modified forwarding behaviour for multicast packets")
Fixes: ab49886e3da7 ("batman-adv: Add IPv4 link-local/IPv6-ll-all-nodes multicast support")
Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
net/batman-adv/soft-interface.c