b.a.t.m.a.n.lists.open-mesh.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Lunn <andrew@lunn.ch>
To: "B.A.T.M.A.N" <b.a.t.m.a.n@lists.open-mesh.net>
Subject: [B.A.T.M.A.N.] [PATCH 0/2] batctl: Netlink support
Date: Thu, 28 Apr 2016 22:54:55 +0200	[thread overview]
Message-ID: <1461876897-12677-1-git-send-email-andrew@lunn.ch> (raw)

Extend batctl to use the netlink socket where available.  If it is not
available, fall back to debugfs.

No attempt has been made to keep the netlink output compatible with
the debugfs output. Anything why tries the parse the output is
probably broken.

BLA has not been tested, so is also probably broken.

Andrew Lunn (2):
  batctl: Document a network namespaces example.
  batctl: Use netlink when available, rather than debugfs

 Makefile    |  20 +-
 README      |  58 +++++
 debug.c     |  19 +-
 debug.h     |   4 +-
 functions.c |  11 +
 functions.h |   1 +
 main.h      |   1 +
 netlink.c   | 810 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 8 files changed, 920 insertions(+), 4 deletions(-)
 create mode 100644 netlink.c

-- 
2.8.0.rc3


             reply	other threads:[~2016-04-28 20:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-28 20:54 Andrew Lunn [this message]
2016-04-28 20:54 ` [B.A.T.M.A.N.] [PATCH 1/2] batctl: Document a network namespaces example Andrew Lunn
2016-04-28 20:54 ` [B.A.T.M.A.N.] [PATCH 2/2] batctl: Use netlink when available, rather than debugfs Andrew Lunn
2016-04-29  5:55   ` Sven Eckelmann
2016-04-29  6:12   ` Sven Eckelmann
2016-04-29 12:27     ` Andrew Lunn
2016-04-29 12:30       ` Sven Eckelmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1461876897-12677-1-git-send-email-andrew@lunn.ch \
    --to=andrew@lunn.ch \
    --cc=b.a.t.m.a.n@lists.open-mesh.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).