]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: aggregation checks should use the primary_if pointer
authorMarek Lindner <lindner_marek@yahoo.de>
Sun, 26 Jun 2011 19:15:13 +0000 (21:15 +0200)
committerMarek Lindner <lindner_marek@yahoo.de>
Tue, 5 Jul 2011 12:28:55 +0000 (14:28 +0200)
commitd9bf6e7038c2aa5c624f4f0ef52cd5f89bca0f4e
tree59713bdbcf7e5787f65ea3d6c82f3128d23414b7
parent4cefca701ca849e80b9f72ca3a1d6b2a0e5083ab
batman-adv: aggregation checks should use the primary_if pointer

The packet aggregation needs to ensure that only compatible packets
are aggregated. Some of the checks are based on the interface number
while assuming that the first interface also is the primary interface
which is not always the case.
This patch addresses the issue by using the primary_if pointer.

Reported-by: Antonio Quartulli <ordex@autistici.org>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
net/batman-adv/aggregation.c