summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2022-02-18 01:27:40 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2022-02-18 01:27:40 +0000
commit0ea1985e8d1dc090cc71a794fc15afb67067fcb5 (patch)
tree56d5cd16133cd90b5bafd77c8c2e870072916bc6 /sys/net
parent58a287ace2243354ecb53fcc2bc3548b4b96e11e (diff)
fix inverted check of running when changing tunnel rdomain.
you should only be able to change the tunnel rdomain when the interface is down. i was accidentally make sure you could only change the rdomain when the interface was up.
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_vxlan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_vxlan.c b/sys/net/if_vxlan.c
index f43fa7ca89b..8eb8d497c7d 100644
--- a/sys/net/if_vxlan.c
+++ b/sys/net/if_vxlan.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_vxlan.c,v 1.86 2022/02/18 00:46:42 dlg Exp $ */
+/* $OpenBSD: if_vxlan.c,v 1.87 2022/02/18 01:27:39 dlg Exp $ */
/*
* Copyright (c) 2021 David Gwynne <dlg@openbsd.org>
@@ -1288,7 +1288,7 @@ vxlan_set_rdomain(struct vxlan_softc *sc, const struct ifreq *ifr)
if (sc->sc_rdomain == ifr->ifr_rdomainid)
return (0);
- if (!ISSET(ifp->if_flags, IFF_RUNNING))
+ if (ISSET(ifp->if_flags, IFF_RUNNING))
return (EBUSY);
/* commit */