else {
strncpy(len_str, "NULL", DEBUG_STR_LEN);
}
- PUT_LOG_DEBUG(sslid_protomod, LOG_CAT_L7VSD_PROTOCOL,103,
+ PUT_LOG_DEBUG(sslid_protomod, LOG_CAT_L7VSD_PROTOCOL,325,
"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)",
/* check null */
if (srv == NULL) {
- PUT_LOG_ERROR(sslid_protomod, LOG_CAT_L7VSD_PROTOCOL,83, "Arg(srv) is NULL pointer.");
+ PUT_LOG_ERROR(sslid_protomod, LOG_CAT_L7VSD_PROTOCOL,310, "Arg(srv) is NULL pointer.");
return_value = -1;
goto analyze_cldata_out;
}
if (srv->pm == NULL) {
- PUT_LOG_ERROR(sslid_protomod, LOG_CAT_L7VSD_PROTOCOL,84, "Arg(srv->pm) is NULL pointer.");
+ PUT_LOG_ERROR(sslid_protomod, LOG_CAT_L7VSD_PROTOCOL,311, "Arg(srv->pm) is NULL pointer.");
return_value = -1;
goto analyze_cldata_out;
}
if (request == NULL) {
- PUT_LOG_ERROR(sslid_protomod, LOG_CAT_L7VSD_PROTOCOL,85, "Arg(request) is NULL pointer.");
+ PUT_LOG_ERROR(sslid_protomod, LOG_CAT_L7VSD_PROTOCOL,312, "Arg(request) is NULL pointer.");
return_value = -1;
goto analyze_cldata_out;
}
if (len == NULL) {
- PUT_LOG_ERROR(sslid_protomod, LOG_CAT_L7VSD_PROTOCOL,86, "Arg(len) is NULL pointer.");
+ PUT_LOG_ERROR(sslid_protomod, LOG_CAT_L7VSD_PROTOCOL,313, "Arg(len) is NULL pointer.");
return_value = -1;
goto analyze_cldata_out;
}
LOG_LV_DEBUG == sslid_protomod.get_log_level(LOG_CAT_L7VSD_PROTOCOL)) {
char sslid_str[DEBUG_STR_LEN] = {0};
l7vs_sslid_service_c_str(sslid_str, sslid_service);
- PUT_LOG_DEBUG(sslid_protomod, LOG_CAT_L7VSD_PROTOCOL,104, "pointer assign: sslid_service=&(%s)",
+ PUT_LOG_DEBUG(sslid_protomod, LOG_CAT_L7VSD_PROTOCOL,326, "pointer assign: sslid_service=&(%s)",
sslid_str);
}
/*------ DEBUG LOG END ------*/
if (sslid_service == NULL) {
- PUT_LOG_ERROR(sslid_protomod, LOG_CAT_L7VSD_PROTOCOL,89, "Could not find such service handle's sslid service.");
+ PUT_LOG_ERROR(sslid_protomod, LOG_CAT_L7VSD_PROTOCOL,314, "Could not find such service handle's sslid service.");
return_value = -1;
goto analyze_cldata_out;
}
if (sslid_service->session == NULL) {
- PUT_LOG_ERROR(sslid_protomod, LOG_CAT_L7VSD_PROTOCOL,90,
+ PUT_LOG_ERROR(sslid_protomod, LOG_CAT_L7VSD_PROTOCOL,315,
"Service has NULL pointer session.");
return_value = -1;
goto analyze_cldata_out;
/*-------- DEBUG LOG --------*/
if (sslid_protomod.get_log_level != NULL &&
LOG_LV_DEBUG == sslid_protomod.get_log_level(LOG_CAT_L7VSD_PROTOCOL)) {
- PUT_LOG_DEBUG(sslid_protomod, LOG_CAT_L7VSD_PROTOCOL,107,
+ PUT_LOG_DEBUG(sslid_protomod, LOG_CAT_L7VSD_PROTOCOL,327,
"out_function: int analyze_cldata(struct l7vs_service* srv, struct l7vs_conn* conn, "
"char* request, size_t* len):return_value=%d", return_value);
}
/* check null */
if (sslid_service == NULL) {
- PUT_LOG_ERROR(sslid_protomod, LOG_CAT_L7VSD_PROTOCOL, 0, "Arg(sslid_service) is NULL pointer.");
+ PUT_LOG_ERROR(sslid_protomod, LOG_CAT_L7VSD_PROTOCOL, 294, "Arg(sslid_service) is NULL pointer.");
goto read_replication_data_out;
}
if (sslid_service->session == NULL) {
- PUT_LOG_ERROR(sslid_protomod, LOG_CAT_L7VSD_PROTOCOL, 0, "Arg(sslid_service->session) is NULL pointer.");
+ PUT_LOG_ERROR(sslid_protomod, LOG_CAT_L7VSD_PROTOCOL, 295, "Arg(sslid_service->session) is NULL pointer.");
goto read_replication_data_out;
}
if (srv == NULL) {
- PUT_LOG_ERROR(sslid_protomod, LOG_CAT_L7VSD_PROTOCOL, 0,
+ PUT_LOG_ERROR(sslid_protomod, LOG_CAT_L7VSD_PROTOCOL, 296,
"Service that has handle(%d) is not found.", sslid_service->service_handle);
goto read_replication_data_out;
}
if (srv->lsock == NULL) {
- PUT_LOG_ERROR(sslid_protomod, LOG_CAT_L7VSD_PROTOCOL, 0,
+ PUT_LOG_ERROR(sslid_protomod, LOG_CAT_L7VSD_PROTOCOL, 297,
"Conn of service that has handle(%d) is NULL pointer.", sslid_service->service_handle);
goto read_replication_data_out;
}
used += head->size;
if (data_size * DATA_SIZE < sizeof(struct replication_header) * (SSLID_SERVICE_NUMBER - 1) + used) {
- PUT_LOG_ERROR(sslid_protomod, LOG_CAT_L7VSD_PROTOCOL, 0, "Over replication area.");
+ PUT_LOG_ERROR(sslid_protomod, LOG_CAT_L7VSD_PROTOCOL, 298, "Over replication area.");
goto read_replication_data_out;
}
/* area size check */
if (sizeof(struct replication_header) * (SSLID_SERVICE_NUMBER - 1) +
used + sslid_service->maxlist * sizeof(struct ssl_session) > data_size * DATA_SIZE) {
- PUT_LOG_ERROR(sslid_protomod, LOG_CAT_L7VSD_PROTOCOL, 0,
+ PUT_LOG_ERROR(sslid_protomod, LOG_CAT_L7VSD_PROTOCOL, 299,
"Replication area is full.");
goto read_replication_data_out;
}
LOG_LV_DEBUG == sslid_protomod.get_log_level(LOG_CAT_L7VSD_PROTOCOL)) {
char head_str[DEBUG_STR_LEN];
replication_header_c_str(head_str, pick);
- PUT_LOG_DEBUG(sslid_protomod, LOG_CAT_L7VSD_PROTOCOL, 0,
+ PUT_LOG_DEBUG(sslid_protomod, LOG_CAT_L7VSD_PROTOCOL, 318,
"Write replication area: head=(%s)", head_str);
}
/*------ DEBUG LOG END ------*/
}
}
else {
- PUT_LOG_ERROR(sslid_protomod, LOG_CAT_L7VSD_PROTOCOL, 0,
+ PUT_LOG_ERROR(sslid_protomod, LOG_CAT_L7VSD_PROTOCOL, 300,
"Replication area is full.");
goto read_replication_data_out;
}
LOG_LV_DEBUG == sslid_protomod.get_log_level(LOG_CAT_L7VSD_PROTOCOL)) {
char head_str[DEBUG_STR_LEN];
replication_header_c_str(head_str, head);
- PUT_LOG_DEBUG(sslid_protomod, LOG_CAT_L7VSD_PROTOCOL, 0,
+ PUT_LOG_DEBUG(sslid_protomod, LOG_CAT_L7VSD_PROTOCOL, 319,
"Write replication area: head=(%s)", head_str);
}
/*------ DEBUG LOG END ------*/
/* area size check */
if (sizeof(struct replication_header) * (SSLID_SERVICE_NUMBER - 1) +
used + sslid_service->maxlist * sizeof(struct ssl_session) > data_size * DATA_SIZE) {
- PUT_LOG_ERROR(sslid_protomod, LOG_CAT_L7VSD_PROTOCOL, 0,
+ PUT_LOG_ERROR(sslid_protomod, LOG_CAT_L7VSD_PROTOCOL, 301,
"Replication area is full.");
goto read_replication_data_out;
}
LOG_LV_DEBUG == sslid_protomod.get_log_level(LOG_CAT_L7VSD_PROTOCOL)) {
char head_str[DEBUG_STR_LEN];
replication_header_c_str(head_str, pick);
- PUT_LOG_DEBUG(sslid_protomod, LOG_CAT_L7VSD_PROTOCOL, 0,
+ PUT_LOG_DEBUG(sslid_protomod, LOG_CAT_L7VSD_PROTOCOL, 320,
"Write replication area: head=(%s)", head_str);
}
/*------ DEBUG LOG END ------*/
}
}
else {
- PUT_LOG_ERROR(sslid_protomod, LOG_CAT_L7VSD_PROTOCOL, 0,
+ PUT_LOG_ERROR(sslid_protomod, LOG_CAT_L7VSD_PROTOCOL, 302,
"Replication area is full.");
goto read_replication_data_out;
}
/* check null */
if (sslid_service == NULL) {
- PUT_LOG_ERROR(sslid_protomod, LOG_CAT_L7VSD_PROTOCOL, 0, "Arg(sslid_service) is NULL pointer.");
+ PUT_LOG_ERROR(sslid_protomod, LOG_CAT_L7VSD_PROTOCOL, 303, "Arg(sslid_service) is NULL pointer.");
goto write_replication_data_out;
}
if (sslid_service->session == NULL) {
- PUT_LOG_ERROR(sslid_protomod, LOG_CAT_L7VSD_PROTOCOL, 0, "Arg(sslid_service->session) is NULL pointer.");
+ PUT_LOG_ERROR(sslid_protomod, LOG_CAT_L7VSD_PROTOCOL, 304, "Arg(sslid_service->session) is NULL pointer.");
goto write_replication_data_out;
}
/* no replicate setting */
LOG_LV_DEBUG == sslid_protomod.get_log_level(LOG_CAT_L7VSD_PROTOCOL)) {
char session_str[DEBUG_STR_LEN];
ssl_session_c_str(session_str, (struct ssl_session*) sslid_service->replication_addr);
- PUT_LOG_DEBUG(sslid_protomod, LOG_CAT_L7VSD_PROTOCOL, 0, "Write replication area: session=(%s)",
+ PUT_LOG_DEBUG(sslid_protomod, LOG_CAT_L7VSD_PROTOCOL, 321, "Write replication area: session=(%s)",
session_str);
}
/*------ DEBUG LOG END ------*/