]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: clear control block of received socket buffers
authorMartin Hundebøll <martin@hundeboll.net>
Wed, 17 Sep 2014 06:56:19 +0000 (08:56 +0200)
committerAntonio Quartulli <antonio@meshcoding.com>
Wed, 7 Jan 2015 16:21:57 +0000 (17:21 +0100)
commit22c28bc72d432d479dc2d62648b39a67a2076b72
treef45d251dcdda2a4f671246450d224f8f0b070f15
parent613d6a86ebe8893cdfff9f0273154d5dd1b709b0
batman-adv: clear control block of received socket buffers

Since other network components (and some drivers) uses the control block
provided in skb's, the network coding feature might wrongly assume that
an SKB has been decoded, and thus not try to code it with another packet
again. This happens for instance when batman-adv is running on a bridge device.

Fix this by clearing the control block for every received SKB.

Introduced by 2573032325d47e2471832a3cdecaab445a1a65c4
("batman-adv: network coding - code and transmit packets if possible")
Signed-off-by: Martin Hundebøll <martin@hundeboll.net>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
net/batman-adv/main.c