]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: detect not yet announced clients
authorAntonio Quartulli <ordex@autistici.org>
Thu, 5 Jul 2012 21:38:29 +0000 (23:38 +0200)
committerAntonio Quartulli <ordex@autistici.org>
Thu, 23 Aug 2012 12:20:22 +0000 (14:20 +0200)
commita2d1af4d55bf5051dba48e44e4ba4514fe09bc91
treedf702e35ab213c98ae4090343e28c1afbd17e207
parent53ead76c47fdf8c2c3db53a238941c9b506b900e
batman-adv: detect not yet announced clients

With the current TT mechanism a new client joining the network is not
immediately able to communicate with other hosts because its MAC address has not
been announced yet. This situation holds until the first OGM containing its
joining event will be spread over the mesh network.

This behaviour can be acceptable in networks where the originator interval is a
small value (e.g. 1sec) but if that value is set to an higher time (e.g. 5secs)
the client could suffer from several malfunctions like DHCP client timeouts,
etc.

This patch adds an early detection mechanism that makes nodes in the network
able to recognise "not yet announced clients" by means of the broadcast packets
they emitted on connection (e.g. ARP or DHCP request). The added client will
then be confirmed upon receiving the OGM claiming it or purged if such OGM
is not received within a fixed amount of time.

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
net/batman-adv/main.h
net/batman-adv/packet.h
net/batman-adv/translation-table.c
net/batman-adv/translation-table.h
net/batman-adv/types.h