[Olsr-users] Extracting ETX of kernel route

Dan O'Keeffe (spam-protected)
Thu Mar 12 19:59:32 CET 2015


Hello,
I'd like to know what the easiest way is to extract the current ETX for 
all routes in my kernel routing tables created by olsrd.
I was hoping that olsrd would just set the metric field of the linux 
'route' or 'ip route' command to the current ETX, but that appears to be 
fixed
at 2 for all routes (I've included the output of the 'route' command 
below'. Is there any other way to get the ETX using standard linux 
routing commands? If not, does olsr provide anyway
to query information about the current state of its routing tables? If 
not would it be possible to somehow parse the debug
output of the routing daemon?
Thanks a lot for any help,
Dan

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref Use Iface
n2              n2              255.255.255.255 UGH   2 0        0 eth0
n3              n3              255.255.255.255 UGH   2 0        0 eth0
n5              n5              255.255.255.255 UGH   2 0        0 eth0
n6              n6              255.255.255.255 UGH   2 0        0 eth0
n7              n7              255.255.255.255 UGH   2 0        0 eth0
n8              n8              255.255.255.255 UGH   2 0        0 eth0
n9              n9              255.255.255.255 UGH   2 0        0 eth0
n10             n10             255.255.255.255 UGH   2 0        0 eth0
n11             n11             255.255.255.255 UGH   2 0        0 eth




More information about the Olsr-users mailing list