diff options
author | Christopher Pascoe <pascoe@cvs.openbsd.org> | 2006-05-27 21:47:56 +0000 |
---|---|---|
committer | Christopher Pascoe <pascoe@cvs.openbsd.org> | 2006-05-27 21:47:56 +0000 |
commit | 9c50cfa2ba36ad5ed27b2170990cb610b7fe79e2 (patch) | |
tree | 652cff1447bdf450908432f33fb733f7ab20b603 /sys/dev/usb/if_cdce.c | |
parent | fa684f767950757c9352593cbf4c6935d9b38b3a (diff) |
Add support for multicast packets.
ok dlg@
Diffstat (limited to 'sys/dev/usb/if_cdce.c')
-rw-r--r-- | sys/dev/usb/if_cdce.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/dev/usb/if_cdce.c b/sys/dev/usb/if_cdce.c index 7ece38588a4..a3fa9747bab 100644 --- a/sys/dev/usb/if_cdce.c +++ b/sys/dev/usb/if_cdce.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_cdce.c,v 1.16 2006/03/25 22:41:46 djm Exp $ */ +/* $OpenBSD: if_cdce.c,v 1.17 2006/05/27 21:47:55 pascoe Exp $ */ /* * Copyright (c) 1997, 1998, 1999, 2000-2003 Bill Paul <wpaul@windriver.com> @@ -440,6 +440,16 @@ cdce_ioctl(struct ifnet *ifp, u_long command, caddr_t data) error = 0; break; + case SIOCADDMULTI: + case SIOCDELMULTI: + error = (command == SIOCADDMULTI) ? + ether_addmulti(ifr, &sc->cdce_arpcom) : + ether_delmulti(ifr, &sc->cdce_arpcom); + + if (error == ENETRESET) + error = 0; + break; + default: error = EINVAL; break; |