But how do we determine the algorithm version? For the moment it can simply be hard coded. But for version 5? Will the over-alfred format change? Will we have a "struct vis_v2" and VIS_PACKETVERSION_2 for algorithm 5?
Good question. Maybe we don't really need to export the algorithm version?
In the end this information can be retrieved on the _same_ node where alfred (& vis) is running by reading the "routing_algo" (sysfs-)file.
No, that does not work. You can run alfred on a machine without BATMAN. alfred --help says:
server mode options: -i, --interface specify the interface to listen on -b specify the batman-adv interface configured on the system (default: bat0) use 'none' to disable the batman-adv based best server selection
I'm using this "-i eth0 -b none" since my network topology has the logger on a machine which is bridged into the mesh.
What about the source version? How did you get it from the module?
It is the alfred version, not the kernel module version.
Andrew