remove lo0 handing from etc/netstart

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

remove lo0 handing from etc/netstart

Claudio Jeker
Since today lo(4) will create 127.0.0.1 and the 127/8 reject route
automatically. This means /etc/netstart no longer needs to do that.
I will commit this in a few days so that people can make sure to have
-current kernels.

--
:wq Claudio

Index: etc/netstart
===================================================================
RCS file: /cvs/src/etc/netstart,v
retrieving revision 1.188
diff -u -p -r1.188 netstart
--- etc/netstart 6 Feb 2018 19:53:50 -0000 1.188
+++ etc/netstart 10 Feb 2018 06:32:22 -0000
@@ -207,10 +207,6 @@ fi
 # /etc/myname contains my symbolic name.
 [[ -f /etc/myname ]] && hostname "$(stripcom /etc/myname)"
 
-# Set the address for the loopback interface.  Bringing the interface up,
-# automatically invokes the IPv6 address ::1.
-ifconfig lo0 inet 127.0.0.1/8
-
 if ifconfig lo0 inet6 >/dev/null 2>&1; then
  # IPv6 configurations.
  ip6kernel=YES
@@ -287,9 +283,6 @@ fi
 # depend on either of them. PFLOW might bind to ip addresses configured
 # on either of them.
 ifmstart "pppoe tun gif gre bridge switch pflow"
-
-# Reject 127/8 other than 127.0.0.1.
-route -qn add -net 127 127.0.0.1 -reject >/dev/null
 
 if [[ $ip6kernel == YES ]]; then
  # This is to make sure DAD is completed before going further.