[Olsr-users] Route Entry

Bernd Petrovitsch (spam-protected)
Thu Dec 6 16:53:51 CET 2007

On Don, 2007-12-06 at 15:18 +0000, Ben McCarthy wrote:
> Hi all,
> If I do an ip –route get on an IPv6 route installed by olsrd, I get
> the following output:
> (spam-protected):/home/host1# ip -6 route get 2001:db4::1111
> 2001:db4::1111 from :: via 2001:db4::1111 dev eth2  src 2001:db3::1111
> metric 0 
>     cache  mtu 1500 advmss 1440 hoplimit 4294967295
> I am trying to identify where in the current code (Linux) the “src”
>  portion of this route is added to the routing table. When I run
> another service in conjunction with olsrd I have noticed that it is
> altering this src address field and subsequently the link breaks. So
> I’m trying to determine whether this alteration of the src field is
> the cause.
> Any pointers would be much appreciated.

The function, which actually pushes the route into the kernel,
"olsr_ioctl_add_route6" is in src/linux/net.c.
That is called by olsr_add_kernel_route() in src/process_routes.c.
That is called by olsr_add_kernel_routes() in src/process_routes.c.
That is called at the end of olsr_update_kernel_routes().

And there Hannes must continue;-)

Firmix Software GmbH                   http://www.firmix.at/
mobil: +43 664 4416156                 fax: +43 1 7890849-55
          Embedded Linux Development and Services

More information about the Olsr-users mailing list