oms_aa_address_find()
Abstract
Obtains the address-list index for a specific address.
Syntax
oms_aa_address_find (oms_aa_handle, address)
| Argument | Type | Description |
|---|---|---|
oms_aa_handle |
OmsT_Aa_Address_Handle |
Handle to the list for the specific address type. |
address |
int |
Address to be found |
Return Type
int
Array index in the address list where the specified address resides, or -1 if the address is not found
Details
None.
Example
From wlan_mac process model, function block, wlan_tuple_find() function:
/* Finding the index of the station address in the list, */
/* if the station belongs to this subnet. */
list_index = oms_aa_address_find (oms_aa_wlan_handle, sta_addr);
/* If remote station entry doesn't exist then create new node. */
if (list_index >= 0)
{
if (duplicate_list_ptr [list_index] == OPC_NIL)
{
/* Creating struct type for duplicate frame */
/* (or tuple) structure. */
tuple_ptr = (WlanT_Mac_Duplicate_Buffer_Entry*) op_prg_mem_alloc
(sizeof (WlanT_Mac_Duplicate_Buffer_Entry));