diff options
author | 2018-02-07 06:02:01 +0000 | |
---|---|---|
committer | 2018-02-07 06:02:01 +0000 | |
commit | 36479f42c0637f95ddd461d16dc6d4cbb431e39b (patch) | |
tree | a9b51444f2829a9dd466f113249b16334c03e192 | |
parent | take the interface down if it is being destroyed. (diff) | |
download | wireguard-openbsd-36479f42c0637f95ddd461d16dc6d4cbb431e39b.tar.xz wireguard-openbsd-36479f42c0637f95ddd461d16dc6d4cbb431e39b.zip |
dont return ENETRESET from SIOCSIFFLAGS, it wont't be handled properly
-rw-r--r-- | sys/net/if_mobileip.c | 4 |
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); |