batman-adv: Distributed ARP Table - add snooping functions for ARP messages
authorAntonio Quartulli <ordex@autistici.org>
Sun, 26 Jun 2011 01:37:18 +0000 (03:37 +0200)
committerAntonio Quartulli <ordex@autistici.org>
Wed, 7 Nov 2012 19:00:21 +0000 (20:00 +0100)
commitc384ea3ec930ef11060a7308fbbd02b4871384f9
tree14764f1a722c0a5633aa9dc5cebc19081703d446
parent5c3a0e5535933349a5d6e6bc8b704e0611f21d3f
batman-adv: Distributed ARP Table - add snooping functions for ARP messages

In case of an ARP message going in or out the soft_iface, it is intercepted and
a special action is performed. In particular the DHT helper functions previously
implemented are used to store all the ARP entries belonging to the network in
order to provide a fast and unicast lookup instead of the classic broadcast
flooding mechanism.
Each node stores the entries it is responsible for (following the DHT rules) in
its soft_iface ARP table. This makes it possible to reuse the kernel data
structures and functions for ARP management.

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
net/batman-adv/distributed-arp-table.c
net/batman-adv/distributed-arp-table.h
net/batman-adv/main.h
net/batman-adv/routing.c
net/batman-adv/send.c
net/batman-adv/soft-interface.c