[Olsr-dev] olsrv2 routes with same source IP regardless of outgoing interface
Vigneswaran R
(spam-protected)
Wed Jun 25 12:35:43 CEST 2014
Hello,
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,
10.1.2.1 via 10.1.2.1 dev eth0 proto 100 src 10.1.1.1 metric 2 onlink
10.1.4.1 via 10.1.4.1 dev eth1 proto 100 src 10.1.1.1 metric 2 onlink
10.1.5.1 via 10.1.5.1 dev eth2 proto 100 src 10.1.1.1 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),
sizeof(rtentry->route.src));
}
Regards,
Vignesh
More information about the Olsr-dev
mailing list