From c34b6803301a5c29c5701fd7c6cd1ab6d66c5eaf Mon Sep 17 00:00:00 2001 From: Martin Pieuchot Date: Thu, 19 Jan 2017 23:16:48 +0000 Subject: Do not return an error code for SIOCSIFFLAGS. This synchronize lo(4) with other pseudo-driver and fix a regression introduced by the refactoring of the UP/DOWN logic in if.c ok dlg@, claudio@ --- sys/net/if_loop.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/net/if_loop.c b/sys/net/if_loop.c index 2f9a5a55ba3..5d98bc380e2 100644 --- a/sys/net/if_loop.c +++ b/sys/net/if_loop.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_loop.c,v 1.77 2016/11/14 10:32:46 mpi Exp $ */ +/* $OpenBSD: if_loop.c,v 1.78 2017/01/19 23:16:47 mpi Exp $ */ /* $NetBSD: if_loop.c,v 1.15 1996/05/07 02:40:33 thorpej Exp $ */ /* @@ -238,6 +238,8 @@ loioctl(struct ifnet *ifp, u_long cmd, caddr_t data) int error = 0; switch (cmd) { + case SIOCSIFFLAGS: + break; case SIOCSIFADDR: ifp->if_flags |= IFF_RUNNING; -- cgit v1.2.3