From patchwork Tue Nov 1 12:19:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 16797 X-Patchwork-Delegate: sw@simonwunderlich.de 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 88CC983171; Tue, 1 Nov 2016 13:19:42 +0100 (CET) Authentication-Results: open-mesh.org; dmarc=none header.from=narfation.org Authentication-Results: open-mesh.org; dkim=fail reason="verification failed; unprotected key" header.d=narfation.org header.i=@narfation.org header.b=kRjfMsfM; dkim-adsp=fail (unprotected policy); dkim-atps=neutral Received: from v3-1039.vlinux.de (narfation.org [IPv6:2001:4d88:2000:7::2]) by open-mesh.org (Postfix) with ESMTPS id 958DE81BD1 for ; Tue, 1 Nov 2016 13:19:41 +0100 (CET) Authentication-Results: open-mesh.org; dmarc=pass header.from=narfation.org Received: from sven-desktop.home.narfation.org (p2003007C6F695BFECE9D1AA3674B0914.dip0.t-ipconnect.de [IPv6:2003:7c:6f69:5bfe:ce9d:1aa3:674b:914]) by v3-1039.vlinux.de (Postfix) with ESMTPSA id CDB381100A9; Tue, 1 Nov 2016 13:19:40 +0100 (CET) Authentication-Results: v3-1039.vlinux.de; dmarc=none header.from=narfation.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=narfation.org; s=20121; t=1478002780; bh=LuIDFf4KTuhNdgCE5IeUag1FmAfcNcGPSIwh4EMDmNE=; h=From:To:Cc:Subject:Date:From; b=kRjfMsfMX0ebXmMBI2TcUfNA3z2DCyIdLJpQVE/0de+KqOvOLkKH3ZFGvwH0iaQHt VZQ+xEiHoWSTbSp+j3ecINmQHaHu3Xc5DADT/vsWnIuAa8aR1nwKvU0tsHwmH7A/SZ sDa+01oN4VxHdHnu8PcZ0uX8xqIpYysJ3OYk8We4= From: Sven Eckelmann To: b.a.t.m.a.n@lists.open-mesh.org Date: Tue, 1 Nov 2016 13:19:37 +0100 Message-Id: <20161101121937.31890-1-sven@narfation.org> X-Mailer: git-send-email 2.10.1 Subject: [B.A.T.M.A.N.] [PATCH v2] alfred: vis: Don't fail when debugfs cannot be mounted X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.18 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" The vis server is supposed to use netlink when available. This allows to work on systems without debugfs and under network namespaces. Thus it is now not strictly required anymore to have debugfs available. Signed-off-by: Sven Eckelmann --- vis/vis.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/vis/vis.c b/vis/vis.c index f4d13c7..51d7f5c 100644 --- a/vis/vis.c +++ b/vis/vis.c @@ -1120,13 +1120,7 @@ static struct globals *vis_init(int argc, char *argv[]) static int vis_server(struct globals *globals) { - char *debugfs_mnt; - - debugfs_mnt = debugfs_mount(NULL); - if (!debugfs_mnt) { - fprintf(stderr, "Error - can't mount or find debugfs\n"); - return EXIT_FAILURE; - } + debugfs_mount(NULL); globals->push = (struct alfred_push_data_v0 *) globals->buf; globals->vis_data = (struct vis_v1 *) (globals->buf + sizeof(*globals->push) + sizeof(struct alfred_data));