• Sven Eckelmann's avatar
    batman-adv: Always send iface index+name in genlmsg · d295345a
    Sven Eckelmann authored
    The batman-adv netlink messages often contain the interface index and
    interface name in the same message. This makes it easy for the receiver to
    operate on the incoming data when it either needs to print something or
    needs to operate on the interface index.
    
    But one of the attributes was missing for:
    
    * neighbor table dumps
    * originator table dumps
    * gateway list dumps
    * query of hardif information
    * query of vid information
    
    The userspace therefore had to implement special workarounds using
    SIOCGIFNAME or SIOCGIFINDEX depending on what was actually provided.
    Providing both information simplifies the userspace code massively without
    adding a lot of extra overhead in the kernel portion.
    Signed-off-by: default avatarSven Eckelmann <sven@narfation.org>
    Signed-off-by: default avatarSimon Wunderlich <sw@simonwunderlich.de>
    d295345a
bat_v.c 23.4 KB