Re: [B.A.T.M.A.N.] [PATCHv3 1/6] batman-adv: add isolation_mark sysfs attribute

Marek Lindner
2013-11-17T03:30:00Z

[-- Attachment #1: Type: text/plain, Size: 1062 bytes --]

On Saturday 16 November 2013 12:03:47 Antonio Quartulli wrote:
> From: Antonio Quartulli <antonio@open-mesh.com>
>
> 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>
> ---
> soft-interface.c | 2 ++
> sysfs-class-net-mesh | 8 ++++++
> sysfs.c | 71
> ++++++++++++++++++++++++++++++++++++++++++++++++++++
> types.h | 2 ++
> 4 files changed, 83 insertions(+)

Applied in revision e29249b.

Thanks,
Marek

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 490 bytes --]