On Fri, Mar 18, 2016 at 01:04:50PM +0100, Sven Eckelmann wrote:
On Friday 18 March 2016 13:00:54 Matthias Schiffer wrote: [...]
What about the "socket" file?
[...]
Ah, I forgot about that one because it is very different from the others.
I think it should be possible to convert "socket" as well by wrapping the BATADV_ICMP packets in netlink packets. Or maybe it would be possible to drop that altogether and just do ping/traceroute in userspace with AF_PACKET or similar?
The latter could be problematic for TP meter implementation [1,2,3,4,5]. Antonio, do you have an opinion about that?
Personally I wouldn't mind doing ping/traceroute 100% in userspace.
The TP meter itself does not require to exchange real packets between user and kernel space, but only requires the availability of a command to start and stop a measurement session. I believe these could be implemented as yet another netlink command/message type.
Cheers,