actual olsrd_dyn_gw* implementation isn't working on freebsd.
It tries to read the routing table from the /proc filesystem which isn't used on freebsd by-default and,
even if mounted explicitly , it doesn't contain such special files
(in my knowledge, only linux used the /proc filesystem as interface to let drivers to interact with user-space)
On freebsd a sysctl can be used to dump-out the routing table. A working patch for olsrd_dyn_gw_plain is attached,
olsrd_dyn_gw should be ported as well but I experienced hangs when it attempts to create the 'test thread' ...
I didn't investigate further but I'll do as soon as I'll have some time.
Note that when using olsrd_dyn_gw_plain I had to filter-out default-routes coming as hna-routes from some other node
(to avoid reinjecting the same route from all the nodes in the mesh)
Cheers,
Andrea.
olsrd_dyn_gw_plain on freebsd
fixed version of olsrd_dyn_gw_plain patch for freebsd