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;
	}

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com