Ace_Protocol_Info_Summary_Set()

Abstract

Sets the summary line for a protocol for a particular packet.

Syntax

Ace_Protocol_Info_Summary_Set (info_ptr, summary)
Argument Type Description
info_ptr AceT_Pk_Protocol_Info * Protocol information of interest.
summary const char * Text to be set as the summary line.

Return Type

void

No return value.

ace_client_api.h

Example

/* Create a new layer of protocol info for IP */
proto_info_ptr = Ace_Packet_Protocol_Info_Append (pk_ptr, "IP", offset);

/* Create the line of summary for IP in this packet */
sprintf (summary_str,  "D=%s S=%s LEN=%d ID=%d", ip_info.dest_hostname,
ip_info.src_hostname, ip_info.payload_len, ip_info.id_num);
Ace_Protocol_Info_Summary_Set (proto_info_ptr, summary_str);

Details

This function is called after appending the current protocol to the protocol info structure with Ace_Packet_Protocol_Info_Append().

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