[Olsr-dev] segfault in -r3 reproduced

John Hay (spam-protected)
Tue Dec 9 07:41:44 CET 2008


> 
> >  down, replies you get,
> > maybe we should also consider to let the kernel (via rtnetlink
> > messages) inform olsrd about external route updates,..
> 
> Portability alert: That may work for Linux but all the others use
> ioctl()s for route handling and AFAIK there is no channel back similar
> to Linux-netlink.
> And poll-and-compare the routing table is IMHO not a really sane
> approach.

The BSDs use a route socket to add and remove route entries, even in
olsrd. Look for rts in main.c and bsd/kernel_routes.c. I do not think
olsr read from it at the moment, but most other routing daemons use it.
There is even a nice tool built into the route command that use it:

###########################
gvdb-rtr:~ > route monitor

got message of size 148 on Tue Dec  9 08:36:09 2008
RTM_ADD: Add Route: len 148, pid: 770, seq 354928, errno 0, flags:<UP,GATEWAY,HOST,DONE>
locks:  inits: 
sockaddrs: <DST,GATEWAY>
 fd9c:6829:597c:371e:200:24ff:fec1:371e fe80::215:6dff:fe53:3975%ath0

got message of size 148 on Tue Dec  9 08:36:10 2008
RTM_DELETE: Delete Route: len 148, pid: 770, seq 354929, errno 0, flags:<GATEWAY,HOST,DONE>
locks:  inits: 
sockaddrs: <DST,GATEWAY>
 johnson-rtr-wifi.cids.org.za fe80::215:6dff:fe53:3975%ath0

got message of size 164 on Tue Dec  9 08:36:10 2008
RTM_DELETE: Delete Route: len 164, pid: 770, seq 354930, errno 0, flags:<GATEWAY,DONE>
locks:  inits: 
sockaddrs: <DST,GATEWAY,NETMASK>
 2001:4200:7000:110:: fe80::215:6dff:fe53:3975%ath0 (255) ffff ffff ffff ffff ffff ffff ffff
^C
gvdb-rtr:~ >
###########################

John
-- 
John Hay -- (spam-protected) / (spam-protected)




More information about the Olsr-dev mailing list