diff options
author | Linus Lüssing <linus.luessing@c0d3.blue> | 2019-02-14 18:52:43 +0300 |
---|---|---|
committer | Simon Wunderlich <sw@simonwunderlich.de> | 2019-03-25 12:01:13 +0300 |
commit | 099e6cc1582dc2903fecb898bbeae8f7cf4262c7 (patch) | |
tree | f3b2687a9e760fdd95054fe2da09c695ddd79451 /net/batman-adv/translation-table.c | |
parent | c2d8b9a6c17a3848136b3eb31f26d3c5880acd89 (diff) | |
download | linux-099e6cc1582dc2903fecb898bbeae8f7cf4262c7.tar.xz |
batman-adv: allow updating DAT entry timeouts on incoming ARP Replies
Currently incoming ARP Replies, for example via a DHT-PUT message, do
not update the timeout for an already existing DAT entry. These ARP
Replies are dropped instead.
This however defeats the purpose of the DHCPACK snooping, for instance.
Right now, a DAT entry in the DHT will be purged every five minutes,
likely leading to a mesh-wide ARP Request broadcast after this timeout.
Which then recreates the entry. The idea of the DHCPACK snooping is to
be able to update an entry before a timeout happens, to avoid ARP Request
flooding.
This patch fixes this issue by updating a DAT entry on incoming
ARP Replies even if a matching DAT entry already exists. While still
filtering the ARP Reply towards the soft-interface, to avoid duplicate
messages on the client device side.
Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
Acked-by: Antonio Quartulli <a@unstable.cc>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Diffstat (limited to 'net/batman-adv/translation-table.c')
0 files changed, 0 insertions, 0 deletions