• Antonio Quartulli's avatar
    batman-adv: add isolation_mark sysfs attribute · c42edfe3
    Antonio Quartulli authored
    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: default avatarAntonio Quartulli <antonio@open-mesh.com>
    Signed-off-by: default avatarMarek Lindner <mareklindner@neomailbox.ch>
    c42edfe3
sysfs-class-net-mesh 4 KB