]> git.baikalelectronics.ru Git - kernel.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)
commitb3acb89bd983e5b3c8403a24a6c23fa691be7cf5
tree677bf06ed90113864db8726610736564b4c13da2
parent9be2990a411912a763101be479b20484ffbfd4c9
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: 6eb44ffbf5cf ("batman-adv: Modified forwarding behaviour for multicast packets")
Fixes: 1f73a342b2c4 ("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