From: dlg Date: Fri, 18 Feb 2022 01:27:39 +0000 (+0000) Subject: fix inverted check of running when changing tunnel rdomain. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b3b6938653f4fa8af9b61bb2e5568653f081f7ab;p=openbsd 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. --- 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 @@ -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 */