]> 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)
commit7523fae88cf20a71ac1f1aa259cca01524410d5f
tree677bf06ed90113864db8726610736564b4c13da2
parentb9f210749f5485e0907693177f11ec1b642df585
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: 918d6c2b4fbd ("batman-adv: Modified forwarding behaviour for multicast packets")
Fixes: 93210ce7fda4 ("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