summaryrefslogtreecommitdiff
path: root/sys/net/if_vxlan.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2013-10-19 14:46:32 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2013-10-19 14:46:32 +0000
commit0ac3eacf446993e18ed9a7f0c47df2ca2e77bfb8 (patch)
tree08fbd975588dcc41b0259666c8756ecf898bc942 /sys/net/if_vxlan.c
parent529f28fd2892dc3a9196bd751845b27e48141cad (diff)
Uniformize drivers doing nothing with their multicast filters to make
them ignore the SIOC{ADD,DEL}MULTI ioctls. ok reyk@, claudio@
Diffstat (limited to 'sys/net/if_vxlan.c')
-rw-r--r--sys/net/if_vxlan.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/sys/net/if_vxlan.c b/sys/net/if_vxlan.c
index c9d706974d7..343ec9fedaf 100644
--- a/sys/net/if_vxlan.c
+++ b/sys/net/if_vxlan.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_vxlan.c,v 1.7 2013/10/19 11:37:20 reyk Exp $ */
+/* $OpenBSD: if_vxlan.c,v 1.8 2013/10/19 14:46:31 mpi Exp $ */
/*
* Copyright (c) 2013 Reyk Floeter <reyk@openbsd.org>
@@ -354,15 +354,6 @@ vxlanioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
case SIOCADDMULTI:
case SIOCDELMULTI:
- if (ifr == 0) {
- error = EAFNOSUPPORT;
- break;
- }
- error = (cmd == SIOCADDMULTI) ?
- ether_addmulti(ifr, &sc->sc_ac) :
- ether_delmulti(ifr, &sc->sc_ac);
- if (error == ENETRESET)
- error = 0;
break;
case SIOCGIFMEDIA: