oms_aa_unconnected_mac_register()
摘要
注册网络中所有未连接的对象,并在所有对象都完成地址注册之后分配 MAC 地址。
语法
oms_aa_unconnected_mac_register (oms_aa_handle)
| 参数 | 类型 | 说明 |
|---|---|---|
oms_aa_handle |
OmsT_Aa_Address_Handle |
特定地址类型对应列表的句柄 |
返回类型
void
无返回值
详细说明
无
示例
来自 std/lane/lms_lane_if_v3 进程模型中 Auto_Addressing 的 exit execs
/* Obtain the MAC address for address resolution */
op_ima_obj_attr_get (my_object_id, "station_address",
&MAC_address);
/* If the MAC address is not specified as PROXY, */
/* invoke auto-addressing and resolve the MAC */
/* address. Once the address is resolved, the */
/* value is read in once again since the address */
/* resolution package resets the attribute value */
if (MAC_address != LANEC_MAC_PROXY)
{
lane_if_mac_address_resolve ();
}
else
/* Inform the auto addressing package about that this MAC */
/* does not need an address since it uses PROXY. */
oms_aa_unconnected_mac_register (oms_aa_handle);