From c539b04c9400aacaff594a8bb3daf9bd02452111 Mon Sep 17 00:00:00 2001 From: claudio Date: Sat, 10 Feb 2018 09:32:54 +0000 Subject: [PATCH] There is a problem with assigning 127.0.0.1 here. Revert the call to in_up_loopback(). There is an issue when doing ifconfig lo0 127.0.0.1/8 the system ends up with 2 127.0.0.1 routes which breaks things like smptd. Found by tb@ --- sys/net/if.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/net/if.c b/sys/net/if.c index 94df391bd8a..ffafd37f452 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if.c,v 1.543 2018/02/10 05:52:08 florian Exp $ */ +/* $OpenBSD: if.c,v 1.544 2018/02/10 09:32:54 claudio Exp $ */ /* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */ /* @@ -1552,7 +1552,6 @@ if_up(struct ifnet *ifp) /* Userland expects the kernel to set ::1 on default lo(4). */ if (ifp->if_index == rtable_loindex(ifp->if_rdomain)) { in6_ifattach(ifp); - in_up_loopback(ifp); } #endif -- 2.20.1