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)
commit74ee3634dcd1f11624192f72f458bcb5a04e4822
treeff7c06ebe3fa8fd70efe159c5b5aa3ba5a470cd2
parentff51fd70ad3e6bbf1ffc7d2a1d6a845d081df5a1
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