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.anchor11138101113810

Files

Anchor11138111113811Every device driver’s net_dev.canchor11138171113817

Prototype

anchor 11233211123321

 

...

rowspan2

...

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’. Anchor11319831131983static’.

Arguments

Anchor11319841131984 p_if Anchor11319881131988pif

Pointer to the interface to remove a multicast address.

Anchor11138211113821 p_addr_hw Anchor11319901131990paddr_hw

Pointer to multicast hardware address to remove.

Anchor11138221113822addr_hw_len Anchor11319981131998

Length of multicast hardware address.

Anchor11138231113823 p_err Anchor11320031132003perr

Pointer to variable that will receive the return error code from this function.

...

Returned Value

...

11138251113825None. Anchor11138261113826

Required Configuration

...

Necessary only if NET_IP_CFG_MULTICAST_SEL is configured for transmit and receive multicasting (see section D-9-2 on page 752). Anchor11146141114614

Notes / Warnings

Anchor11146151114615Use same exact code as in NetDev_AddrMulticastAdd() to calculate the device’s CRC hash (see section BA-1-6 on page 362), 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.

Anchor11233441123344 

...

rowspan2

...

...

 

Listing A-3 Example device multicast address removal