On Wednesday 12 March 2014 17:04:47 Simon Wunderlich wrote:
From: Simon Wunderlich simon@open-mesh.com
Check if the interface supplied by -m (or bat0 by default) is actually a batman interface. The check is performed by testing if the sysfs path is available.
This change is required since debugfs now contains originator tables per hard interface. This might be confusing for users as batctl -m eth0 o will now (accidently) print these tables without eth0 beeing a batman interface, assuming eth0 is a hard interface used by batman-adv.
Some reordering of commands were required to first allow commands which don't depend on a (correctly set up) mesh interface, like bisect or interface.
Signed-off-by: Simon Wunderlich simon@open-mesh.com
Changes to PATCHv2:
- fix VLAN check, this is now similar to the sysfs handling code
main.c | 32 +++++++++++++++++--------------- sys.c | 30 ++++++++++++++++++++++++++++++ sys.h | 1 + 3 files changed, 48 insertions(+), 15 deletions(-)
Applied in revision da65d62.
Thanks, Marek