From patchwork Wed Apr 3 18:01:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 17876 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 4B48381591; Wed, 3 Apr 2019 20:01:30 +0200 (CEST) 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="WFCDasDe"; dkim-atps=neutral Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=79.140.41.39; helo=v3-1039.vlinux.de; envelope-from=sven@narfation.org; receiver= Received: from v3-1039.vlinux.de (narfation.org [79.140.41.39]) by open-mesh.org (Postfix) with ESMTPS id 57F6E8089C for ; Wed, 3 Apr 2019 20:01:27 +0200 (CEST) Received: from sven-desktop.home.narfation.org (unknown [IPv6:2a00:1ca0:1480:f1fc::4065]) by v3-1039.vlinux.de (Postfix) with ESMTPSA id AD8B21100DA; Wed, 3 Apr 2019 20:01:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=narfation.org; s=20121; t=1554314486; bh=RqradtQjmRGNjZX90a0u65Vr9RCJQRctbXRIJfJW3NI=; h=From:To:Cc:Subject:Date:From; b=WFCDasDe4Qu5tMWDiwlwbEMm/7mBzjwX/HNpITCMG0Afykof7gGsPZp4maskiGZOZ JpL5RJneCxxXX7OyW47B5JaukVkbUCapI/6SqD5rvycQrmm6bLbidzqfi410mfwYuk u0wdoi7EjitOpCJ3BMV/U7ZYxutUvVYl0pzXccE0= From: Sven Eckelmann To: b.a.t.m.a.n@lists.open-mesh.org Date: Wed, 3 Apr 2019 20:01:16 +0200 Message-Id: <20190403180119.26800-1-sven@narfation.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [B.A.T.M.A.N.] [PATCH 0/3] batctl: Add netlink support for sysfs-only functionality 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" Hi, some functionality in batctl was previously using sysfs to implement some of its features. Since the sysfs support can now be disabled in the kernel, these features were broken in such setups. This was especially problematic for functionality which depends on the main mesh interface. The check to make sure that this is interface is a valid batadv interface were exclusively using sysfs. Switching them to (or actually extending them to support) netlink should fix this. The old sysfs functionality is still here but can be removed in the future. Kind regards, Sven Sven Eckelmann (3): batctl: Support checking of meshif without sysfs batctl: Reimplement VLAN translation using helper batctl: Add netlink fallback for sysfs' iface_status debug.c | 2 +- functions.c | 407 ++++++++++++++++++++++++++++++---------------------- functions.h | 2 +- interface.c | 92 +++++++++++- 4 files changed, 331 insertions(+), 172 deletions(-)