The current translation table mechanism is not suitable for multicast
addresses and we are currently flooding such frames anyway.
Therefore this patch prevents multicast MAC addresses being added to the
translation table.
Signed-off-by: Linus Lüssing linus.luess...@web.de
---
soft-interface.c |
On Wednesday 17 October 2012 13:38:30 Linus Lüssing wrote:
So far the crc16 checksum for a batman-adv broadcast data packet, received
on a batman-adv hard interface, was calculated over zero bytes of its
content leading to many incoming broadcast data packets wrongly being
dropped.
This
On Wed, Oct 17, 2012 at 03:07:35PM +0200, Linus Lüssing wrote:
The current translation table mechanism is not suitable for multicast
addresses and we are currently flooding such frames anyway.
Therefore this patch prevents multicast MAC addresses being added to the
translation table.
On Wednesday 17 October 2012 13:38:30 Linus Lüssing wrote:
So far the crc16 checksum for a batman-adv broadcast data packet, received
on a batman-adv hard interface, was calculated over zero bytes of its
content leading to many incoming broadcast data packets wrongly being
dropped.
This
On Wednesday 17 October 2012 15:50:50 Sven Eckelmann wrote:
On Wednesday 17 October 2012 13:38:30 Linus Lüssing wrote:
So far the crc16 checksum for a batman-adv broadcast data packet, received
on a batman-adv hard interface, was calculated over zero bytes of its
content leading to many
Looks good, although I don't think this will happen very often - it
is only called when receiving packets, and AFAIK there can only be
multiple threads when using multiple interfaces.
Anyway, doing the spinlock shouldn't hurt and might save us some pain
when this function is used more often, or
Good catch! When can I buy you the beer? :D
Acked-by: Simon Wunderlich s...@hrz.tu-chemnitz.de
On Wed, Oct 17, 2012 at 02:53:04PM +0200, Linus Lüssing wrote:
So far the crc16 checksum for a batman-adv broadcast data packet, received
on a batman-adv hard interface, was calculated over zero
Signed-off-by: Sven Eckelmann s...@narfation.org
---
main.c | 34 ++
main.h |1 +
2 files changed, 35 insertions(+)
diff --git a/main.c b/main.c
index 70797de..122c675 100644
--- a/main.c
+++ b/main.c
@@ -33,6 +33,7 @@
#include vis.h
#include hash.h
On 2012-10-17 17:59, Sven Eckelmann wrote:
+__be32 batadv_crc32(const struct sk_buff *skb, u8 *payload_ptr)
+{
+ u32 crc = 0;
+ struct sk_buff *iter;
+ size_t skip_len, read_len;
+ const skb_frag_t *f;
+ int i;
+
+ skip_len = payload_ptr - skb-data;
+
Signed-off-by: Sven Eckelmann s...@narfation.org
---
v2:
- Added compat code for kernel like 2.6.39
- Use kmap_atomic to get the page
compat.h | 20
main.c | 38 ++
main.h |1 +
3 files changed, 59 insertions(+)
diff --git
On Wednesday, October 17, 2012 22:17:33 Simon Wunderlich wrote:
Good catch! When can I buy you the beer? :D
Acked-by: Simon Wunderlich s...@hrz.tu-chemnitz.de
Applied in revision 2cebfac.
Thanks,
Marek
On Wednesday, October 17, 2012 22:17:05 Simon Wunderlich wrote:
Looks good, although I don't think this will happen very often - it
is only called when receiving packets, and AFAIK there can only be
multiple threads when using multiple interfaces.
Anyway, doing the spinlock shouldn't hurt
Gesendet: Mittwoch, 17. Oktober 2012 um 15:36 Uhr
Von: Antonio Quartulli or...@autistici.org
An: The list for a Better Approach To Mobile Ad-hoc Networking
b.a.t.m.a.n@lists.open-mesh.org
Betreff: Re: [B.A.T.M.A.N.] [PATCH] batman-adv: Do not add multicast MAC
addresses to translation
On Wed, Oct 17, 2012 at 08:43:05PM +0200, Linus Lüssing wrote:
Gesendet: Mittwoch, 17. Oktober 2012 um 15:36 Uhr
Von: Antonio Quartulli or...@autistici.org
An: The list for a Better Approach To Mobile Ad-hoc Networking
b.a.t.m.a.n@lists.open-mesh.org
Betreff: Re: [B.A.T.M.A.N.]
Signed-off-by: Sven Eckelmann s...@narfation.org
---
v3: Now with support for kernels till 2.6.29
compat.h | 34 ++
main.c | 38 ++
main.h |1 +
3 files changed, 73 insertions(+)
diff --git a/compat.h b/compat.h
Hi all,
Is there an obvious choice for web-based visualisation of batman-adv
networks? We currently use a custom product (SPUD -
http://dev.villagetelco.org/trac/browser/spud/trunk/INSTALL) built
specifically for Village Telco but would prefer to join our efforts to
a broader community-based
On Wed, Oct 17, 2012 at 04:44:51PM -0300, Steve Song wrote:
Hi all,
Is there an obvious choice for web-based visualisation of batman-adv
networks? We currently use a custom product (SPUD -
http://dev.villagetelco.org/trac/browser/spud/trunk/INSTALL) built
specifically for Village Telco but
Signed-off-by: Sven Eckelmann s...@narfation.org
---
main.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/main.c b/main.c
index 0315fe3..96e401a 100644
--- a/main.c
+++ b/main.c
@@ -78,7 +78,7 @@ struct globals *alfred_init(int argc, char *argv[])
Signed-off-by: Sven Eckelmann s...@narfation.org
---
main.c |4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/main.c b/main.c
index 96e401a..ccb72cd 100644
--- a/main.c
+++ b/main.c
@@ -67,11 +67,11 @@ struct globals *alfred_init(int argc, char *argv[])
};
Signed-off-by: Sven Eckelmann s...@narfation.org
---
recv.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/recv.c b/recv.c
index dce7e50..8ddf7ab 100644
--- a/recv.c
+++ b/recv.c
@@ -217,7 +217,7 @@ int send_alfred_packet(struct globals *globals, uint8_t
*dest, void *buf,
On Thursday, October 18, 2012 03:10:39 Sven Eckelmann wrote:
Signed-off-by: Sven Eckelmann s...@narfation.org
---
v3: Now with support for kernels till 2.6.29
compat.h | 34 ++
main.c | 38 ++
main.h |1 +
3
If the skb is fragmented, the checksum must be computed on the
individual fragments, just using skb-data may fail on fragmented
data. Instead of doing linearizing the packet, use the new
batadv_crc32 to do that more efficiently- it should not hurt
replacing the old crc16 by the new crc32.
Applied in revision 3c2de69.
Thanks,
Simon
On Wed, Oct 17, 2012 at 09:55:56PM +0200, Sven Eckelmann wrote:
Signed-off-by: Sven Eckelmann s...@narfation.org
---
main.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/main.c b/main.c
index 0315fe3..96e401a
23 matches
Mail list logo