]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: Drop tt queries with foreign dest
authorMartin Hundebøll <martin@hundeboll.net>
Thu, 5 Jul 2012 09:34:28 +0000 (11:34 +0200)
committerAntonio Quartulli <ordex@autistici.org>
Thu, 23 Aug 2012 12:20:19 +0000 (14:20 +0200)
commitf51c38880dfae2568b9ea45659169641254e418b
treeff7c06ebe3fa8fd70efe159c5b5aa3ba5a470cd2
parent7ae0de117fef47529fd9df2b148fcfb50dd0fbf7
batman-adv: Drop tt queries with foreign dest

When enabling promiscuous mode, tt queries for other hosts might be
received. Before this patch, "foreign" tt queries were processed like
any other query and thus forwarded to its destination again and thereby
causing a loop.

This patch adds a check to drop foreign tt queries.

Signed-off-by: Martin Hundebøll <martin@hundeboll.net>
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
net/batman-adv/routing.c