]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Add TPF Operating System-specific code for Network Services Database msg counts.
authorDavid McCreedy <mccreedy@apache.org>
Sat, 9 Mar 2002 06:25:02 +0000 (06:25 +0000)
committerDavid McCreedy <mccreedy@apache.org>
Sat, 9 Mar 2002 06:25:02 +0000 (06:25 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@93809 13f79535-47bb-0310-9956-ffa450edef68

src/main/http_main.c
src/os/tpf/os.c

index 153a7a89ed30fb6951fd5e827fabe76594870892..0373de77d86fa16d93a8d3ca5f0c776e486be01e 100644 (file)
@@ -4571,6 +4571,17 @@ static void child_main(int child_num_arg)
            if(ap_extended_status)
                increment_counts(my_child_num, r);
 
+#ifdef TPF_HAVE_NSD
+            /* Update the TPF Network Services Database message counters */
+            tpf_tcpip_message_cnt(NSDB_INPUT_CNT,
+                ((struct sockaddr_in *)&sa_server)->sin_port,
+                NSDB_TCP_S, 1);
+
+            tpf_tcpip_message_cnt(NSDB_OUTPUT_CNT,
+                ((struct sockaddr_in *)&sa_server)->sin_port,
+                NSDB_TCP_S, 1);
+#endif /* TPF_HAVE_NSD */
+
            if (!current_conn->keepalive || current_conn->aborted)
                break;
 
index e8af1031bdd81334e66e45f64325d106502f2158..cbfa3d91c29e648ba24e464d20a86c21fa35fbab 100644 (file)
@@ -791,5 +791,9 @@ void show_os_specific_compile_settings(void)
 #ifdef TPF_NO_SAWNC
     printf(" -D TPF_NO_SAWNC\n"); 
 #endif
+#ifdef TPF_HAVE_NSD
+    printf(" -D TPF_HAVE_NSD\n");
+#endif
 
 }