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

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