Page MenuHomeFreeBSD

Remove lo(4) comments about interface configuration order.
AcceptedPublic

Authored by jmallett on Jan 20 2022, 8:03 PM.
Referenced Files
F106656970: D33972.diff
Fri, Jan 3, 12:09 PM
Unknown Object (File)
Oct 23 2024, 10:28 AM
Unknown Object (File)
Oct 18 2024, 12:51 PM
Unknown Object (File)
Oct 4 2024, 7:32 PM
Unknown Object (File)
Oct 4 2024, 2:18 PM
Unknown Object (File)
Oct 4 2024, 11:07 AM
Unknown Object (File)
Oct 4 2024, 5:11 AM
Unknown Object (File)
Oct 3 2024, 5:18 AM
Subscribers

Details

Reviewers
bz
glebius
imp
karels
Group Reviewers
network
Summary

These comments seem archaic and also needlessly-worrying to your average admin who doesn't configure interfaces directly, but rather uses rc.conf and pals. Are these okay to remove, or are there actually implications here that need to remain present?

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

And for VNET(9) jail, it seems the loopback interface is always configured first.
The behavior is inconsistent with the host.

Then is it still reasonable for protocols that use the order of interface configuration?

glebius added a subscriber: glebius.

The text comes from pre-FreeBSD times.

This revision is now accepted and ready to land.Jul 1 2022, 2:33 PM
imp accepted this revision.EditedJul 1 2022, 3:51 PM

This was in 4.3BSD:

The loopback interface should be the last interface configured,
as protocols may use the order of configuration as an indication of priority.
The loopback should \fBnever\fP be configured first unless no hardware
interfaces exist.

which is word-for-word identical, except for markup. It likely was true in the mid 80s, but I agree, it's no longer true or necessary. Mike Karels added it with the unhelpful commit message "warning about order of configuration" in 1986.

Since Mike is still around, added him to confirm :)

I agree with all the comments above; I can't think of any significance to order of configuration of interfaces now. It might still affect the order of the interface list returned from the kernel, but most things that look at that list now process the whole thing.

I think the commit comment in 1986 was probably obvious at the time, when interfaces were configured by /etc/netstart, a locally-modified script (there was no rc.conf).