From 0ea1985e8d1dc090cc71a794fc15afb67067fcb5 Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Fri, 18 Feb 2022 01:27:40 +0000 Subject: 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. --- sys/net/if_vxlan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/net') 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 */ -- cgit v1.2.3