X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=include%2Fstatserv.h;h=0326a3b885e384db26b83a3dd0da77630b7f50a6;hp=e4669f3919a5abcd06d97212983ab0363fb42470;hb=bf7ee634e855d15e955d06e7b225d2045abd518a;hpb=742b23a913c14e0a4d39fa8f314300fea55c2352 diff --git a/include/statserv.h b/include/statserv.h index e4669f3..0326a3b 100644 --- a/include/statserv.h +++ b/include/statserv.h @@ -24,7 +24,10 @@ * OF THIS SOFTWARE. * * $Log: statserv.h,v $ - * Revision 1.14 1999-02-02 13:57:32 adam + * Revision 1.15 1999-04-16 14:45:55 adam + * Added interface for tcpd wrapper for access control. + * + * Revision 1.14 1999/02/02 13:57:32 adam * Uses preprocessor define WIN32 instead of WINDOWS to build code * for Microsoft WIN32. * @@ -81,6 +84,7 @@ #define STATSERVER_H #include +#include #include #ifdef __cplusplus @@ -101,6 +105,8 @@ typedef struct statserv_options_block char setuid[ODR_MAXNAME+1]; /* setuid to this user after binding */ void (*pre_init)(struct statserv_options_block *p); int (*options_func)(int argc, char **argv); + int (*check_ip)(void *cd, const char *addr, int len, int type); + char daemon_name[128]; int inetd; /* Do we use the inet deamon or not */ #ifdef WIN32 @@ -119,6 +125,8 @@ void statserv_closedown(void); statserv_options_block *statserv_getcontrol(void); void statserv_setcontrol(statserv_options_block *block); +int check_ip_tcpd(void *cd, const char *addr, int len, int type); + #ifdef __cplusplus } #endif