diff options
author | Daniel Hellstrom <daniel@gaisler.com> | 2018-06-15 14:28:36 +0200 |
---|---|---|
committer | Daniel Hellstrom <daniel@gaisler.com> | 2018-08-24 15:51:39 +0200 |
commit | 243ddb52b3765e01b1a9335a2f2c15ebff99c479 (patch) | |
tree | ce063a0162157afaa3152fdadddcf474854122f4 /bsps/sparc/shared/uart/apbuart_cons.c | |
parent | leon, greth: 10/100 MAC enable TX BD interrupt (diff) | |
download | rtems-243ddb52b3765e01b1a9335a2f2c15ebff99c479.tar.bz2 |
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.
Diffstat (limited to 'bsps/sparc/shared/uart/apbuart_cons.c')
0 files changed, 0 insertions, 0 deletions