On Tue, Apr 17, 2012 at 01:24:55 +0200, Martin Hundebøll wrote:
@@ -488,6 +492,8 @@ bool dat_snoop_outgoing_arp_reply(struct bat_priv
*bat_priv,
arp_neigh_update(bat_priv, ip_src, hw_src);
arp_neigh_update(bat_priv, ip_dst, hw_dst);
+ bat_priv-bat_stats.dat_reply_tx++;
+
On Tue, Apr 17, 2012 at 09:12:42AM +0200, Antonio Quartulli wrote:
On Tue, Apr 17, 2012 at 01:24:55 +0200, Martin Hundebøll wrote:
+static void bat_get_ethtool_stats(struct net_device *dev,
+ struct ethtool_stats *stats, u64 *data)
+{
+ struct bat_priv
From: Eric Dumazet eric.duma...@gmail.com
Use of unsigned int is preferred to bare unsigned in net tree.
Signed-off-by: Eric Dumazet eric.duma...@gmail.com
Signed-off-by: David S. Miller da...@davemloft.net
Signed-off-by: Sven Eckelmann s...@narfation.org
---
This one is already in net-next.
On Tuesday, April 17, 2012 01:24:55 Martin Hundebøll wrote:
Added additional counters in a bat_stats structure, which are exported
through the ethtool api. The counters are specific to batman-adv and
includes:
forwarded packets
management packets (OGMs at this point)
translation table
On Saturday, April 14, 2012 13:15:26 Antonio Quartulli wrote:
In the code we neever need to atomically check and set the bat_priv-tt_crc
field value. It is simply set and read once in different pieces of the
code. Therefore this field can be safely be converted from atomic_t to
uint16_t.
On Tuesday, April 17, 2012 09:45:42 Sven Eckelmann wrote:
From: Eric Dumazet eric.duma...@gmail.com
Use of unsigned int is preferred to bare unsigned in net tree.
Applied in revision 18731af.
Thanks,
Marek
Hey Puyou,
On Mon, Apr 16, 2012 at 06:35:04PM +0800, puyou.lu wrote:
Hi guys.
I’m trying to make a for nodes WMN using four devices with two wireless
cards each. I would like to use three different channels to reduce the
interference, like this:
[Node A] - channel 1 - [Node B] -
The net_device structure already has a name field therefore we don't need to
pass the name by using another parameter.
Signed-off-by: Antonio Quartulli or...@autistici.org
---
distributed-arp-table.c |4 ++--
distributed-arp-table.h |2 +-
soft-interface.c|2 +-
3 files
This patch introduces a boolean switch which enables D.A.T. (Distributed ARP
Table) to be activated/deactivated at run-time.
Signed-off-by: Antonio Quartulli or...@autistici.org
---
bat_sysfs.c |7 +
distributed-arp-table.c | 72
On Tuesday, April 17, 2012 12:24:53 Antonio Quartulli wrote:
+static void arp_change_timeout(struct net_device *soft_iface, bool
enable_dat) +{
+ struct in_device *in_dev = in_dev_get(soft_iface);
+ if (!in_dev) {
+ pr_err(Unable to set ARP parameters for the batman
On Tuesday, April 17, 2012 12:24:53 Antonio Quartulli wrote:
+static void arp_change_timeout(struct net_device *soft_iface, bool
enable_dat) +{
+ struct in_device *in_dev = in_dev_get(soft_iface);
+ if (!in_dev) {
+ pr_err(Unable to set ARP parameters for the batman
When the DAT component is not built, instead of having fake function like
foo(...) we must use a static inline function in order to allow the compiler to
check the number of the type of the passed arguments
Signed-off-by: Antonio Quartulli or...@autistici.org
---
distributed-arp-table.h | 53
On Tuesday, April 17, 2012 13:18:33 Antonio Quartulli wrote:
When the DAT component is not built, instead of having fake function like
foo(...) we must use a static inline function in order to allow the
compiler to check the number of the type of the passed arguments
Applied in revision
Hello,
here are a set of changes I would like to propose for next-next/3.5.
Most of the patches are simple cleanups and small fixes. The only important
change is patch 3 which changes the Originator Message sequence number starting
value from 0 to a random generated value.
Thank you,
From: Marek Lindner lindner_ma...@yahoo.de
Signed-off-by: Marek Lindner lindner_ma...@yahoo.de
Signed-off-by: Antonio Quartulli or...@autistici.org
---
net/batman-adv/hard-interface.c |8 +++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/net/batman-adv/hard-interface.c
From: Marek Lindner lindner_ma...@yahoo.de
Signed-off-by: Marek Lindner lindner_ma...@yahoo.de
Signed-off-by: Antonio Quartulli or...@autistici.org
---
net/batman-adv/bat_iv_ogm.c |5 +
1 file changed, 5 insertions(+)
diff --git a/net/batman-adv/bat_iv_ogm.c
From: Marek Lindner lindner_ma...@yahoo.de
Signed-off-by: Marek Lindner lindner_ma...@yahoo.de
Signed-off-by: Antonio Quartulli or...@autistici.org
---
net/batman-adv/bat_iv_ogm.c | 11 ++-
net/batman-adv/hard-interface.c | 15 ++-
net/batman-adv/types.h |
From: Marek Lindner lindner_ma...@yahoo.de
Signed-off-by: Marek Lindner lindner_ma...@yahoo.de
Signed-off-by: Antonio Quartulli or...@autistici.org
---
net/batman-adv/bat_iv_ogm.c |4 ++--
net/batman-adv/hard-interface.c |2 +-
net/batman-adv/main.c |2 +-
Instead of using sizeof(struct ethhdr) it is strongly recommended to use the
kernel macro ETH_HLEN. This patch substitute each occurrence of the former
expressione with the latter one.
Signed-off-by: Antonio Quartulli or...@autistici.org
---
net/batman-adv/bat_iv_ogm.c|7 +++
OGM sequence numbers are declared as uint32_t and so they have to printed
using %u instead of %d in order to avoid wrong representations.
Signed-off-by: Antonio Quartulli or...@autistici.org
---
net/batman-adv/bat_iv_ogm.c |8
1 file changed, 4 insertions(+), 4 deletions(-)
diff
When we receive an OGM from from a node for the first time, the last_real_seqno
field of the orig_node structure has not been initialised yet. The value of this
field is used to compute the current ogm-seqno window and therefore the
protection mechanism will probably drop the packet due to an
Hi!
What are the reasons (except for performance) of Batman being a kernel
module? Is there a way for running it in user-space? We have some
servers where we get donated bandwidth, but as people are running also
other stuff on those servers they do not really like adding kernel
modules and
On Tuesday, April 17, 2012 02:05:40 PM Mitar wrote:
Would some compatibility layer be possible to have to run Batman in
user-space? Are there any existing known?
KVM
Kind regards,
Sven
signature.asc
Description: This is a digitally signed message part.
Hi!
Is it possible to determine from central location (for example
gateway) to which node a client is currently connected to? So from
DHCP you can get MAC-IP translation, but how to get from MAC on which
node client currently is?
Mitar
The B.A.T.M.A.N. team is delighted to announce its newest release, 2012.1.0,
bringing mainly bug fixes and code cleanups. Also part of the release is a
newly developed routing algorithm framework which allows switching between
different routing algorithms. As the kernel module always depends
On Tuesday, April 17, 2012 14:15:49 Mitar wrote:
Is it possible to determine from central location (for example
gateway) to which node a client is currently connected to? So from
DHCP you can get MAC-IP translation, but how to get from MAC on which
node client currently is?
Read the
On Tue, Apr 17, 2012 at 02:15:49PM +0200, Mitar wrote:
Hi!
Is it possible to determine from central location (for example
gateway) to which node a client is currently connected to?
Hello Mitar,
if I correctly got your question, you want to know what the Global Translation
Table of each node
On Tue, Apr 17, 2012 at 02:05:40PM +0200, Mitar wrote:
Hi!
What are the reasons (except for performance) of Batman being a kernel
module? Is there a way for running it in user-space? We have some
servers where we get donated bandwidth, but as people are running also
other stuff on those
Signed-off-by: Marek Lindner lindner_ma...@yahoo.de
---
README.external |4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.external b/README.external
index 874ee7f..787172e 100644
--- a/README.external
+++ b/README.external
@@ -21,7 +21,7 @@ if you want to compile
Signed-off-by: Marek Lindner lindner_ma...@yahoo.de
---
Fixing typo in the subject!
README.external |4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.external b/README.external
index 874ee7f..787172e 100644
--- a/README.external
+++ b/README.external
@@ -21,7
Hi Antonio,
Thank you for your comments.
On 04/17/2012 09:12 AM, Antonio Quartulli wrote:
On Tue, Apr 17, 2012 at 01:24:55 +0200, Martin Hundebøll wrote:
@@ -488,6 +492,8 @@ bool dat_snoop_outgoing_arp_reply(struct bat_priv *bat_priv,
arp_neigh_update(bat_priv, ip_src, hw_src);
Hi Marek,
On 04/17/2012 10:19 AM, Marek Lindner wrote:
On Tuesday, April 17, 2012 01:24:55 Martin Hundebøll wrote:
Added additional counters in a bat_stats structure, which are exported
through the ethtool api. The counters are specific to batman-adv and
includes:
forwarded packets
On Tue, Apr 17, 2012 at 03:24:48PM +0200, Martin Hundebøll wrote:
+struct bat_stats {
+ uint64_t forward;
+ uint64_t mgmt_tx;
+ uint64_t mgmt_rx;
+ uint64_t tt_request_tx;
+ uint64_t tt_request_rx;
+ uint64_t tt_response_tx;
+ uint64_t tt_response_rx;
+ uint64_t
Hi,
I can make the module crash by deleting eth0 from bat0, while reading the log
with batctl log:
root@OpenWrt:/# batctl ll all
batman_adv: bat0: log_level: Changing from: 0 to: 31
root@OpenWrt:/# batctl log /dev/null
root@OpenWrt:/# batctl if del eth0
batman_adv: bat0: Interface
Added additional counters in a bat_stats structure, which are exported
through the ethtool api. The counters are specific to batman-adv and
includes:
forwarded packets
management packets (OGMs at this point)
translation table packets
distributed arp table packets
I would like you all to check
Hi!
Thanks for both ideas. KVM sounds great.
OK, so I have no more ideas against Batman. :-) And it got a go from
Kostko. So this looks very good. :-)
Mitar
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I have being doing some testing with several types of configurations
with custom openwrt build and batman in oder to try to come with a basic
default plug play ready to deploy firmware evolving the least
changes possible other than the router's ip
Hello everybody,
in preparation to my next patchset, which will enable clients to be detected
from nodes in the network _before_ they are announced by means of the TT
mechanism (more details will come within the companion email email of the
related patchset), I'm sending this 4 patches that
In the current implementation the OGM is built and filled at the moment it is
scheduled (1 originator interval before its sending). In this way, all the TT
changes happening between OGM(seqno=X) and OGM(seqno=X+1) will be attached to
OGM(seqno=X+2) (because when changes happened OGM(seqno=X+1) was
During an OGM-interval (time between two different OGM sendings) the same client
could roam away and then roam back to us. In this case the node would add two
events to the events list (that is going to be sent appended to the next OGM). A
DEL one and an ADD one. Obviously they will only increase
Instead of returning only 1 or 0 this function has to return the found
orig_entry (if any). In this way, operations that have to to modify the
found orig_entry structure will not need to reiterate over the list again to
find the wanted node.
Signed-off-by: Antonio Quartulli or...@autistici.org
in various scenarios it would be possible that a node receives an ADD event for
a client it already knows to belong to the advertiser. In this case the node has
to update the global entry ttvn with the one carried by the OGM.
Signed-off-by: Antonio Quartulli or...@autistici.org
---
Instead of adding a new bool argument each time it is needed, it is
better (and simpler) to pass an 8bit flag argument which contains all the
needed flags
Signed-off-by: Antonio Quartulli or...@autistici.org
---
routing.c |2 +-
translation-table.c | 18 ++
From: Antonio Quartulli or...@autistici.org
Date: Tue, 17 Apr 2012 13:58:21 +0200
@@ -30,10 +30,11 @@
#include send.h
#include bat_algo.h
-static void bat_iv_ogm_iface_enable(struct hard_iface *hard_iface)
+static int bat_iv_ogm_iface_enable(struct hard_iface *hard_iface)
{
From: Antonio Quartulli or...@autistici.org
Date: Tue, 17 Apr 2012 13:58:19 +0200
@@ -33,6 +33,11 @@
static void bat_iv_ogm_iface_enable(struct hard_iface *hard_iface)
{
struct batman_ogm_packet *batman_ogm_packet;
+ unsigned long random_seqno;
+
+ /* randomize initial
From: Antonio Quartulli or...@autistici.org
Date: Tue, 17 Apr 2012 13:58:26 +0200
OGM sequence numbers are declared as uint32_t and so they have to printed
using %u instead of %d in order to avoid wrong representations.
Signed-off-by: Antonio Quartulli or...@autistici.org
Fix this commit
46 matches
Mail list logo