summaryrefslogtreecommitdiffstats
path: root/net/batman-adv/bitarray.c
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2021-05-10 15:05:42 +0200
committerSimon Wunderlich <sw@simonwunderlich.de>2021-05-17 12:00:44 +0200
commitd295345abb3e91e5a16f3293eb12b111e352bd2b (patch)
tree096e4a878336ee7c20d5abbbd9ca7f6cab0b80ca /net/batman-adv/bitarray.c
parent9a959cab22194d633b3a1d9d1943b0df3475122c (diff)
downloadlinux-stable-d295345abb3e91e5a16f3293eb12b111e352bd2b.tar.gz
linux-stable-d295345abb3e91e5a16f3293eb12b111e352bd2b.tar.bz2
linux-stable-d295345abb3e91e5a16f3293eb12b111e352bd2b.zip
batman-adv: Always send iface index+name in genlmsg
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: Sven Eckelmann <sven@narfation.org> Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Diffstat (limited to 'net/batman-adv/bitarray.c')
0 files changed, 0 insertions, 0 deletions