Changeset 243ddb52 in rtems for bsps

Timestamp:
06/15/18 12:28:36 (6 years ago)
Author:
Daniel Hellstrom <daniel@…>
Branches:
5, master
Children:
aea3134e
Parents:
2fbe2ef3
git-author:
Daniel Hellstrom <daniel@…> (06/15/18 12:28:36)
git-committer:
Daniel Hellstrom <daniel@…> (08/24/18 13:51:39)
Message:

leon,greth: enable MAC filtering (promiscous mode, multicast)

It enabled promiscous mode or sets the multicast filter according
to the configuration and parameters to ioctl(SIOCSIFFLAGS),
ioctl(SIOCADDMULTI) and ioctl(SIOCDELMULTI).
On SIOCADDMULTI/SIOCDELMULTI requests the greth ioctl calls the
Ethernet helper functions ether_addmulti()/ether_delmulti() which
tells the greth driver when its required to update the MAC multicast
filtering.

The interface notifies support for multicast by setting IFF_MULTICAST.

The GRETH has two registers which contains a bit-mask of allowed MAC
addresses. The incomming MAC address is CRC:ed and the CRC is used as
an index into the bit-mask to determine to allow or drop the frame.

(No files)

Note: See TracChangeset for help on using the changeset viewer.