[Olsr-dev] olsrv2 routes with same source IP regardless of outgoing interface

Vigneswaran R (spam-protected)
Wed Jun 25 12:35:43 CEST 2014


I observed that the routes added by OLSRv2 are having the originator IP 
address as the source IP, regardless of the outgoing interface. (With 
olsrv1, the IP on the outgoing Interface is used as the SRC IP). Sample 
OLSRv2 routes, via dev eth0  proto 100  src  metric 2 onlink via dev eth1  proto 100  src  metric 2 onlink via dev eth2  proto 100  src  metric 2 onlink

The following lines (src/olsrv2/olsrv2_routing.c) seem to confirm that 
as the expected behaviour. Is that correct?

     if (_domain_parameter[rtentry->domain->index].use_srcip_in_routes
         && netaddr_get_address_family(&rtentry->route.dst) == AF_INET) {
       memcpy(&rtentry->route.src, olsrv2_originator_get(AF_INET),


More information about the Olsr-dev mailing list