oms_aa_address_resolve_ring()
摘要
在所有节点地址均为自动分配的 Token Ring 或 FDDI 网络中解析全部 MAC 地址。
语法
oms_aa_address_resolve_ring (oms_aa_handle, module_id_lptr)
| 参数 | 类型 | 说明 |
|---|---|---|
oms_aa_handle |
OmsT_Aa_Address_Handle |
特定地址类型对应列表的句柄 |
module_id_lptr |
List * |
注册该地址的模块的对象 ID |
返回类型
void
无返回值。
详细说明
该过程通常由随机选出的一个环成员调用,为环上的所有节点解析地址。地址先保存在临时列表中,只有当网络中所有其他 MAC 也都注册了地址之后才会真正分配。
如果环网络中有任何成员使用显式分配的地址,你应当改用 oms_aa_address_verify_ring()。
示例
来自 tr_mac_op_v2 进程模型中 ring_reg 的 enter execs:
tr_ring_id_resolve (&Tr_Ring_ID, "ring_id", ring_mod_objid_list, &status);
/* 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",
Tr_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 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);