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)
commitb539e4cd3b08dddbaa2ba0f158eed3c7c2244eaf
tree59713bdbcf7e5787f65ea3d6c82f3128d23414b7
parent6a020ab452d38b3878903de931c162429072a7d7
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