• Antonio Quartulli's avatar
    batman-adv: add sysfs framework for VLAN · 90f4435d
    Antonio Quartulli authored
    Each VLAN can now have its own set of attributes which are
    exported through a new subfolder in the sysfs tree.
    Each VLAN created on top of a soft_iface will have its own
    subfolder.
    
    The subfolder is named "vlan%VID" and it is created inside
    the "mesh" sysfs folder belonging to batman-adv.
    
    Attributes corresponding to the untagged LAN are stored in
    the root sysfs folder as before.
    
    This patch also creates all the needed macros and data
    structures to easily handle new VLAN spacific attributes.
    Signed-off-by: default avatarAntonio Quartulli <antonio@open-mesh.com>
    Signed-off-by: default avatarMarek Lindner <lindner_marek@yahoo.de>
    90f4435d
sysfs.h 1.95 KB