On Sunday, 8 September 2024 19:44:28 CEST noahbpeterson1997@gmail.com wrote:
netlink_print_neighbors() now prints the correct header to match what batman-advanced currently outputs.
This is wrong, this is not what it outputs for the default B.A.T.M.A.N. IV:
$ batctl n [B.A.T.M.A.N. adv 2024.0-openwrt-2, MainIF/MAC: primary0/ae:1b:bf:52:25:5b (bat0/52:54:00:ec:00:01 BATMAN_IV)] IF Neighbor last-seen vxlan 16:7b:3c:c2:bf:bc 2.880s mesh-vpn 02:12:7b:00:04:01 0.830s
[...]
Example::
- IF Neighbor last-seen
enp0s1 16:7b:3c:c2:bf:b8 4.612s
enp0s1 ae:1b:bf:52:25:58 0.740s
Neighbor last-seen speed IF
- 16:7b:3c:c2:bf:b8 4.612s ( 1000.0) [ enp0s1]
- ae:1b:bf:52:25:58 0.740s ( 1000.0) [ enp0s1]
batctl originators diff --git a/neighbors.c b/neighbors.c index 3102b0e..9dcdb81 100644 --- a/neighbors.c +++ b/neighbors.c @@ -121,7 +121,7 @@ static int netlink_print_neighbors(struct state *state, char *orig_iface, { return netlink_print_common(state, orig_iface, read_opts, orig_timeout, watch_interval,
"IF Neighbor last-seen\n",
" Neighbor last-seen speed IF\n", BATADV_CMD_GET_NEIGHBORS, neighbors_callback);
}
Kind regards, Sven