On Tue, 2018-10-23 at 16:16 +0200, Sven Eckelmann wrote:
On Dienstag, 23. Oktober 2018 14:11:41 CEST Jonathan Haws wrote: [...]
https://git.open-mesh.org/batctl.git/blob/83faa3126d6cc984fff10760aa975bacec...
and
https://git.open-mesh.org/batctl.git/blob/83faa3126d6cc984fff10760aa975bacec...
Are these new routines? I may have been looking at old code and don't remember seeing these there. I'm seeing that these will do what we need
- perform a request on the network if the entry is not in the
cache?
These routines are not in alfred yet - they are in batctl. And we use them there for the translate subcommand (translate an IP to the responsible originator).
And yes, they check whether the entry is available and if not then they will try to send something towards the remote device. They only have to be adjusted for alfred and integrated in your IPv4 codepath(s).
Sven and Gary,
I just submitted a patch that pulls the request_mac_resolve() routine from batctl, modifies it appropriately, and uses it when MAC resolution isn't from the cache.
I've tested this with my VM setup here and it works properly (after I verified that the nodes were not sharing messages first).
Gary - can you try the patch with your setup and make sure it solves the problem in your setup as well?
And Sven, thanks for pointing out those routines - this approach makes much more sense!
Thanks! Jon