Index | Thread | Search

From:
Klemens Nanni <kn@openbsd.org>
Subject:
Re: tun(4): tun_init is a waste of time
To:
David Gwynne <david@gwynne.id.au>, tech@openbsd.org
Date:
Tue, 15 Oct 2024 17:07:34 +0000

Download raw body.

Thread
15.10.2024 06:36, David Gwynne пишет:
> tun_init turns interface/stack config into a set of flags that
> tun(4) keeps in tun_softc sc_flags, but never uses. let's just cut
> it out.

Right, that's not needed.

> it keeps the current behaviour where setting an address implies
> bringing the interface up though. i'm against this behaviour, but
> it's harmless here.

I see now why you left that ioctl.  netintro(4) says the "initialisation"
routine for the interface is called, but not for SIOCSIFDSTADDR.

OK kn