OSDN Git Service

Re-numbering log.
[ultramonkey-l7/ultramonkey-l7-v2.git] / module / protocol / protomod_sslid.c
index 00f259c..d4b9d35 100644 (file)
@@ -608,7 +608,7 @@ analyze_cldata(struct l7vs_service* srv, struct l7vs_conn* conn,
                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)",
@@ -618,22 +618,22 @@ analyze_cldata(struct l7vs_service* srv, struct l7vs_conn* conn,
 
        /* 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;
        }
@@ -646,18 +646,18 @@ analyze_cldata(struct l7vs_service* srv, struct l7vs_conn* conn,
            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;
@@ -667,7 +667,7 @@ 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);
        }
@@ -1425,20 +1425,20 @@ static void l7vs_protomod_sslid_read_replication_data(struct l7vs_sslid_service*
 
        /* 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;
        }
@@ -1454,7 +1454,7 @@ static void l7vs_protomod_sslid_read_replication_data(struct l7vs_sslid_service*
                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;
                }
 
@@ -1480,7 +1480,7 @@ static void l7vs_protomod_sslid_read_replication_data(struct l7vs_sslid_service*
                                /* 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;
                                }
@@ -1499,7 +1499,7 @@ static void l7vs_protomod_sslid_read_replication_data(struct l7vs_sslid_service*
                                            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 ------*/
@@ -1508,7 +1508,7 @@ static void l7vs_protomod_sslid_read_replication_data(struct l7vs_sslid_service*
                                }
                        }
                        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;
                        }
@@ -1524,7 +1524,7 @@ static void l7vs_protomod_sslid_read_replication_data(struct l7vs_sslid_service*
                            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 ------*/
@@ -1536,7 +1536,7 @@ static void l7vs_protomod_sslid_read_replication_data(struct l7vs_sslid_service*
                        /* 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;
                        }
@@ -1554,14 +1554,14 @@ static void l7vs_protomod_sslid_read_replication_data(struct l7vs_sslid_service*
                                    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;
                }
@@ -1598,11 +1598,11 @@ static void l7vs_protomod_sslid_write_replication_data(struct l7vs_sslid_service
 
        /* 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 */
@@ -1619,7 +1619,7 @@ static void l7vs_protomod_sslid_write_replication_data(struct l7vs_sslid_service
            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 ------*/