Re: /etc/netstart - order of operations (lo vs physical interfaces)

2018-04-29 Thread Ingo Schwarze
Hi,

this has been taken care of.  I just deleted the misleading sentences
from the lo(4) manual page.  No replacement is needed.

Thanks for reporting,
  Ingo


Hess THR wrote on Fri, Apr 27, 2018 at 07:23:49PM +0200:

> who is "jmc" in the header? can someone cc him?
> or the people who are doing the doc? :)
> 
> Many thanks. 
> 
> > Sent: Friday, April 27, 2018 at 3:28 PM
> > From: "Amelia A Lewis" 
> > To: misc@openbsd.org
> > Subject: Re: /etc/netstart - order of operations (lo vs physical interfaces)
> >
> > A read of the script itself shows loopback initialized prior to 
> > hardware interfaces, at least in 6.2 (haven't upgraded yet).
> > 
> > On Fri, 27 Apr 2018 08:21:54 -0400, Gabriel Guzman wrote:
> > > Just a quick clarification, lo(4) says that the loopback interface
> > > should be configured last, and /etc/netstart seems to support this
> > > but netstart(8) says that the loopback interface is configured `before`
> > > physical interfaces: 
> > 
> > Date in the man page for lo(4) is 2013. I'm guessing that the network 
> > system has moved on since then, and it's actually the lo(4) source 
> > that's out of date.
> > 
> > Or, possibly, the netstart authors aren't aware of the potential 
> > problems, so started initializing loopback devices first, and ought to 
> > change things.
> > 
> > :-)
> > 
> > Amy!
> > -- 
> > Amelia A. Lewisamyzing {at} talsever.com
> > There's someone in my head, but it's not me.
> > -- Pink Floyd



Re: /etc/netstart - order of operations (lo vs physical interfaces)

2018-04-27 Thread Hess THR
who is "jmc" in the header? can someone cc him? or the people who are doing the 
doc? :)

Many thanks. 

> Sent: Friday, April 27, 2018 at 3:28 PM
> From: "Amelia A Lewis" 
> To: misc@openbsd.org
> Subject: Re: /etc/netstart - order of operations (lo vs physical interfaces)
>
> A read of the script itself shows loopback initialized prior to 
> hardware interfaces, at least in 6.2 (haven't upgraded yet).
> 
> On Fri, 27 Apr 2018 08:21:54 -0400, Gabriel Guzman wrote:
> > Just a quick clarification, lo(4) says that the loopback interface
> > should be configured last, and /etc/netstart seems to support this
> > but netstart(8) says that the loopback interface is configured `before`
> > physical interfaces: 
> 
> Date in the man page for lo(4) is 2013. I'm guessing that the network 
> system has moved on since then, and it's actually the lo(4) source 
> that's out of date.
> 
> Or, possibly, the netstart authors aren't aware of the potential 
> problems, so started initializing loopback devices first, and ought to 
> change things.
> 
> :-)
> 
> Amy!
> -- 
> Amelia A. Lewisamyzing {at} talsever.com
> There's someone in my head, but it's not me.
> -- Pink Floyd
> 
> 



Re: /etc/netstart - order of operations (lo vs physical interfaces)

2018-04-27 Thread Amelia A Lewis
A read of the script itself shows loopback initialized prior to 
hardware interfaces, at least in 6.2 (haven't upgraded yet).

On Fri, 27 Apr 2018 08:21:54 -0400, Gabriel Guzman wrote:
> Just a quick clarification, lo(4) says that the loopback interface
> should be configured last, and /etc/netstart seems to support this
> but netstart(8) says that the loopback interface is configured `before`
> physical interfaces: 

Date in the man page for lo(4) is 2013. I'm guessing that the network 
system has moved on since then, and it's actually the lo(4) source 
that's out of date.

Or, possibly, the netstart authors aren't aware of the potential 
problems, so started initializing loopback devices first, and ought to 
change things.

:-)

Amy!
-- 
Amelia A. Lewisamyzing {at} talsever.com
There's someone in my head, but it's not me.
-- Pink Floyd



/etc/netstart - order of operations (lo vs physical interfaces)

2018-04-27 Thread Gabriel Guzman

Just a quick clarification, lo(4) says that the loopback interface
should be configured last, and /etc/netstart seems to support this
but netstart(8) says that the loopback interface is configured `before`
physical interfaces: 


from netstart(8): 

> netstart performs the following operations, in the sequence given:
>
>   •   Set the machine's name.
>   •   Configure the loopback interface.
>   •   Configure all the physical interfaces.

from lo(4):
> 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 never be configured first unless no
> hardware interfaces exist.

Typo, or am I misunderstanding something? 
If it's a typo, patch to update netstart(8) inline.

Thanks,
gabe.


index: netstart.8   

   │··
=== 

   │··
RCS file: /cvs/src/share/man/man8/netstart.8,v  

   │··
retrieving revision 1.23

   │··
diff -u -p -r1.23 netstart.8

   │··
--- netstart.8  7 Mar 2018 09:54:23 -   1.23

   │··
+++ netstart.8  27 Apr 2018 12:18:44 -  

   │··
@@ -60,9 +60,9 @@ performs the following operations, in th  

   │··
 .It

   │··
 Set the machine's name.

   │··
 .It

   │··
-Configure the loopback interface.  

   │··
-.It

   │··
 Configure all the physical interfaces. 

   │··
+.It

   │··
+Configure the loopback interface.  

   │··
 .It

   │··
 Configure the following non-physical interfaces:   

   │··
 .Xr trunk 4 ,