Permalink
Browse files

performance and latency improvements to Lock Sucking; use kqueue() wh…

…en supported

git-svn-id: https://sshguard.svn.sourceforge.net/svnroot/sshguard/trunk@197 8a9c3130-423d-464b-8744-2863c99db41f
  • Loading branch information...
mijio
mijio committed May 9, 2010
1 parent 7339a84 commit d2930df810e86ea11823321db5be8ec4555b3ddd
Showing with 309 additions and 45 deletions.
  1. +1 −0 Changes
  2. +1 −1 configure
  3. +1 −1 configure.ac
  4. +1 −1 src/Makefile.am
  5. +1 −2 src/Makefile.in
  6. +3 −0 src/config.h.in
  7. +300 −40 src/sshguard_logsuck.c
  8. +1 −0 src/sshguard_logsuck.h
View
@@ -1,6 +1,7 @@
* 1.5rc3
- fix man page's blacklisting section
- make blacklisting work from first blocking
+ - performance and responsiveness improvements to the Log Sucker
- improve logging
- fix process authentication possibly getting stuck on children
- fix a recognition problem for multilog files
View
@@ -4988,7 +4988,7 @@ cat >>confdefs.h <<_ACEOF
_ACEOF
-for ac_func in gethostbyname inet_ntoa strerror strstr strtol
+for ac_func in gethostbyname inet_ntoa strerror strstr strtol kqueue
do :
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
View
@@ -33,7 +33,7 @@ AC_TYPE_SIZE_T
AC_FUNC_FORK
AC_FUNC_MALLOC
AC_TYPE_SIGNAL
-AC_CHECK_FUNCS([gethostbyname inet_ntoa strerror strstr strtol])
+AC_CHECK_FUNCS([gethostbyname inet_ntoa strerror strstr strtol kqueue])
# Solaris provides these functions in separate libraries
AC_SEARCH_LIBS([socket], [socket])
AC_SEARCH_LIBS([gethostbyname], [nsl])
View
@@ -1,6 +1,6 @@
SUBDIRS = parser fwalls
-AM_CFLAGS=-I. -std=c99 -Wall -D_POSIX_C_SOURCE=200112L
+AM_CFLAGS=-I. -std=c99 -Wall -D_XOPEN_SOURCE #-D_POSIX_C_SOURCE=200112L
if DEBUG
AM_CFLAGS+= -g
View
@@ -204,8 +204,7 @@ top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
SUBDIRS = parser fwalls
-AM_CFLAGS = -I. -std=c99 -Wall -D_POSIX_C_SOURCE=200112L \
- $(am__append_1)
+AM_CFLAGS = -I. -std=c99 -Wall -D_XOPEN_SOURCE $(am__append_1)
sshguard_SOURCES = sshguard.c seekers.c sshguard_whitelist.c sshguard_log.c sshguard_procauth.c sshguard_blacklist.c sshguard_options.c sshguard_logsuck.c simclist.c hash_32a.c
sshguard_LDADD = parser/libparser.a fwalls/libfwall.a
all: config.h
View
@@ -24,6 +24,9 @@
/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H
+/* Define to 1 if you have the `kqueue' function. */
+#undef HAVE_KQUEUE
+
/* Define to 1 if you have the `pthread' library (-lpthread). */
#undef HAVE_LIBPTHREAD
Oops, something went wrong.

0 comments on commit d2930df

Please sign in to comment.