oms_aa_dest_addr_check()
摘要
判断某个特定类型的目的地址是否存在。
语法
oms_aa_dest_addr_check (oms_aa_handle, dest_address)
| 参数 | 类型 | 说明 |
|---|---|---|
oms_aa_handle |
OmsT_Aa_Address_Handle |
特定地址类型列表的句柄 |
dest_address |
int |
待验证的地址 |
返回类型
boolean
若 dest_address 当前存在则返回 OPC_TRUE,否则返回 OPC_FALSE
详细说明
无。
示例
来自 wlan_mac_interface 进程模型中 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;
}