summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2017-01-19 23:16:48 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2017-01-19 23:16:48 +0000
commitc34b6803301a5c29c5701fd7c6cd1ab6d66c5eaf (patch)
tree1804474974d48d2bb78cc37a430b53ee7b23beaa /sys
parentbb8acd29883a24463ed9e9905d76c6c925c449f0 (diff)
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@
Diffstat (limited to 'sys')
-rw-r--r--sys/net/if_loop.c4
1 files changed, 3 insertions, 1 deletions
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;