From patchwork Sun Nov 4 19:34:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 17612 Return-Path: X-Original-To: patchwork@open-mesh.org Delivered-To: patchwork@open-mesh.org Received: from open-mesh.org (localhost [IPv6:::1]) by open-mesh.org (Postfix) with ESMTP id DAB4D83182; Sun, 4 Nov 2018 20:34:20 +0100 (CET) Authentication-Results: open-mesh.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=narfation.org header.i=@narfation.org header.b="si5HHh4M"; dkim-atps=neutral Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2001:4d88:2000:7::2; helo=v3-1039.vlinux.de; envelope-from=sven@narfation.org; receiver= Received: from v3-1039.vlinux.de (narfation.org [IPv6:2001:4d88:2000:7::2]) by open-mesh.org (Postfix) with ESMTPS id 278BA83182 for ; Sun, 4 Nov 2018 20:34:20 +0100 (CET) Received: from sven-desktop.home.narfation.org (p200300C593DB96FD0000000000008096.dip0.t-ipconnect.de [IPv6:2003:c5:93db:96fd::8096]) by v3-1039.vlinux.de (Postfix) with ESMTPSA id 94F9A110109; Sun, 4 Nov 2018 20:34:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=narfation.org; s=20121; t=1541360059; bh=ejEP773j9pI/muTUYRn3f85Io7bjPotzExV65OB0uE4=; h=From:To:Cc:Subject:Date:From; b=si5HHh4MOAZZYuIPyCRdRwF8flVZy6r4ZO5gw39HDcUzv0KY51MYVwTS5zlSSLlzF uQsIWYX68qeQUXsuaLP2aRprGXaoGcRjM7Nke6m4WuMKcE9+YfCIW9ustupb6L6vNR uefAXQeiW5mLkcNiaLQgNDjx26ks7RPZFhZbf0t4= From: Sven Eckelmann To: b.a.t.m.a.n@lists.open-mesh.org Date: Sun, 4 Nov 2018 20:34:06 +0100 Message-Id: <20181104193408.18253-1-sven@narfation.org> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Subject: [B.A.T.M.A.N.] [RFC 0/2] batctl: netlink restructuring, part 3 X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking Errors-To: b.a.t.m.a.n-bounces@lists.open-mesh.org Sender: "B.A.T.M.A.N" As mentioned earlier, the netlink config restructuring in batctl will be splitted in multiple steps. The first step was already merged and the RFC changes for the netlink interface in batman-adv were just posted. Since it doesn't make sense to have a full implementation in batctl when the batman-adv part is not yet in a finished state. But it also is useless to have only the batman-adv RFC part without a userspace tool. The (by default disabled) config subcommand is (my) solution for this problem. It allows developers to play around with this interface and assign new values for specific keys and to read the current config state. Make sure that you enable it during the build: $ make clean; make CONFIG_config=y Kind regards, Sven Sven Eckelmann (2): batctl: Add generic netlink configuration subcommand batctl: Add support for config mcast group in event monitor Makefile | 1 + batman_adv.h | 55 ++++++ config.c | 542 +++++++++++++++++++++++++++++++++++++++++++++++++++ event.c | 100 ++++++++++ man/batctl.8 | 37 ++++ netlink.c | 3 + 6 files changed, 738 insertions(+) create mode 100644 config.c