Re: [B.A.T.M.A.N.] [PATCHv3] batctl: Use netlink to replace some of debugfs

2016-05-04 Thread Sven Eckelmann
On Tuesday 03 May 2016 20:24:42 Andrew Lunn wrote: [...] > Where is netlink.h missing? The file is missing. Not the include. The includes fail because the file is not part of the patch. Kind regards, Sven signature.asc Description: This is a digitally signed message part.

Re: [B.A.T.M.A.N.] [PATCHv3] batctl: Use netlink to replace some of debugfs

2016-05-03 Thread Andrew Lunn
Hi Sven > diff --git a/debug.c b/debug.c > index 3db3ed9..c61970e 100644 > --- a/debug.c > +++ b/debug.c > @@ -23,10 +23,12 @@ > #include > #include > #include > +#include > > #include "debug.h" > #include "debugfs.h" > #include "functions.h" > +#include "netlink.h" > #include "sys.h"

Re: [B.A.T.M.A.N.] [PATCHv3] batctl: Use netlink to replace some of debugfs

2016-05-03 Thread Sven Eckelmann
On Tuesday 03 May 2016 18:30:26 Andrew Lunn wrote: [...] > --- > Makefile | 13 +- > batman_adv.h | 111 +++ > debug.c | 19 +- > debug.h |4 +- > functions.c | 11 + > functions.h |2 + > main.h |1 + > netlink.c| 1024 > +++

[B.A.T.M.A.N.] [PATCHv3] batctl: Use netlink to replace some of debugfs

2016-05-03 Thread Andrew Lunn
The kernel has gained support for exporting some information via netlink. Use this when available, rather than debugfs. If netlink is not available, or the information is not yet available via netlink, batctl will fall back to debugfs. Signed-off-by: Andrew Lunn --- v2: Verify mandatory attribu