Skip to content

Commit

Permalink
fixup! information: add neighbor count and fix byte order
Browse files Browse the repository at this point in the history
  • Loading branch information
blocktrron committed Mar 20, 2024
1 parent 0008bd3 commit 7c84b0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/batadv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 7c84b0b

Please sign in to comment.