Ace_Decoder_Error_Log()

Abstract

Provides a uniform way of reporting errors across all decoders.

Syntax

Ace_Decoder_Error_Log (decoder_name, protocol_name, err_str1, err_str2, fatal)
Argument Type Description
decoder_name const char * Name of decoder that encountered error.
protocol_name const char * Name of protocol being decoded.
err_str1 const char * Line 1 of error message. (Must not be null.)
err_str2 const char * Line 2 of error message. (Must not be null.)
fatal int Error severity. 1 for fatal error, 0 for recoverable error.

Return Type

void

No return value.

ace_client_api.h

Example

/* There is an error and we could get caught in infinite loop. */
Ace_Decoder_Error_Log ("op_tcp","TCP", "TCP option has length <= 0", "", 0);
FOUT;

Details

This function prints an error message containing the following lines:

Decoder: <decoder_name>     Protocol: <protocol_name>
<err_str1>
<err_str2>

For an alternate error format, see Ace_Decoder_Packet_Error_Log().

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