From 316782ca26751a63b4f1afe72521f0e5a3c9049c Mon Sep 17 00:00:00 2001 From: David McCreedy Date: Sat, 9 Mar 2002 06:25:02 +0000 Subject: [PATCH] Add TPF Operating System-specific code for Network Services Database msg counts. 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 | 11 +++++++++++ src/os/tpf/os.c | 4 ++++ 2 files changed, 15 insertions(+) diff --git a/src/main/http_main.c b/src/main/http_main.c index 153a7a89ed3..0373de77d86 100644 --- a/src/main/http_main.c +++ b/src/main/http_main.c @@ -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; diff --git a/src/os/tpf/os.c b/src/os/tpf/os.c index e8af1031bdd..cbfa3d91c29 100644 --- a/src/os/tpf/os.c +++ b/src/os/tpf/os.c @@ -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 } -- 2.47.2