oms_aa_address_verify_ring()
Abstract
Creates and resolves all MAC addresses in a Token Ring or FDDI network in which one or more nodes have an explicitly assigned address.
Syntax
oms_aa_address_verify_ring (oms_aa_handle, module_id_ptr, first_addr)
| Argument | Type | Description |
|---|---|---|
oms_aa_handle |
OmsT_Aa_Address_Handle |
Handle to the list for the specific address type |
module_id_ptr |
List * |
Object ID of the module registering the address |
first_addr |
int |
Address-list index where the first MAC Return Type |
Return Type
void
No return value
Details
This procedure is generally called by a randomly chosen ring member, and resolves addresses for all nodes of the ring.
If the procedure encounters two nodes with the same explicitly assigned address, the simulation terminates with an error message.
If all ring members have auto-assigned addresses, use oms_aa_address_resolve_ring() instead.
Example
From lms_lane_if_v3 process model, function block, lane_if_mac_address_resolve() function:
/* Now that the ring id's have been registered for all the */
/* stations along a ring, the station addresses can be registered. */
lowest_addr = tr_address_resolve (ring_mod_objid_list, "station_address", my_ring_id, ADDR_REGISTER);
/* Register the addresses of the stations on the ring to */
/* the global MAC address pool. We will call a different */
/* function if all the addresses are dynamically assigned, so*/
/* that they can be re-assigned if necessary. */
if (lowest_addr == ADDR_DYNAMIC)
oms_aa_address_resolve_ring (oms_aa_handle, ring_mod_objid_list);
else
oms_aa_address_verify_ring (oms_aa_handle, ring_mod_objid_list,
lowest_addr);