diff options
author | Sven Eckelmann <sven@narfation.org> | 2021-05-10 15:05:42 +0200 |
---|---|---|
committer | Simon Wunderlich <sw@simonwunderlich.de> | 2021-05-17 12:00:44 +0200 |
commit | d295345abb3e91e5a16f3293eb12b111e352bd2b (patch) | |
tree | 096e4a878336ee7c20d5abbbd9ca7f6cab0b80ca /lib/kobject.c | |
parent | 9a959cab22194d633b3a1d9d1943b0df3475122c (diff) |
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 'lib/kobject.c')
0 files changed, 0 insertions, 0 deletions