batman-adv: Snoop DHCPACKs for DAT
authorLinus Lüssing <linus.luessing@c0d3.blue>
Sun, 30 Dec 2018 15:52:53 +0000 (16:52 +0100)
committerSimon Wunderlich <sw@simonwunderlich.de>
Sun, 30 Dec 2018 17:14:42 +0000 (18:14 +0100)
commitb61ec31c85756bbc898fb892555509afe709459a
treefb8a5e923b12b45bd2f46a7788e05d015962d330
parent25c097ca413bdb05c50a078eb832020247caefd2
batman-adv: Snoop DHCPACKs for DAT

In a 1000 nodes mesh network (Freifunk Hamburg) we can still see
30KBit/s of ARP traffic (equalling about 25% of all layer two
specific overhead, remaining after some filtering) flooded through
the mesh. These 30KBit/s are mainly ARP Requests from the
gateways / DHCP servers.

By snooping DHCPACKs we can learn about MAC/IP address pairs
in the DHCP range without relying on ARP. This patch is in preparation
to eliminate the need for mesh wide message flooding for IPv4 address
resolution.

Also this allows to quickly update a MAC/IP pair at least in the DHT when
DHCP reassigns an IP address to a new host.

Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/distributed-arp-table.c
net/batman-adv/distributed-arp-table.h
net/batman-adv/routing.c
net/batman-adv/soft-interface.c