From a718595e300854453b4c3f1d1ffa18d96b8588f2 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Thu, 26 Oct 1989 10:18:28 +0000 Subject: add support for counting old style requests --- server/subscr.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'server/subscr.c') diff --git a/server/subscr.c b/server/subscr.c index 3a2e271..5c054ca 100644 --- a/server/subscr.c +++ b/server/subscr.c @@ -69,10 +69,12 @@ static char rcsid_subscr_c[] = "$Header$"; #define OLD_ZEPHYR_VERSION "ZEPH0.0" #define OLD_CLIENT_INCOMPSUBS "INCOMP" static void old_compat_subscr_sendlist(); +extern int old_compat_count_subscr; /* counter of old use */ #endif /* OLD_COMPAT */ #ifdef NEW_COMPAT #define NEW_OLD_ZEPHYR_VERSION "ZEPH0.1" static void new_old_compat_subscr_sendlist(); +extern int new_compat_count_subscr; /* counter of old use */ #endif /* NEW_COMPAT */ extern char *re_comp(), *re_conv(), *rindex(), *index(); @@ -796,7 +798,9 @@ struct sockaddr_in *who; struct sockaddr_in send_to_who; register int i; - zdbug((LOG_DEBUG, "new_old_compat_subscr_sendlist")); + new_compat_count_subscr++; + + syslog(LOG_INFO, "new old subscr, %s", inet_ntoa(who->sin_addr)); reply = *notice; reply.z_kind = SERVACK; reply.z_authent_len = 0; /* save some space */ @@ -873,7 +877,9 @@ struct sockaddr_in *who; int packlen, i, found = 0; char **answer = (char **) NULL; - zdbug((LOG_DEBUG, "old_compat_subscr_sendlist")); + old_compat_count_subscr++; + + syslog(LOG_INFO, "old old subscr, %s", inet_ntoa(who->sin_addr)); if (client && client->zct_subs) { /* check authenticity here. The user must be authentic to get -- cgit v1.2.3