I'm having some trouble with the vis-output in batman-adv 0.2 beta - compatibility-version 7. It seems like the 'From' part gets substituted with the mac address of a node's primary interface, while the 'to' part does not. The result is, that when I try to convert the dot-files to png/svg/etc. with neato from the graphviz toolchain, I get two seperate graphs.
Of course, the easiest way might be to substitue the 'to' part with the mac addresses of the primary interfaces as well, but I'd prefer something differently: http://www.graphviz.org/Gallery/directed/cluster.html Those subgraph things from the dot-file-format would be a great way, to have a more detailed image of how two batman-nodes are connected, over which interfaces they're connected with each other.
I had a little look at the batman-adv source code and noticed that the structure vis_info_entry in vis.h does only have a dest and not a src entry. So the vis-server only gets to know, the node's primary mac address but a primary or secondary mac in dest so far, right?
I'm also still trying to figure out, where such a src information could come from... dest gets that stuff from orig_node->orig and there is a list of interfaces in orig_node->batman_if and also a neighbour list in orig_nodes->router. What would have to be used for the src address?
I'm also wondering, what those hashing functions are for exactly. Would I break some of that stuff by introducing a src address in the vis-packet?
I'm not that much into reading the batman-adv source code yet, but I'd like to get a little more familiar with it. So please be considerate :).
PS: I'm having a router with vlans here, so two seperate LAN-ports, which batman is using, are having the same mac-address. Could that cause any trouble?