op_ici_is_format()

摘要

测试 ICI 格式的名称。

语法

op_ici_is_format (iciptr, name)
参数 类型 说明
iciptr Ici * 指向目标 ICI 的指针
[指向 ICI 的指针可以从两个内核过程获得:op_ici_create() 返回指向新分配 ICI 的指针(在 ICI 发送进程中),以及 op_intrpt_ici() 返回与传入中断关联的 ICI 的指针(在 ICI 接收进程中)。]
name const char * ICI 格式的名称

返回类型

VosT_Boolean

如果 ICI 具有该名称的格式则返回 VOSC_TRUE;如果 ICI 具有其他格式或发生错误则返回 VOSC_FALSE。

示例

/* Get the ICI associated with the new arrival. */
iciptr = op_intrpt_ici ();

/* Extract the addressing information from the ICI and insert it into the */
/* network packet. */
op_ici_attr_get (iciptr, "primitive", &primitive);

/* Test the ICI format name and interpret its contents accordingly. */

if (op_ici_is_format (iciptr, "X25_connect"))
	{
	/* ... */
	}
else 
	{
	/* ... */
	}

详情

无。

用途

提供了一种快速测试 ICI 格式名称的方法。

错误

  • 可恢复错误:ICI 指针为 NIL。
  • 可恢复错误:对无效 ICI 执行了操作;ICI 可能已被销毁。

参考

  • 使用内核过程 op_ici_format() 获取 ICI 格式的名称以便手动测试

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