Simon Wunderlich | 25 Aug 19:41 2014
Picon

[PATCH] alfred: support for changing interfaces

From: Simon Wunderlich <simon@...>

This patch adds support for changing the interface alfreds listens to on
the fly without restarting alfred.

Signed-off-by: Simon Wunderlich <simon@...>
---
 alfred.h     |  2 ++
 client.c     | 54 +++++++++++++++++++++++++++++++++++++++++++++++++
 main.c       | 66 +++++++++++++++++++++++++++++++++++-------------------------
 man/alfred.8 |  3 +++
 packet.h     | 17 ++++++++++++++++
 unix_sock.c  | 38 ++++++++++++++++++++++++++++++++++
 vis/vis.c    |  2 +-
 7 files changed, 154 insertions(+), 28 deletions(-)

diff --git a/alfred.h b/alfred.h
index 35ac4dd..f0989ea 100644
--- a/alfred.h
+++ b/alfred.h
 <at>  <at>  -86,6 +86,7  <at>  <at>  enum clientmode {
 	CLIENT_REQUEST_DATA,
 	CLIENT_SET_DATA,
 	CLIENT_MODESWITCH,
+	CLIENT_CHANGE_INTERFACE,
 };

 struct globals {
 <at>  <at>  -125,6 +126,7  <at>  <at>  int set_best_server(struct globals *globals);
 int alfred_client_request_data(struct globals *globals);
(Continue reading)

Linus Lüssing | 21 Aug 21:48 2014
Picon

[PATCHv3 1/2] batctl: adding multicast debug level

This patch adds the multicast debug level to check for own
multicast flag changes for instance.

Signed-off-by: Linus Lüssing <linus.luessing@...>
---

Changes in v3:
* none

Changes in v2:
* added a sentence about 'mcast' log level to manpage

 README       |    1 +
 man/batctl.8 |    6 +++---
 sys.c        |    5 +++++
 3 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/README b/README
index b5fd259..c5e3575 100644
--- a/README
+++ b/README
 <at>  <at>  -389,6 +389,7  <at>  <at>  $  batctl loglevel
 [ ] messages related to bridge loop avoidance (bla)
 [ ] messages related to arp snooping and distributed arp table (dat)
 [ ] messages related to network coding (nc)
+[ ] messages related to multicast (mcast)

 batctl nc_nodes
 ===============
diff --git a/man/batctl.8 b/man/batctl.8
(Continue reading)

liu | 21 Aug 09:20 2014

How to test the non-mesh client roaming feature?

Hello, everyone. I want to test the non-mesh client roaming feature. And 
I have connected my notebook to the mesh node A via the access point on 
node A. What should I do next? When the notebook move to the mesh node 
B, should I connect it to the access point on node B manually?How to 
make the non-mesh client move to another mesh node automatically? Thanks.

Best regards
liu

Antonio Quartulli | 20 Aug 17:04 2014

[PATCHv4] batctl: tcpdump - parse TVLV containers

From: Antonio Quartulli <antonio@...>

OGMs and unicast TVLV packets carry TVLV containers as
payload.
With this patch such containers are now parsed and the
relevant information is printed to screen.

Signed-off-by: Antonio Quartulli <antonio@...>
---

changes since v3:
- undo unneeded style change in tcpdump.c
- remove unneeded sentence about style change sin commit message

changes since v2:
- extended doc in README and manpage

changes since v1:
- remove all the style changes
- make tvlv_len of type ssize_t in dump_batman_iv_ogm()

 README       |   1 +
 main.h       |   7 +++
 man/batctl.8 |   3 ++
 tcpdump.c    | 169 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
 tcpdump.h    |   1 +
 5 files changed, 177 insertions(+), 4 deletions(-)

diff --git a/README b/README
index b5fd259..f87c551 100644
(Continue reading)

Antonio Quartulli | 20 Aug 16:47 2014

[PATCHv3] batctl: tcpdump - parse TVLV containers

From: Antonio Quartulli <antonio@...>

OGMs and unicast TVLV packets carry TVLV containers as
payload.
With this patch such containers are now parsed and the
relevant information is printed to screen.

Moreover, the parts of code that have been touched by this
patch have also been re-arranged a bit from the style point
of view.

Signed-off-by: Antonio Quartulli <antonio@...>
---

changes since v2:
- extended doc in README and manpage

changes since v1:
- remove all the style changes
- make tvlv_len of type ssize_t in dump_batman_iv_ogm()

 README       |   1 +
 main.h       |   7 +++
 man/batctl.8 |   3 ++
 tcpdump.c    | 170 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
 tcpdump.h    |   1 +
 5 files changed, 177 insertions(+), 5 deletions(-)

diff --git a/README b/README
index b5fd259..f87c551 100644
(Continue reading)

Simon Wunderlich | 19 Aug 15:42 2014
Picon

[PATCH] batman-adv: add detection for complex bridge loops

From: Simon Wunderlich <simon@...>

There are network setups where the current bridge loop avoidance can't
detect bridge loops. The minimal setup affected would consist of two
LANs and two separate meshes, connected in a ring like that:

   A...(mesh1)...B
   |             |
 (LAN1)        (LAN2)
   |             |
   C...(mesh2)...D

Since both the meshes and backbones are separate, the bridge loop
avoidance has not enough information to detect and avoid the loop
in this case. Even if these scenarios can't be fixed easily,
these kind of loops can be detected.

This patch implements a periodic check (running every 60 seconds for
now) which sends a broadcast frame with a random MAC address on
each backbone VLAN. If a broadcast frame with the same MAC address
is received shortly after on the mesh, we know that there must be a
loop and report that incident as well as throw an uevent to let others
handle that problem.

Signed-off-by: Simon Wunderlich <simon@...>
---
 bridge_loop_avoidance.c | 138 ++++++++++++++++++++++++++++++++++++++++++++++++
 main.h                  |   4 ++
 packet.h                |   1 +
 sysfs.c                 |   6 ++-
(Continue reading)

Sven Eckelmann | 15 Aug 13:38 2014

[PATCH] list: fix order of arguments for hlist_add_after(_rcu)

From: Ken Helias <kenhelias@...>

All other add functions for lists have the new item as first argument
and the position where it is added as second argument.  This was changed
for no good reason in this function and makes using it unnecessary
confusing.

The name was changed to hlist_add_behind() to cause unconverted code to
generate a compile error instead of using the wrong parameter order.

[akpm@...: coding-style fixes]
Signed-off-by: Ken Helias <kenhelias@...>
Cc: "Paul E. McKenney" <paulmck@...>
Acked-by: Jeff Kirsher <jeffrey.t.kirsher@...>	[intel
driver bits]
Cc: Hugh Dickins <hughd@...>
Cc: Christoph Hellwig <hch@...>
Signed-off-by: Andrew Morton <akpm@...>
Signed-off-by: Linus Torvalds <torvalds@...>
[sven@...: fix parameter order, add compat code]
Signed-off-by: Sven Eckelmann <sven@...>
---
The patch to fix the order of arguments was already submitted to davem via
http://article.gmane.org/gmane.linux.network/326598

 compat.h        | 6 ++++++
 fragmentation.c | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/compat.h b/compat.h
(Continue reading)

Linus Lüssing | 15 Aug 05:29 2014
Picon

[PATCHv8 0/3] Multicast optimizations for bridges

This patchset enables the usage of the batman-adv multicast optimizations
for scenarios involving bridges on top of e.g. bat0, too.

Along come two more patches adding according debugging facilities
to make it possible for the user to check why the multicast
optimizations might not work ideally to give hints about
what they might change about their topology.

Cheers, Linus

Changes in v8 (thanks to Simon's suggestions):
- PATCH 2/3:
* print shadowing status log of an appearing and shadowing querier, too
  (the bridge-querier-existence call has an additional 10s delay
   to ensure reports had their time to arrive -
   the bridge-querier-port call doesn't have that)
- PATCH 3/3:
* changing debugfs output from "+" and "-" to "U/4/6" and "."
* fixing "no querier present" logic (introduced in [PATCHv7 3/3])

Changes in v7 (thanks to Simon's suggestions):
- PATCH 2/3:
* renaming old/new_querier to old/new_state
* slightly extended kerneldoc of batadv_mcast_querier_log()
* removing words "good" and "bad" from debug output
* simplified batadv_mcast_flags_log()
* assignment instead of memset in batadv_mcast_mla_tvlv_update()
  and batadv_softif_init_late()
* simple struct member assignments instead of one complex struct
  assigment
(Continue reading)

liu | 14 Aug 08:55 2014

how to compile the latest version of batctl in OpenWrt 12.09

Hello, I try to test the latest version of batman-adv in OpenWrt 12.09. 
I failed to compile 'batctl' because of the old version of 'libnl' in 
OpenWrt.The version '2014.3' and the development version of 'batctl' 
require 'libnl-3.0', but OpenWrt 12.09 only contain the 'libnl-2.0.1'. 
That's the problem. How to fix this? Anyone have built it in OpenWrt 
12.09 yet?

Thanks.

Best regards

liu

Simon Wunderlich | 13 Aug 14:26 2014
Picon

[PATCH] batman-adv: fix and simplify condition when bonding should be used

The current condition actually does NOT consider bonding when the
interface the packet came in from is the soft interface, which is the
opposite of what it should do (and the comment describes). Fix that and
slightly simplify the condition.

Reported-by: Ray Gibson <booray@...>
Signed-off-by: Simon Wunderlich <sw@...>
---
 routing.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/routing.c b/routing.c
index 35f76f2..6648f32 100644
--- a/routing.c
+++ b/routing.c
 <at>  <at>  -443,11 +443,13  <at>  <at>  batadv_find_router(struct batadv_priv *bat_priv,

 	router = batadv_orig_router_get(orig_node, recv_if);

+	if (!router)
+		return router;
+
 	/* only consider bonding for recv_if == BATADV_IF_DEFAULT (first hop)
 	 * and if activated.
 	 */
-	if (recv_if == BATADV_IF_DEFAULT || !atomic_read(&bat_priv->bonding) ||
-	    !router)
+	if (!(recv_if == BATADV_IF_DEFAULT && atomic_read(&bat_priv->bonding)))
 		return router;

(Continue reading)

Simon Wunderlich | 13 Aug 14:26 2014
Picon

[RFC] batman-adv: experimental sysfs variable to always apply half duplex penalty

The half duplex interface penalty is currently only applied for wifi
interfaces. While this is intended, the bonding feature relies on
different next hop routers to be chosen for different interface tables,
which does not necessarily happen for Ethernet or virtual machine
networks when all links considered equally perfect and are not penalized.

This patch adds an option to always apply the half duplex interface
penalty, regardless of whether its an wifi interface or not. Then, the
Ethernet interfaces are also penalized and the bonding has enough
candidates to choose from.

I'm not yet sure if its a good idea to add that option, and it should
probably go into debugfs anyway, but adding it in sysfs for now was the
easiest option. :) In any way, I'd like to hear about your opinion
and/or test results!

Thanks,
    Simon

Reported-by: Ray Gibson <booray@...>
Signed-off-by: Simon Wunderlich <sw@...>
---
 bat_iv_ogm.c | 3 ++-
 sysfs.c      | 3 +++
 types.h      | 2 ++
 3 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/bat_iv_ogm.c b/bat_iv_ogm.c
index 73209f3..46ac297 100644
--- a/bat_iv_ogm.c
(Continue reading)


Gmane