Link Layer Address (LLA) Object
A-21
Internal Stack Functions
Set LLA Object Properties
LLASet
Syntax
void LLASet( HANDLE hLLA, uint Type, uint Size, UINT8 *pData );
Description
This function is called to set the properties of an LLA object. The object type
is the type of address the data represents. Valid values for the Type argument
are:
TYPE_LLA_UNICAST
Object is a unicast MAC address
TYPE_LLA_BROADCAST Object is a broadcast MAC address
TYPE_LLA_MULTICAST
Object is a multicast MAC address
The Size parameter is the length of the MAC address data (usually 6), and the
address data is pointed to by pData.
Get LLA Object MAC Address Data
LLAGetData
Syntax
void LLAGetData( HANDLE hLLA, uint Size, UINT8 *pData );
Description
This function is called to get the LLA address data from the LLA object. The
number of bytes to copy is supplied in Size. The exact size of the address data
can be found by calling LLAGetLength().
Get LLA Object MAC Address Type
LLAGetType
Syntax
uint LLAGetType( HANDLE hLLA );
Description
This function returns the MAC address type represented by the LLA object.
The return value will be one of the following:
TYPE_LLA_UNICAST
Object is a unicast MAC address
TYPE_LLA_BROADCAST Object is a broadcast MAC address
TYPE_LLA_MULTICAST
Object is a multicast MAC address
Get the Length of the LLA Object’s MAC Address Data
LLAGetLength
Syntax
uint LLAGetLength( HANDLE hLLA );
Description
This function is returns the byte length of the MAC address data contained in
the object. For LLA objects representing Ethernet MAC addresses, this length
will be 6.