Message ID | 20161013090310.9619-1-sven.eckelmann@open-mesh.com (mailing list archive) |
---|---|
State | Accepted, archived |
Commit | f21f747182c3fc970965e903e9ff01791a5e7da8 |
Delegated to: | Simon Wunderlich |
Headers |
Return-Path: <b.a.t.m.a.n-bounces@lists.open-mesh.org> 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 64F7D809A2; Thu, 13 Oct 2016 11:03:25 +0200 (CEST) Authentication-Results: open-mesh.org; dmarc=none header.from=open-mesh.com Authentication-Results: open-mesh.org; dkim=fail reason="verification failed; unprotected key" header.d=open-mesh-com.20150623.gappssmtp.com header.i=@open-mesh-com.20150623.gappssmtp.com header.b=z2+lVAzp; dkim-adsp=none (unprotected policy); dkim-atps=neutral Received-SPF: Neutral (access neither permitted nor denied) identity=mailfrom; client-ip=2607:f8b0:400d:c0d::22f; helo=mail-qt0-x22f.google.com; envelope-from=sven.eckelmann@open-mesh.com; receiver=b.a.t.m.a.n@lists.open-mesh.org Authentication-Results: open-mesh.org; dmarc=none header.from=open-mesh.com Received: from mail-qt0-x22f.google.com (mail-qt0-x22f.google.com [IPv6:2607:f8b0:400d:c0d::22f]) by open-mesh.org (Postfix) with ESMTPS id D940B80877 for <b.a.t.m.a.n@lists.open-mesh.org>; Thu, 13 Oct 2016 11:03:22 +0200 (CEST) Received: by mail-qt0-x22f.google.com with SMTP id s49so34877922qta.0 for <b.a.t.m.a.n@lists.open-mesh.org>; Thu, 13 Oct 2016 02:03:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=open-mesh-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=L6lGgpwyLaYa2kB2AWpBzAc43psAvR+dbI5PIChRtIs=; b=z2+lVAzpvldBDQ9CkrpsLrXHiXhBBOcjVL2r8SiBXs8Mo3PxBvNYOFmez2fVLuOvCL ShNIyQV64OuyMp6U4k0QUZv4q3enjoN8BJyMHiB1kaZX5A6TYUkzaxqH4LvgPFjz5qEU ozdrpA0yPQjpqhJSJvLWNtv+F1Lqt/WUAZa99If4UxyRRiWdULmjgznmgJU6XwM9ZfUu jvwmvoZFxG58Efyetlm9VxsUieudMNhdct/0CVFvKvQrc2MyrXadMDF2hqPZ6J1XAvRS 8vac8UCDqYdwVdymxepo66QO0r40bSdON24bR4CtfNBDDZQOunUtcDY9MfWCHb1boECS 2tlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=L6lGgpwyLaYa2kB2AWpBzAc43psAvR+dbI5PIChRtIs=; b=KHmXGi/Juyy14R/rn5l1i5DM+AphgDMiQ+515/0s43k5DIsh/fQJGhJBntcbyednLO xdyibYTzh6zMB0d7qmQcG57i3nXSvavS31/sXO4yHn1eZlVVYOCuI43vk9+p8D0sk121 ZOKJPCW/8r7mtmk32M3M6Xozk6HPZPvOvg0ooVXGRzHO5k5HHhRIBlX5DQQIgUxyGC4R RfwQKcIawZm4vQZmzJJNaCENu+Hd2uEjhAqsPXQ6hk9Nkh5L+TJe+z21i+o9gVDHv+p1 1YwADjpanP4HRkmXjvCJEj7OIjIHKrRyX3J+X1PpqXTghV2jFS7xCFPunWv/KxcGdnpW mvyg== X-Gm-Message-State: AA6/9RldJsyNxifl+wfeWJu84eFZpajCrVNJ5e3D9WAj0tWlqeHBBD0BHBMF5cVxEZjdyTpv X-Received: by 10.28.191.3 with SMTP id p3mr1370709wmf.112.1476349401450; Thu, 13 Oct 2016 02:03:21 -0700 (PDT) Received: from sven-desktop.home.narfation.org (p2003007C6F73C2FEB8695ECF9D9C8B90.dip0.t-ipconnect.de. [2003:7c:6f73:c2fe:b869:5ecf:9d9c:8b90]) by smtp.gmail.com with ESMTPSA id us3sm20771346wjb.32.2016.10.13.02.03.20 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 13 Oct 2016 02:03:21 -0700 (PDT) From: Sven Eckelmann <sven.eckelmann@open-mesh.com> To: b.a.t.m.a.n@lists.open-mesh.org Date: Thu, 13 Oct 2016 11:03:10 +0200 Message-Id: <20161013090310.9619-1-sven.eckelmann@open-mesh.com> X-Mailer: git-send-email 2.9.3 Cc: Sven Eckelmann <sven.eckelmann@open-mesh.com> Subject: [B.A.T.M.A.N.] [PATCH] alfred: Keep order of interfaces from commandline 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 <b.a.t.m.a.n.lists.open-mesh.org> List-Unsubscribe: <https://lists.open-mesh.org/mm/options/b.a.t.m.a.n>, <mailto:b.a.t.m.a.n-request@lists.open-mesh.org?subject=unsubscribe> List-Archive: <http://lists.open-mesh.org/pipermail/b.a.t.m.a.n/> List-Post: <mailto:b.a.t.m.a.n@lists.open-mesh.org> List-Help: <mailto:b.a.t.m.a.n-request@lists.open-mesh.org?subject=help> List-Subscribe: <https://lists.open-mesh.org/mm/listinfo/b.a.t.m.a.n>, <mailto:b.a.t.m.a.n-request@lists.open-mesh.org?subject=subscribe> Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking <b.a.t.m.a.n@lists.open-mesh.org> Errors-To: b.a.t.m.a.n-bounces@lists.open-mesh.org Sender: "B.A.T.M.A.N" <b.a.t.m.a.n-bounces@lists.open-mesh.org> |
Commit Message
Sven Eckelmann
Oct. 13, 2016, 9:03 a.m. UTC
The first (valid) interface mac address will be used as source mac for an
dataset. But alfred added the commandline parameters for a multi-interface
master in reverse order.
Keep the list in the same order as the commandline to fulfill the
user expectations when checking the source entries of datasets.
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
---
netsock.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Thursday, October 13, 2016 11:03:10 AM CEST Sven Eckelmann wrote: > The first (valid) interface mac address will be used as source mac for an > dataset. But alfred added the commandline parameters for a multi-interface > master in reverse order. > > Keep the list in the same order as the commandline to fulfill the > user expectations when checking the source entries of datasets. > > Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com> Applied in revision f21f747 Thanks! Simon
diff --git a/netsock.c b/netsock.c index d72541e..5d37347 100644 --- a/netsock.c +++ b/netsock.c @@ -165,7 +165,7 @@ int netsock_set_interfaces(struct globals *globals, char *interfaces) return -ENOMEM; } - list_add(&interface->list, &globals->interfaces); + list_add_tail(&interface->list, &globals->interfaces); } return 0;