[B.A.T.M.A.N.] [RFC] batman-adv: Set special lockdep classes to avoid lockdep warning

2012-08-19 Thread Sven Eckelmann
[text will be added after I am awake... maybe] [Should be fix the problem found in bug 162... formerly known as 161. code stolen from macvlan... this is just a reimplementation of a solution proposed by Simon Wunderlich] Reported-by: Linus Lüssing linus.luess...@web.de Signed-off-by: Sven

Re: [B.A.T.M.A.N.] [RFC] batman-adv: Set special lockdep classes to avoid lockdep warning

2012-08-19 Thread Simon Wunderlich
Hey Sven, it works in my QEMU machines (and I could reproduce the bug report from 162). Acked-by: Simon Wunderlich s...@hrz.tu-chemnitz.de (provided you add some sane commit message. ;] ) Cheers, Simon On Sun, Aug 19, 2012 at 09:29:53AM +0200, Sven Eckelmann wrote: [text will be

[B.A.T.M.A.N.] [RFC] batman-adv: don't allow ECTP traffic on batman-adv

2012-08-19 Thread Simon Wunderlich
We have seen this to break networks when used with bridge loop avoidance. As we can't see any benefit from sending these ancient frames via our mesh, we just drop them. Signed-off-by: Simon Wunderlich s...@hrz.tu-chemnitz.de --- soft-interface.c | 12 ++-- 1 file changed, 10

[B.A.T.M.A.N.] editing the routing information

2012-08-19 Thread Dominic Follett-Smith
Hi all, I am using the batmand release and I trying to edit where batman keeps a statistic of next best hops to a destination node. I want to change the metric in some way to alter the choices that batman makes when routing a packet to its destination. However I am rather stuck, and would

[B.A.T.M.A.N.] [PATCHv2] batctl: Clear screen using ANSI escape codes

2012-08-19 Thread Sven Eckelmann
It is not necessary to call an external binary to clear the screen of a default unix terminal emulator. The external call using system(clear) may be used by an attacker to get untrusted code called with an higher privilege because batctl has to be run as using uid 0. Reported-by: Antonio

[B.A.T.M.A.N.] [PATCH] batman-adv: Set special lockdep classes to avoid lockdep warning

2012-08-19 Thread Sven Eckelmann
Transmissions over batman-adv devices always start another nested transmission over devices attached to the batman-adv interface. These devices usually use the ethernet lockdep class for the tx_queue lock which is also set by default for all batman-adv devices. Lockdep will detect a nested locking