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.
Header
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().