]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: set the isolation mark in the skb if needed
authorAntonio Quartulli <antonio@open-mesh.com>
Sat, 16 Nov 2013 11:03:52 +0000 (12:03 +0100)
committerAntonio Quartulli <antonio@meshcoding.com>
Wed, 8 Jan 2014 19:49:46 +0000 (20:49 +0100)
commitdac80d504e3cfa0fbcb00dec5cbb44c1f869de1e
treec21910441be29c1f17325e577dbb60719c0fe1a7
parentd55f2e6a3789a712e8755f674d1e41692f947cd1
batman-adv: set the isolation mark in the skb if needed

If a broadcast packet is coming from a client marked as
isolated, then mark the skb using the isolation mark so
that netfilter (or any other application) can recognise
them.

The mark is written in the skb based on the mask value:
only bits set in the mask are substitued by those in the
mark value

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