Date: Sat, 26 Jan 2013 22:51:12 -0800 From: Tim Kientzle <tim@kientzle.com> To: Tim Kientzle <kientzle@freebsd.org> Cc: freebsd-hackers <freebsd-hackers@freebsd.org> Subject: Re: Testing SIOCADDMULTI? Message-ID: <7A0E9B71-0232-4808-B5D4-5B0D811B353C@kientzle.com> In-Reply-To: <AE65AFB2-A767-4457-B30A-007956A7D216@freebsd.org> References: <AE65AFB2-A767-4457-B30A-007956A7D216@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Jan 26, 2013, at 3:56 PM, Tim Kientzle wrote: > My next TODO items for this network driver is to implement > the SIOCADDMULTI and SIOCDELMULTI ioctls. Looking through other drivers (and net/if.c), I've managed to implement ADDMULTI by adding the multicast ethernet address to the list maintained by the controller. DELMULTI seems trickier. Since if.c does not pass the specific address being removed down to the driver, it looks like I have no choice but to remove every multicast address from the controller and then re-insert all of the ones that are still valid. (This controller doesn't use a hash filter; it uses a list of valid multicast addresses.) Is there a better approach? > I'm not quite sure what they do, though, and have > no idea how to test them to see if they are working > correctly. Would still appreciate any suggestions for how to test these. Cheers, Tim
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7A0E9B71-0232-4808-B5D4-5B0D811B353C>