else {
strncpy(len_str, "NULL", DEBUG_STR_LEN);
}
- PUT_LOG_DEBUG(ip_protomod, LOG_CAT_L7VSD_PROTOCOL,260,
+ PUT_LOG_DEBUG(ip_protomod, LOG_CAT_L7VSD_PROTOCOL,331,
"in_function: int analyze_cldata(struct l7vs_service* srv, struct l7vs_conn* conn, "
"char* request, size_t* len):srv=&(%s), conn=&(%s), request=\"%s\", len=&(%s)",
srv_str, conn_str, request, len_str);
/* check null */
if (srv == NULL) {
- PUT_LOG_ERROR(ip_protomod, LOG_CAT_L7VSD_PROTOCOL,221, "Arg(srv) is NULL pointer.");
+ PUT_LOG_ERROR(ip_protomod, LOG_CAT_L7VSD_PROTOCOL,324, "Arg(srv) is NULL pointer.");
return_value = -1;
goto analyze_cldata_out;
}
if (srv->pm == NULL) {
- PUT_LOG_ERROR(ip_protomod, LOG_CAT_L7VSD_PROTOCOL,222, "Arg(srv->pm) is NULL pointer.");
+ PUT_LOG_ERROR(ip_protomod, LOG_CAT_L7VSD_PROTOCOL,325, "Arg(srv->pm) is NULL pointer.");
return_value = -1;
goto analyze_cldata_out;
}
if (request == NULL) {
- PUT_LOG_ERROR(ip_protomod, LOG_CAT_L7VSD_PROTOCOL,223, "Arg(request) is NULL pointer.");
+ PUT_LOG_ERROR(ip_protomod, LOG_CAT_L7VSD_PROTOCOL,326, "Arg(request) is NULL pointer.");
return_value = -1;
goto analyze_cldata_out;
}
if (len == NULL) {
- PUT_LOG_ERROR(ip_protomod, LOG_CAT_L7VSD_PROTOCOL,224, "Arg(len) is NULL pointer.");
+ PUT_LOG_ERROR(ip_protomod, LOG_CAT_L7VSD_PROTOCOL,327, "Arg(len) is NULL pointer.");
return_value = -1;
goto analyze_cldata_out;
}
LOG_LV_DEBUG == ip_protomod.get_log_level(LOG_CAT_L7VSD_PROTOCOL)) {
char ip_str[DEBUG_STR_LEN] = {0};
l7vs_ip_service_c_str(ip_str, ip_service);
- PUT_LOG_DEBUG(ip_protomod, LOG_CAT_L7VSD_PROTOCOL,261, "pointer assign: ip_service=&(%s)",
+ PUT_LOG_DEBUG(ip_protomod, LOG_CAT_L7VSD_PROTOCOL,332, "pointer assign: ip_service=&(%s)",
ip_str);
}
/*------ DEBUG LOG END ------*/
if (ip_service == NULL) {
- PUT_LOG_ERROR(ip_protomod, LOG_CAT_L7VSD_PROTOCOL,227, "Could not find such service handle's ip service.");
+ PUT_LOG_ERROR(ip_protomod, LOG_CAT_L7VSD_PROTOCOL,328, "Could not find such service handle's ip service.");
return_value = -1;
goto analyze_cldata_out;
}
/*-------- DEBUG LOG --------*/
if (ip_protomod.get_log_level != NULL &&
LOG_LV_DEBUG == ip_protomod.get_log_level(LOG_CAT_L7VSD_PROTOCOL)) {
- PUT_LOG_DEBUG(ip_protomod, LOG_CAT_L7VSD_PROTOCOL,262,
+ PUT_LOG_DEBUG(ip_protomod, LOG_CAT_L7VSD_PROTOCOL,333,
"out_function: int analyze_cldata(struct l7vs_service* srv, struct l7vs_conn* conn, "
"char* request, size_t* len):return_value=%d", return_value);
}
/* --timeout / -T */
case 'T':
if (sscanf(optarg, "%lu", &buffer) == 0) {
- PUT_LOG_ERROR(ip_protomod, LOG_CAT_L7VSD_PROTOCOL,107,
+ PUT_LOG_ERROR(ip_protomod, LOG_CAT_L7VSD_PROTOCOL,316,
"-T/--timeout option value '%s' is invalid.", optarg);
return_value = -1;
goto parse_out;
}
if (buffer > INT_MAX) {
- PUT_LOG_ERROR(ip_protomod, LOG_CAT_L7VSD_PROTOCOL,108,
+ PUT_LOG_ERROR(ip_protomod, LOG_CAT_L7VSD_PROTOCOL,317,
"-T/--timeout option value '%s' is too large.", optarg);
return_value = -1;
goto parse_out;
}
/* same option */
if (timeout_flag > 1) {
- PUT_LOG_ERROR(ip_protomod, LOG_CAT_L7VSD_PROTOCOL,113,
+ PUT_LOG_ERROR(ip_protomod, LOG_CAT_L7VSD_PROTOCOL,318,
"Cannot set multiple option '--timeout/-T'.");
return_value = -1;
goto parse_out;