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

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · 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