summaryrefslogtreecommitdiff
path: root/sys/net/if_mobileip.c
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2018-02-07 06:02:02 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2018-02-07 06:02:02 +0000
commit1501a67e90d7d22f0eb46be4f97431151a6f3a28 (patch)
treee85013a889ff5315c40445befa47324ecc36153a /sys/net/if_mobileip.c
parent5f9466e1b89ee771f841172dc834b639e5f056a1 (diff)
dont return ENETRESET from SIOCSIFFLAGS, it wont't be handled properly
Diffstat (limited to 'sys/net/if_mobileip.c')
-rw-r--r--sys/net/if_mobileip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_mobileip.c b/sys/net/if_mobileip.c
index 28f8bbbefd2..0eacbeb8420 100644
--- a/sys/net/if_mobileip.c
+++ b/sys/net/if_mobileip.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_mobileip.c,v 1.2 2018/02/07 05:59:00 dlg Exp $ */
+/* $OpenBSD: if_mobileip.c,v 1.3 2018/02/07 06:02:01 dlg Exp $ */
/*
* Copyright (c) 2016 David Gwynne <dlg@openbsd.org>
@@ -357,7 +357,7 @@ mobileip_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
if (!ISSET(ifp->if_flags, IFF_RUNNING))
error = mobileip_up(sc);
else
- error = ENETRESET;
+ error = 0;
} else {
if (ISSET(ifp->if_flags, IFF_RUNNING))
error = mobileip_down(sc);