Re: [B.A.T.M.A.N.] [PATCH 5/7] batctl: Allow to disable automatic interface new/destroy

2016-09-20 Thread Sven Eckelmann
On Dienstag, 20. September 2016 16:29:02 CEST Linus Lüssing wrote: [...] > > This can be done by avoiding automatic creation of an interface when the > > command "add" is used together with the option "-M". The add would fail > > when the soft-interface disappeared for some reason and thus the > >

Re: [B.A.T.M.A.N.] [PATCH 2/7] batctl: Add command to create/destroy batman-adv interface

2016-09-20 Thread Sven Eckelmann
On Dienstag, 20. September 2016 16:24:18 CEST Linus Lüssing wrote: > On Wed, Jul 13, 2016 at 05:30:17PM +0200, Sven Eckelmann wrote: > > The command "new" can be used to create a batman-adv interface without any > > interface attached. This is helpful when the interfaces should be > > configured

Re: [B.A.T.M.A.N.] [PATCH] batman-adv: Allow selecting BATMAN V if CFG80211 is not built

2016-09-20 Thread Sven Eckelmann
On Dienstag, 20. September 2016 15:59:17 CEST Linus Lüssing wrote: > With the new stub for cfg80211_get_station(), we can now build the > BATMAN V protocol even with a kernel that was built without any > wireless support. > > Signed-off-by: Linus Lüssing > --- Haven't

Re: [B.A.T.M.A.N.] [PATCH 1/3] batman-adv: Store and transmit own neighborhood hash

2016-09-20 Thread Sven Eckelmann
[...] > diff --git a/net/batman-adv/Kconfig b/net/batman-adv/Kconfig > index f20742c..35e220e 100644 > --- a/net/batman-adv/Kconfig > +++ b/net/batman-adv/Kconfig > @@ -18,6 +18,7 @@ config BATMAN_ADV > config BATMAN_ADV_BATMAN_V > bool "B.A.T.M.A.N. V protocol (experimental)" >

[B.A.T.M.A.N.] [PATCH 2/3] batman-adv: Introduce packet type independent TVLV handler API

2016-09-20 Thread Linus Lüssing
Instead of having one TVLV registration function for OGMs and one for unicast packets, this patch adds a new, generic tvlv handler registratiorn function, which simply uses a packet type as parameter. For now, this patch only migrates the multicast and gateway tvlv handlers to this new API, as

[B.A.T.M.A.N.] [PATCH 3/3] batman-adv: Evaluate and use neighborhood hash TVLV

2016-09-20 Thread Linus Lüssing
This patch aims to reduce protocol overhead for BATMAN V by avoiding rebroadcasts of OGM2 and broadcast packets in neighborhoods where every neighbor "sees" another. This is done by parsing and storing the new information provided by the ELP specific neighborhood hash TVLV. We then use this new

Re: [B.A.T.M.A.N.] Broadcast Avoidances, Neighborhood Hash

2016-09-20 Thread Linus Lüssing
On Tue, Sep 20, 2016 at 02:12:42PM +0200, Linus Lüssing wrote: > Hi, > > Here's the second broadcast avoidance patchset (rebased on the former one). > > Hopefully, those two patchsets together should be an automatic > approach and replacement for the (non-upstream) no-rebroadcast flag > patch

[B.A.T.M.A.N.] [PATCH 1/3] batman-adv: Store and transmit own neighborhood hash

2016-09-20 Thread Linus Lüssing
Adds a sha512 hash as a TVLV to an ELP packet. Hash is the "sum" of all neighbors (ordered alphabetically, concatenated, binary) a node sees on a specific interface. Furthermore, the best and worst TX metric of all these neighbors on an interface are added to the TVLV. Signed-off-by: Linus

[B.A.T.M.A.N.] Broadcast Avoidances, Neighborhood Hash

2016-09-20 Thread Linus Lüssing
Hi, Here's the second broadcast avoidance patchset (rebased on the former one). Hopefully, those two patchsets together should be an automatic approach and replacement for the (non-upstream) no-rebroadcast flag patch and the cases it is currently used for. Documentation: *

[B.A.T.M.A.N.] [PATCH] batman-adv: Allow selecting BATMAN V if CFG80211 is not built

2016-09-20 Thread Linus Lüssing
With the new stub for cfg80211_get_station(), we can now build the BATMAN V protocol even with a kernel that was built without any wireless support. Signed-off-by: Linus Lüssing --- compat-include/net/cfg80211.h | 24 net/batman-adv/Kconfig

Re: [B.A.T.M.A.N.] [PATCH 5/7] batctl: Allow to disable automatic interface new/destroy

2016-09-20 Thread Linus Lüssing
On Wed, Jul 13, 2016 at 05:30:20PM +0200, Sven Eckelmann wrote: > Users may not want to lose their configured batman-adv soft-interface when > they remove a single interface from it. The default configuration may not > working well enough in the network setup of the user and thus it should be >

Re: [B.A.T.M.A.N.] [PATCH 2/7] batctl: Add command to create/destroy batman-adv interface

2016-09-20 Thread Linus Lüssing
On Wed, Jul 13, 2016 at 05:30:17PM +0200, Sven Eckelmann wrote: > The command "new" can be used to create a batman-adv interface without any > interface attached. This is helpful when the interfaces should be > configured independently of the first attached interface. Like in the title of this