hmm i think i found the bug, and added a ugly bugfix right on your testsystem<div>(in /usr/ports/net/olsrd/work/olsrd-0.6.2/) </div><div>and did an gmake & gmake install afterwards</div><div><br></div><div>infact the bug is not even really in the bsd specific code,.. #1</div>
<div>(but i added (beside many debugoutput on stderr) a fix/workaround there, until i decided how to really fix this,..)</div><div><br></div><div><div>please test if it really works now, </div></div><div><br></div><div>Markus</div>
<div><br></div><div>#1 it seems that (os_unspecific) olsr_rt_flags() function does not correctly set the GATEWAY flag,... (it comes to different conslusion if a route gets deleted as if its added *G)</div><div><br></div><div>
and as the bsd code not only passes this flag to the kernel (where a wrong flag would be bad anyways)</div><div>but also checks for this flag itself, to decide whether it includes the gateway ip to the routing socket message or not, it fails to delete the route,.. </div>
<div><br></div><div>as afair the linux specific routing code of olsrd evaluates itself if there is a gateway, and towards kernel anyways always set RTA_GATEWAY routing flag (at least since ON_LINK) </div><div>so it is not affected by this bug of the olsr_rt_flags() function,..</div>
<div><br></div><div><div class="gmail_quote">On Wed, Nov 16, 2011 at 12:10 AM, Michel Blais <span dir="ltr"><<a href="mailto:michel@targointernet.com">michel@targointernet.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Markus,<br>
<br>
I build a small network with<br>
3 OLSR v0.6.1 on OpenWRT (paquage from opkg install)<br>
1 OLSR v0.6.1 on FreeBSD 8.2 (paquagee from freebsd install with pkg_add -r)<br>
<br>
I saw those errors on the FreeBSD with -nofork<br>
<br>
Cannot write to routing socket: (rtm_errno= 0x0) (last error message: No such process)<br>
 Failed on Deleting <a href="http://10.255.255.102/32" target="_blank">10.255.255.102/32</a> via 10.255.255.101<br>
<br>
Cannot write to routing socket: (rtm_errno= 0x0) (last error message: No such process)<br>
 Failed on Deleting <a href="http://10.255.255.103/32" target="_blank">10.255.255.103/32</a> via 10.255.255.102<br>
<br>
Cannot write to routing socket: (rtm_errno= 0x0) (last error message: No such process)<br>
 Failed on Deleting <a href="http://10.255.255.101/32" target="_blank">10.255.255.101/32</a> via 10.255.255.103<br>
<br>
If I look at the routing table<br>
<br>
olsrtestfbsd# netstat -r<br>
Routing tables<br>
<br>
Internet:<br>
Destination        Gateway            Flags    Refs      Use  Netif Expire<br>
10.255.255.0       link#3             U           1        0    em0<br>
olsrtestfbsd       10.255.255.103     UGH         0        0    em0 =><br>
<a href="http://10.255.255.101/32" target="_blank">10.255.255.101/32</a>  00:30:18:a0:f5:35  U           0        0    em0<br>
10.255.255.102     10.255.255.103     UGH         0        0    em0 =><br>
<a href="http://10.255.255.102/32" target="_blank">10.255.255.102/32</a>  00:30:18:a0:f5:35  U           0        0    em0<br>
10.255.255.103     10.255.255.102     UGH         0        0    em0 =><br>
<a href="http://10.255.255.103/32" target="_blank">10.255.255.103/32</a>  00:30:18:a0:f5:35  U           0        0    em0<br>
10.255.255.201     link#3             UHS         0        0    lo0<br>
localhost          link#7             UH          0        2    lo0<br>
192.168.3.0        link#1             U           1     1336    re0<br>
192.168.3.223      link#1             UHS         0        0    lo0<br>
<br>
If I look at http_info :<br>
<br>
Destination    Gateway    Metric    ETX    Interface<br>
10.255.255.101    10.255.255.101    1    1.000    em0<br>
10.255.255.102    10.255.255.102    1    1.000    em0<br>
10.255.255.103    10.255.255.103    1    1.000    em0<br>
<br>
So the same error happen on FreeBSD. I will try to check if older version can be install with pkg_add or build them.<br>
<br>
I could give acces tomorrow to the FreeBSD if somebody want to test it.<span class="HOEnZb"><font color="#888888"><br>
<br>
Michel<br>
</font></span></blockquote></div><br></div>