[Olsr-dev] advanced policy routing patch

Sven-Ola Tuecke (spam-protected)
Thu Dec 27 13:26:08 CET 2007

Hi otti,

your patch will not apply (at least, you diffed' a .gz by accident). This 
patch is against kamikaze-cvs? That may be rather old anyhow. You may retry 
it against olsrd-cvs.

And I don't get it - in what scenario an extra policy defroute will help 
here? a) user wants inet from the mesh or b) user supplies inet to the mesh 
or c) user confused by polrouting and fiddles with different default routes 
too much? Did you notice the following passage in src/linux/kernel_routes.c?

 if (0 == rt->rt_dst.prefix_len && 253 > olsr_cnf->rttable)
   * Users start whining about not having internet with policy
   * routing activated and no static default route in table 254.
   * We maintain a fallback defroute in the default=253 table.
  olsr_netlink_route(rt, AF_INET, 253, RTM_NEWROUTE);
 return olsr_netlink_route(rt, AF_INET, olsr_cnf->rttable, RTM_NEWROUTE);

// Sven-Ola

"otti" <(spam-protected)> schrieb im Newsbeitrag 
> Hi!
> I wrote a patch, that allows to keep the default route in an extra
> routing table. This makes policy routing much easier. I also included
> policy routing in the man page and added an extra option to turn off the
> duplicated ipv4 default route when policy routing is active.
> would you please include this patch into your sources.
> By testing the code I also found a few bugs:
> * olsrd crashes when accessing httpinfo over network
> * when i use 2 interfaces (wl0 und tap1) and tap1 isn't there when olsrd
> starts, it first works fine (all routes via wl0), but when tap1 comes up
> all routes go via tap1. Restarting olsrd fixes this (routes via wl0 and
> tap1)
> * routes are randomly missing, when i restart olsrd new route appaer and
> other vanish, but the routingtable is always shorter than with an older
> version ( -D "2007-12-3 09:07:00" )
> this was testet with cvs checkout from yesterday on kamikaze 7.09 / brcm
> 2.4
> regards
> otti


> -- 
> Olsr-dev mailing list
> (spam-protected)
> http://lists.olsr.org/mailman/listinfo/olsr-dev 

More information about the Olsr-dev mailing list