Testing SIOCADDMULTI?
Tim Kientzle
tim at kientzle.com
Sun Jan 27 06:51:14 UTC 2013
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
More information about the freebsd-hackers
mailing list