summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2022-02-18 03:22:28 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2022-02-18 03:22:28 +0000
commitd1f8ec16cac38658a9ae0ac8489019ab4bf09e5d (patch)
tree2aacad105118fc7653a7af3cc9163e9ddfb22982 /sys
parent42af1e33b0e999202b68580b31e2543e1c058c4d (diff)
dont bother running ethernet multicast ioctl handlers.
while here turn ENETRESET into 0 in the ioctl path. there's no hardware to reset.
Diffstat (limited to 'sys')
-rw-r--r--sys/net/if_vxlan.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/net/if_vxlan.c b/sys/net/if_vxlan.c
index 8eb8d497c7d..e6687e9230e 100644
--- a/sys/net/if_vxlan.c
+++ b/sys/net/if_vxlan.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_vxlan.c,v 1.87 2022/02/18 01:27:39 dlg Exp $ */
+/* $OpenBSD: if_vxlan.c,v 1.88 2022/02/18 03:22:27 dlg Exp $ */
/*
* Copyright (c) 2021 David Gwynne <dlg@openbsd.org>
@@ -860,11 +860,21 @@ vxlan_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
error = vxlan_del_addr(sc, (struct ifbareq *)data);
break;
+ case SIOCADDMULTI:
+ case SIOCDELMULTI:
+ /* no hardware to program */
+ break;
+
default:
error = ether_ioctl(ifp, &sc->sc_ac, cmd, data);
break;
}
+ if (error == ENETRESET) {
+ /* no hardware to program */
+ error = 0;
+ }
+
return (error);
}