op_sar_bitrange_print()

Abstract

Sends the contents of a bit-range to the standard output device in human readable form.

Syntax

op_sar_bitrange_print (bit_range)
Argument Type Description
bit_range Sar_Bitrange* bit-range to print

Return Type

void

No return value.

Example

segpk_ptr = op_sar_srcbuf_seg_remove (transmit_buf, MTU_SIZE);

/* retrieve a list of bit ranges from a SAR segment */
/* and print this bitrange information out for      */
/* debugging purposes.                              */

bitrange_list_ptr = op_sar_seg_bitrange_list_get (segpk_ptr);

if (debug_mode)
	{
	for (i = 0; i < op_prg_list_size (bitrange_list_ptr); i++)
		{
		bitrange_ptr = (Sar_Bitrange *) op_prg_list_access (bitrange_list_ptr, i);
		printf ("bitrange #%d:\n", i);
		op_sar_bitrange_print (bitrange_ptr);
		}
	}

Details

This KP is primarily useful for debugging purposes. It sends the starting bit’s location in the original packet, the number of bits in the bit-range, the original packet’s size, and the original packet’s label to the standard output device.

Purpose

Provides a mechanism to view the contents of a bit-range on the standard output device.

Errors

  • No errors are trapped.

Reference

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