batman-adv: mark a local client as isolated when needed
authorAntonio Quartulli <antonio@open-mesh.com>
Sat, 16 Nov 2013 11:03:48 +0000 (12:03 +0100)
committerAntonio Quartulli <antonio@meshcoding.com>
Wed, 8 Jan 2014 19:49:43 +0000 (20:49 +0100)
commit9464d07188c5322957427a456d12d945370f7b29
tree0284e8544e13f3b41a92de6f793805d63f13a4f3
parentc42edfe382fee1c2c74550a5a3cbf50b2a28cf07
batman-adv: mark a local client as isolated when needed

A client sending packets which mark matches the value
configured via sysfs has to be identified as isolated using
the TT_CLIENT_ISOLA flag.

The match is mask based, meaning that only bits set in the
mask are compared with those in the mark value.

If the configured mask is equal to 0 no operation is
performed.

Such flag is then advertised within the classic client
announcement mechanism.

Signed-off-by: Antonio Quartulli <antonio@open-mesh.com>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
net/batman-adv/main.h
net/batman-adv/packet.h
net/batman-adv/soft-interface.c
net/batman-adv/translation-table.c
net/batman-adv/translation-table.h