Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

NetDev_AddrMulticastRemove()

The next API function is the AddrMulticastRemove() function used to remove an (IP-to-Ethernet) multicast hardware address from a device.

...

Every device driver’s net_dev.c

Prototype

...

 

Note that since every device driver’s AddrMulticastRemove() function is accessed only by function pointer via the device driver’s API structure, it doesn’t need to be globally available and should therefore be declared as ‘static’.

...

Use same exact code as in NetDev_AddrMulticastAdd() to calculate the device’s CRC hash (see section A-1-6), but remove a multicast address by decrementing the device’s hash bit reference counters and clearing the appropriate bits in the device’s multicast registers.

 

 

Listing AListing A-3 Example device multicast address removal