Skip to content

Commit

Permalink
performance and latency improvements to Lock Sucking; use kqueue() wh…
Browse files Browse the repository at this point in the history
…en supported

git-svn-id: https://sshguard.svn.sourceforge.net/svnroot/sshguard/trunk@197 8a9c3130-423d-464b-8744-2863c99db41f
  • Loading branch information
mijio committed May 9, 2010
1 parent 7339a84 commit d2930df
Show file tree
Hide file tree
Showing 8 changed files with 309 additions and 45 deletions.
1 change: 1 addition & 0 deletions Changes
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion configure
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Expand Up @@ -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])
Expand Down
2 changes: 1 addition & 1 deletion src/Makefile.am
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions src/Makefile.in
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions src/config.h.in
Expand Up @@ -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

Expand Down

0 comments on commit d2930df

Please sign in to comment.