On Donnerstag, 25. Oktober 2018 18:22:03 CET Sven Eckelmann wrote:
the batctl command already has support to get (previously debugfs) tables via netlink. It does this while still being able to fall back to the old debugfs tables on kernels which don't support the new generic netlink family.
Something similar should be done in the future for the settings which are currently part of sysfs. But we can already see that the current integration of netlink in batctl only done in a single file - netlink.c But this file is already starting to be so big that working with it is rather cumbersome.
So as first steps:
- restructure command registration
- move commands in separate files (which should store their actual implementation)
- add a new helper command to receive multicast group messages from the kernel
Added as 0a201c2..2f5dbd0 [1]
Kind regards, Sven
[1] https://git.open-mesh.org/batctl.git/log/2f5dbd056b8be344b5492835b0924f6cf46...