]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: add isolation_mark sysfs attribute
authorAntonio Quartulli <antonio@open-mesh.com>
Sat, 16 Nov 2013 11:03:47 +0000 (12:03 +0100)
committerAntonio Quartulli <antonio@meshcoding.com>
Wed, 8 Jan 2014 19:49:42 +0000 (20:49 +0100)
commite3526fb56125061af927f327baea5fbaa87b9656
treebc1f346482e3c6f24b9363d3362e8ee691a30e4b
parent0dba596a4a49527a05e6c87e50546b53aa94eef7
batman-adv: add isolation_mark sysfs attribute

This attribute can be used to set and read the value and the
mask of the skb mark which will be used to classify the
source non-mesh client as ISOLATED. In this way a client can
be advertised as such and the mark can potentially be
restored at the receiving node before delivering the skb.

This can be helpful for creating network wide netfilter
policies.

This sysfs file expects a string of the shape "$mark/$mask".
Where $mark has to be a 32-bit number in any base, while
$mask must be a 32bit mask expressed in hex base. Only bits
in $mark covered by the bitmask are really stored.

Signed-off-by: Antonio Quartulli <antonio@open-mesh.com>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Documentation/ABI/testing/sysfs-class-net-mesh
net/batman-adv/soft-interface.c
net/batman-adv/sysfs.c
net/batman-adv/types.h