batman-adv: fix local TT check for outgoing arp requests in DAT
authorAntonio Quartulli <antonio@open-mesh.com>
Sat, 29 Mar 2014 16:27:38 +0000 (17:27 +0100)
committerAntonio Quartulli <antonio@meshcoding.com>
Thu, 15 May 2014 18:23:47 +0000 (20:23 +0200)
commitcc2f33860cea0e48ebec096130bd0f7c4bf6e0bc
tree9a36047caecb111d8290ced70a46a40eafe8d157
parent377fe0f968b30a1a714fab53a908061914f30e26
batman-adv: fix local TT check for outgoing arp requests in DAT

Change introduced by 88e48d7b3340ef07b108eb8a8b3813dd093cc7f7
("batman-adv: make DAT drop ARP requests targeting local clients")
implements a check that prevents DAT from using the caching
mechanism when the client that is supposed to provide a reply
to an arp request is local.

However change brought by be1db4f6615b5e6156c807ea8985171c215c2d57
("batman-adv: make the Distributed ARP Table vlan aware")
has not converted the above check into its vlan aware version
thus making it useless when the local client is behind a vlan.

Fix the behaviour by properly specifying the vlan when
checking for a client being local or not.

Reported-by: Simon Wunderlich <simon@open-mesh.com>
Signed-off-by: Antonio Quartulli <antonio@open-mesh.com>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
net/batman-adv/distributed-arp-table.c