On Wed, Nov 23, 2022 at 09:36:28PM -0700, Theo de Raadt wrote:
> Theo de Raadt <dera...@openbsd.org> wrote:
> 
> > > The other, that if both exist,
> > > /etc/hostname.$if will override /etc/hostname.$lladdr.
> > 
> > We do need to decide which one is priority, and document that.
> > 
> > I am still unsure which is better.  (I've seen a lot of spurious comments
> > from folk, so please think about realistic cases, and don't make stuff up..)
> 
> And by that I mean: Actually try andrews's diff.  It does it one way (.if
> is more important).  Maybe it needs to be the other way.
> 

Could we check the simultaneous existence of both hostname.if and
hostname.lladdr corresponding to one interface and print error message
if so?

I'm also interesting how the following case will be handled. We have
/etc/hostname.vlan0 and /etc/hostname.08002233ccbb, network devices
configured as:

vlan0: flags=8002<BROADCAST,MULTICAST> mtu 1500
        lladdr 08:00:23:33:cc:bb
        index 5 priority 0 llprio 3
        encap: vnetid 1 parent em0 txprio packet rxprio outer

em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 08:00:23:33:cc:bb

and we do /etc/netstart?

> By using that script, let's find an actual case where it matters and the
> other way is better, and then we discuss that.  Maybe it doesn't matter
> which way we do it, as long as we document it.
> 

Reply via email to