Hi,
I have made a new version of the patch posted by acinonyx (rv502), for interfacing batmand with the zebra routing daemon. There are 2 versions available: One for the latest svn (rv1060) and one for the stable 0.3 release. Take a look at:
it looks good - thanks for your work. I would like to put your changes on open-mesh.net. Either linking to your webspace or copying your work on our server. What do you prefer ?
What the patch does is:
- Adds a flag "-z" to the batmand executable which may be used to enable zebra communication and accepts as an argument the path to the corresponding zebra unix-domain socket.
- If zebra is enabled:
- No rules are added to the kernel.
- All UNICAST routes are sent to zebra.
Did you consider using the "--policy-routing-script" for this communication with zebra ? You could write an external program that gets the information from batman and relays them to zebra. Therefore, you would not need to patch every batman installation and would not have to change your patches every time when batman changes. By using this facility you can decide what routes are sent to zebra, what routes are added to the routing table and you don't need to worry about batman. This communication interface could also be used by other routing protocols without the need of reinventing the wheel over and over again.
Greetings, Marek