]> Pileus Git - ~andy/linux/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)
commit42cb0bef0176572e2e826b49d697c653eedd7fce
treec21910441be29c1f17325e577dbb60719c0fe1a7
parenteceb22ae0bdcb49daff9989f91fb3388fa501a69
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