From 7c84b0bf0ee16799f4692e789e20a2b6388eae51 Mon Sep 17 00:00:00 2001 From: David Bauer Date: Wed, 20 Mar 2024 17:26:24 +0100 Subject: [PATCH] fixup! information: add neighbor count and fix byte order --- src/batadv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/batadv.c b/src/batadv.c index 1e07edf..71473f1 100644 --- a/src/batadv.c +++ b/src/batadv.c @@ -68,11 +68,11 @@ static int parse_orig_list_netlink_cb(struct nl_msg *msg, void *arg) return NL_OK; opts->stats->originator_count++; - if if (memcmp(orig, dest, 6) != 0) + if (memcmp(orig, dest, 6) != 0) return NL_OK; opts->stats->neighbor_count++; - if (!strncmp(ifname, "mesh-vpn", strlen(ifname)) { + if (!strncmp(ifname, "mesh-vpn", strlen(ifname))) { opts->stats->vpn.tq = nla_get_u8(attrs[BATADV_ATTR_TQ]); opts->stats->vpn.connected = 1; }