From: "Theo de Raadt" Subject: Re: non-perfect diff to explain an issue with netstart and AUTOCONF To: "Sven F." Cc: tech@openbsd.org Date: Fri, 30 May 2025 10:54:20 -0600 Sven F. wrote: > On Fri, May 30, 2025 at 12:24 PM Theo de Raadt wrote: > > Sven F. wrote: > > > If an interface is configured with AUTOCONF > > hostname.if does not remove the flag > > Noone said that netstart removes any configuration. There are probably > 50+ configuration pieces on an interface, and netstart does not remove > any of them. It does not "reset a port". It only sets things that it > knows about. > > I do not think this proposal is useful. > > NB: > > Downing an interface removes configs, like inet, not flags , this may be useful to > make a decision > just saying the behavior is not completely coherent since autoconf is more ip config > than phy behavior. Downing an interface, by doing 'ifconfig if0 down'? That just turns off one flag. It does not remove any other config. There is no 'ifconfig if0 reset' operation. That may be what you want. But if we had such an operation, is incredibly unlikely that we would use it in netstart, because there are usage patterns not like yours.