Re: slaacd(8): prevent crash when interface disappears

2021-11-28 Thread Florian Obser
On 2021-11-28 05:13 UTC, Klemens Nanni wrote: > On Thu, Nov 18, 2021 at 09:02:00AM +0100, Florian Obser wrote: >> This might be the crash kn@ was seeing once in a blue moon. > > I somewhat doubt it, since slaacd crashed on my notebook using trunk(4) > over em(4) and athn(4), none of these

Re: slaacd(8): prevent crash when interface disappears

2021-11-28 Thread Klemens Nanni
On Thu, Nov 18, 2021 at 09:02:00AM +0100, Florian Obser wrote: > This is split in two for easier review and I also intend to commit it > like this. > > The first diff shuffles setting of if_index around so that it's > available in all switch cases and uses it consistently instead of >

Re: slaacd(8): prevent crash when interface disappears

2021-11-27 Thread Florian Obser
anyone? On 2021-11-18 09:02 +01, Florian Obser wrote: > This is split in two for easier review and I also intend to commit it > like this. > > The first diff shuffles setting of if_index around so that it's > available in all switch cases and uses it consistently instead of > ifm->ifm_index. > >

slaacd(8): prevent crash when interface disappears

2021-11-18 Thread Florian Obser
This is split in two for easier review and I also intend to commit it like this. The first diff shuffles setting of if_index around so that it's available in all switch cases and uses it consistently instead of ifm->ifm_index. That way we can copy the if_name == NULL check into each case block