Low-Level Packet Driver (llPacket)
D-7
Hardware Abstraction Layer (HAL)
Set Packet Receive Filter
llPacketSetRxFilter
Syntax
void llPacketSetRxFilter( uint dev, uint filter );
Return Value
nothing
Description
Called to set the types of packets which should be received via the receive indi-
cation function. Each level of filter is inclusive of the previous level. They are:
ETH_PKTFLT_NOTHING
No Packets
ETH_PKTFLT_DIRECT
Only directed Ethernet
ETH_PKTFLT_BROADCAST
Directed plus Ethernet Broadcast
ETH_PKTFLT_MULTICAST
Directed, Broadcast, and selected
Ethernet Multicast
ETH_PKTFLT_ALLMULTICAST
Directed, Broadcast, and all Multicast
ETH_PKTFLT_ALL
All packets
Get MAC address
llPacketGetMacAddr
Syntax
void llPacketGetMacAddr( uint dev, UINT8 *pbData );
Return Value
nothing
Description
Copies the 6 byte MAC address of the physical device index dev into the sup-
plied data buffer.
Get the Maximum Number of Multicast Addresses
llPacketGetMCastMax
Syntax
uint llPacketGetMCastMax( uint dev );
Return Value
The maximum number of 6 byte MAC addresses that can be supplied for
llPacketSetMCast().
Description
Called to the maximum number of multicast addresses that can be supported
on the physical packet device.
Get Multicast Address List
llPacketGetMCast
Syntax
uint llPacketGetMCast( uint dev, uint maxaddr, UINT8 *pbAddr );
Return Value
The number of 6 byte MAC addresses written to pbAddr.
Description
Called to get the current list of multicast addresses installed on the physical
device. The max size of the list (supplied as an address count) is in maxaddr.
The list is a contiguous stream of 6 byte addresses pointed to by pbAddr. The
function returns the number of addresses in the list supplied.