Re: rtadvd crashes after multiple ifconfig create/destroy

2011-06-05 Thread Michal Mazurek
On Sat, May 28, 2011 at 01:25:15PM +0200, Michal Mazurek wrote: After multiple ifconfig create and destroy of bridge and tun interfaces rtadvd crashed just seconds after being started. Here is a way to recreate the crash: $ cat /etc/rtadvd.conf tun6:addr=fd00:1234::1:prefixlen#64: for I in

rtadvd crashes after multiple ifconfig create/destroy

2011-05-28 Thread Michal Mazurek
After multiple ifconfig create and destroy of bridge and tun interfaces rtadvd crashed just seconds after being started. I had 7 interfaces, but tun0 had ifm_index == 16. rtadvd allocated insufficient space for iflist. iflist got initialized but then it's tail got overwritten. This diff determines