oms_aa_dest_addr_check()
Abstract
Determines whether a destination address of a specific type exists.
Syntax
oms_aa_dest_addr_check (oms_aa_handle, dest_address)
| Argument | Type | Description |
|---|---|---|
oms_aa_handle |
OmsT_Aa_Address_Handle |
Handle to the list for the specific address type |
dest_address |
int |
Address to be verified |
Return Type
boolean
OPC_TRUE if dest_address currently exists, OPC_FALSE otherwise
Details
None.
Example
From wlan_mac_interface process model, wait exit execs:
/* Checks if this is a valid address from the pool of addresses */
/* available. */
dest_addr_okay = oms_aa_dest_addr_check (oms_aa_handle,
destination_address);
if (dest_addr_okay != OPC_TRUE)
{
/* Write a log stating that source node can not be a destination. */
printf ("\n\nInvalid destination address specification.
Changing\n");
printf ("the specification from %d, to \"Random\"\n\n",
destination_address);
/* The specified destination address is invalid. Set it to random. */
destination_address = OMSC_AA_AUTO_ASSIGN;
}