public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] [PATCH 0/4] batctl: Userspace batadv_icmp endpoints
@ 2016-07-19 20:43 Sven Eckelmann
  2016-07-19 20:44 ` [B.A.T.M.A.N.] [PATCH 1/4] batctl: Replace list implementation with linux-like-list Sven Eckelmann
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Sven Eckelmann @ 2016-07-19 20:43 UTC (permalink / raw)
  To: b.a.t.m.a.n

[-- Attachment #1: Type: text/plain, Size: 1806 bytes --]

Hi,

The current endpoint for batadv_icmp* is implemented in the kernel module and 
can be accessed via debugfs. But the debugfs cannot be accessed from non-
default netns or when debugfs is disabled. Thus it has be possible to use it 
via the netlink infrastructure to make it compatible with future
setups.

The use of the socket file is completely removed and instead raw sockets with 
BPF filters are used to send/receive batadv_icmp_packet* directly. All 
information about interfaces and available originators are received via
rtnetlink and the batman-adv netlink.

The originators debugfs file is used when the batman-adv netlink commands are 
not available. The routing of batadv_icmp_packets is still done inside the 
kernel module.

The patchset is based on the netlink and rtnl patchset for batctl.

Kind regards,
	Sven

Sven Eckelmann (4):
  batctl: Replace list implementation with linux-like-list
  batctl: Use monotonic time source for icmp timing
  batctl: Add helper to generate instant random bytes
  batctl: Implement non-routing batadv_icmp in userspace

 Makefile      |   4 +-
 bisect_iv.c   |  40 ++-
 bisect_iv.h   |  10 +-
 functions.c   |  82 +++++-
 functions.h   |   2 +
 icmp_helper.c | 633 ++++++++++++++++++++++++++++++++++++++++++++
 icmp_helper.h |  58 ++++
 list-batman.c | 123 ---------
 list-batman.h | 120 ---------
 list.h        | 834 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 netlink.c     | 178 ++++++++++++-
 netlink.h     |   3 +
 ping.c        |  42 +--
 tcpdump.c     |   7 +-
 tcpdump.h     |   2 +-
 traceroute.c  |  42 +--
 16 files changed, 1832 insertions(+), 348 deletions(-)
 create mode 100644 icmp_helper.c
 create mode 100644 icmp_helper.h
 delete mode 100644 list-batman.c
 delete mode 100644 list-batman.h
 create mode 100644 list.h

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-10-18 12:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-19 20:43 [B.A.T.M.A.N.] [PATCH 0/4] batctl: Userspace batadv_icmp endpoints Sven Eckelmann
2016-07-19 20:44 ` [B.A.T.M.A.N.] [PATCH 1/4] batctl: Replace list implementation with linux-like-list Sven Eckelmann
2016-10-18 12:24   ` [B.A.T.M.A.N.] [1/4] " Sven Eckelmann
2016-07-19 20:44 ` [B.A.T.M.A.N.] [PATCH 2/4] batctl: Use monotonic time source for icmp timing Sven Eckelmann
2016-10-18 12:25   ` [B.A.T.M.A.N.] [2/4] " Sven Eckelmann
2016-07-19 20:44 ` [B.A.T.M.A.N.] [PATCH 3/4] batctl: Add helper to generate instant random bytes Sven Eckelmann
2016-07-19 20:44 ` [B.A.T.M.A.N.] [PATCH 4/4] batctl: Implement non-routing batadv_icmp in userspace Sven Eckelmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox