batctl: Dynamically select header format in netlink_print_neighbors 1081/head
authorSven Eckelmann <sven@narfation.org>
Tue, 15 Oct 2024 19:27:37 +0000 (21:27 +0200)
committerSven Eckelmann <sven@narfation.org>
Tue, 15 Oct 2024 19:27:37 +0000 (21:27 +0200)
commit984bbe393c725cb68358c0f9c50ad7ad96d877ab
treecffc6b59a03be8595f902a64140cce5310d1b467
parent5c044beca120b7df8b954c1aef5e775ccd268908
batctl: Dynamically select header format in netlink_print_neighbors

The netlink_print_neighbors() function previously used a static header
format, which did not account for variations between the neighbor list
output from different BATMAN routing algorithms (BATMAN_IV vs. BATMAN_V).

This change ensures that the table header output in `batctl n` is accurate
for both BATMAN routing algorithms.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
batctl/Makefile
batctl/patches/0007-batctl-Dynamically-select-header-format-in-netlink_p.patch [new file with mode: 0644]