From patchwork Sun Sep 8 17:44:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Noah Peterson X-Patchwork-Id: 18657 X-Patchwork-Delegate: sw@simonwunderlich.de Return-Path: X-Original-To: patchwork@open-mesh.org Delivered-To: patchwork@open-mesh.org Received: from diktynna.open-mesh.org (localhost [IPv6:::1]) by diktynna.open-mesh.org (Postfix) with ESMTP id 1B04B83F0B for ; Sun, 8 Sep 2024 20:08:56 +0200 (CEST) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=open-mesh.org; s=20121; t=1725818936; b=IFq9GHruYmGMYJXchgkCxGoTSczxe5OFjwRzhd33hM+u/vXMTWpnXi3YTXFUaiEsMvfe/ kR2T4PjtgHF+LPknTPqDiAGettz2OReodC0WS8UTZx4W6SRKL/gOTKkQOeXQPmG8IGxjI81 YCtCd6KW0Fzp8JDgV+3McwFp5zi/mgU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=open-mesh.org; s=20121; t=1725818936; h=from : sender : reply-to : subject : date : message-id : to : cc : mime-version : content-type : content-transfer-encoding : content-id : content-description : resent-date : resent-from : resent-sender : resent-to : resent-cc : resent-message-id : in-reply-to : references : list-id : list-help : list-unsubscribe : list-subscribe : list-post : list-owner : list-archive; bh=dxU9dlphWw/NrMAagsrcgtsQ/SJzcXDBATG13nyWZVA=; b=L6f3AxJdoFs1bfbH3g5uk+xHjmAM7mKI1JoRA4WLAauDvpUix406UaaloTFnnK+xMgmk5 AVPtRX91VB8qxKrkKaZfamyQnUjKrzUi/yTRbb8rJoBzA+z2Pwmv6C9PxDsOF6TVRLWV0m8 v6t9kIIcCrxj+v2a0RWGAgoNJhCBsBg= ARC-Authentication-Results: i=1; open-mesh.org; dkim=fail; arc=none (Message is not ARC signed); dmarc=fail (Used From Domain Record) header.from=gmail.com policy.dmarc=quarantine Authentication-Results: open-mesh.org; dkim=fail; arc=none (Message is not ARC signed); dmarc=fail (Used From Domain Record) header.from=gmail.com policy.dmarc=quarantine Received: from diktynna.open-mesh.org (localhost [IPv6:::1]) by diktynna.open-mesh.org (Postfix) with ESMTP id 670C081E85 for ; Sun, 8 Sep 2024 19:44:28 +0200 (CEST) MIME-Version: 1.0 Subject: [PATCH] batctl: neighbor: Fix print neighbors table header From: noahbpeterson1997@gmail.com To: b.a.t.m.a.n@lists.open-mesh.org Date: Sun, 08 Sep 2024 17:44:28 -0000 Message-ID: <172581746841.965.10559798237378220086@diktynna.open-mesh.org> User-Agent: HyperKitty on https://lists.open-mesh.org/ X-MailFrom: noahbpeterson1997@gmail.com X-Mailman-Rule-Hits: member-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address Message-ID-Hash: YG6BHFBYGCSWAYRS2QVEUK5CEKKLMELB X-Message-ID-Hash: YG6BHFBYGCSWAYRS2QVEUK5CEKKLMELB X-Mailman-Approved-At: Sun, 08 Sep 2024 20:08:10 +0200 X-Mailman-Version: 3.3.8 Precedence: list List-Id: The list for a Better Approach To Mobile Ad-hoc Networking Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: netlink_print_neighbors() now prints the correct header to match what batman-advanced currently outputs. The examples in the README.rst are updated too. Signed-off-by: Noah Peterson --- README.rst | 6 +++--- neighbors.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.rst b/README.rst index 3495fba..5eda1d3 100644 --- a/README.rst +++ b/README.rst @@ -376,9 +376,9 @@ Usage:: 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); }