Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Marius Tomaschewski <mt@suse.de> | /C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org | 2007-06-19 | 1 | -39/+94 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - included inttypes.h and changed to use PRId64/PRIu64 format definitions to use correct number of l's on all platforms (WORDSIZE depending). - added str flag to the struct _field - it is set in the mysql_get_columns function when the IP-Addr columns in the database are non-numeric/string and used to insert proper converted value. See also the --with-mysql-log-ip-as-string configure option and doc dir. - changed to use snprintf instead of sprintf to take care about the allocated buffer length: STMT_ADD macro - added global stmt_siz variable for the allocated size of the stmt buffer (set in mysql_createstmt, used in mysql_output; obsoletes local size variable in mysql_createstmt). - Added guard at the beginning of mysql_output() triggering reconnect if stmt_val == NULL. - Fixed to check in mysql_output() if the buffer contains enough place for mysql_*escape_string calls -- see mysql documentation. - Fixed to close the old db handle before reconnect is initiated on failure of mysql_real_query() in mysql_output. - Increased size of allocated stmt buffer in mysql_createstmt() to +1. - Fixed strncpy calls in mysql_createstmt and mysql_get_columns; use ULOGD_MAX_KEYLEN-1, not ULOGD_MAX_KEYLEN and terminate the buffer explicitelly after (in case the source string was longer / not term.). - Fixed mysql_open_db() to close db handle after connect failure. - Fixed _mysql_init_db() to close db handle after mysql_get_columns failure. - Fixed _mysql_fini to call mysql_close(dbh) only if dbh not NULL and reset it to NULL after. | ||||
* | fix wrong snprintf return value checking: never returns -1 | /C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org | 2007-06-09 | 1 | -1/+1 |
| | |||||
* | Patches from Marius Tomaschewski <mt@suse.de>: | /C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org | 2007-05-28 | 7 | -15/+34 |
| | | | | | | | | | - Fixed sigterm_handler to close logfile and then call output_plugin->fini. The output_plugin->fini function may still use the logger (e.g. sqlite3 does), what causes a SEGV (really happens in case of sqlite3 db init error - as far as I remember) - Changed sighup_handler_print to not to call exit(2) on reopen failure, but try to reopen and fallback to continue using old descriptor on failure. - Fixed mac output in ulogd_BASE.c - Added explicit termination of the hostname buffer: "[...] if namelen is an insufficient length to hold the host name, then the returned name is truncated and it is unspecified whether the returned name is null-terminated. [...]" as SUSv2 specifies. - Added to print "\n" after ULOGD_RET_NONE type as well after an unspecified type. See example above at extensions/ulogd_BASE.c. - Fixed to set the '\0' at the end and not behind the buffer. | ||||
* | [PATCH]: ulogd fix for kernel 64bits/userspace 32bits system (Eric Leblond) | /C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=kaber/emailAddress=kaber@netfilter.org | 2006-10-13 | 4 | -3/+82 |
| | |||||
* | add Changes for 1.24 | /C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org | 2006-01-25 | 1 | -0/+11 |
| | |||||
* | fix loglevel config parsing | /C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org | 2006-01-25 | 1 | -2/+2 |
| | |||||
* | fix printing of "PROTO=XX" where XX != (TCP,UDP,ICMP,ESP) | /C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org | 2006-01-25 | 1 | -2/+2 |
| | |||||
* | Fix memory leak in pgsql output, fix gcc-2.95 compilation (John Hohm) | /C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org | 2006-01-12 | 1 | -1/+3 |
| | |||||
* | use pg_config and mysql_config programs in configure script | laforge | 2005-09-24 | 1 | -58/+15 |
| | |||||
* | fix typo | laforge | 2005-09-24 | 1 | -1/+1 |
| | |||||
* | pgsql has uint as default, so make the table definition correspond to that | laforge | 2005-09-24 | 1 | -4/+4 |
| | |||||
* | some further SQLITE3 fixes from the debian package | laforge | 2005-09-24 | 1 | -1/+2 |
| | |||||
* | ulogd used to log into the wrong columnt (off by one error). | laforge | 2005-09-23 | 1 | -1/+1 |
| | | | | (Vladimir Mosgalin) (Closes: #372) | ||||
* | Fix ulogd_PCAP on systems where sizeo(struct timeval) != 8 (Chris Humbert) ↵ | laforge | 2005-09-23 | 1 | -3/+51 |
| | | | | (Closes: #360) | ||||
* | add lib64 support to sqlite3 | laforge | 2005-09-23 | 1 | -0/+12 |
| | |||||
* | Today we have had to reboot our firewall and due to a loose crossover | laforge | 2005-08-01 | 1 | -1/+10 |
| | | | | | | | | | | | | | | cable (sigh) between the firewall and the logger machine, ulogd was unable to connect to the mysql server. That resulted effectively a hang in the boot process: being unable to connect mysql_real_connect did not return (or the socket timeout was so long I was unable to wait out), ulogd could not reach the point to fork and init could not start the daemons, processes following ulogd. The attached simple patch adds the connect_timeout parameter to the MYSQL section and calls mysql_option when connect_timeout is set. (Jozsef Kadlecsik) | ||||
* | lots of spelling and grammar fixes | laforge | 2005-07-12 | 1 | -38/+50 |
| | |||||
* | add HTML | laforge | 2005-06-16 | 1 | -0/+421 |
| | |||||
* | fix typo | laforge | 2005-05-29 | 1 | -1/+1 |
| | |||||
* | add 'reconnect' option in case mysql server goes down at some point | laforge | 2005-05-29 | 1 | -18/+83 |
| | |||||
* | prevent two messages from being printed at system startup (Marius Tomaschewski) | laforge | 2005-05-04 | 1 | -43/+41 |
| | |||||
* | fix some warnings (Marius Tomaschewski) | laforge | 2005-05-04 | 1 | -6/+6 |
| | |||||
* | use socklen_t (Marius Tomaschewski) | laforge | 2005-05-04 | 1 | -3/+4 |
| | |||||
* | add 'lib64' to search paths (Marius Tomaschewski) | laforge | 2005-05-04 | 1 | -2/+18 |
| | |||||
* | logfile is not extern (Marius Tomaschewski) | laforge | 2005-05-04 | 1 | -3/+1 |
| | |||||
* | add missing 'else' preventing syslog from working | laforge | 2005-04-18 | 1 | -1/+1 |
| | |||||
* | bump version number to 1.23 | laforge | 2005-04-18 | 3 | -5/+8 |
| | |||||
* | add syslog logging (not for packets, but ulogd logfile) | laforge | 2005-04-18 | 2 | -20/+56 |
| | |||||
* | fix typos and url | laforge | 2005-04-18 | 1 | -3/+3 |
| | |||||
* | make it compile again (Kirby Shabaga) | laforge | 2005-03-11 | 1 | -4/+4 |
| | |||||
* | release of version 1.22 coming up | laforge | 2005-03-07 | 4 | -4/+8 |
| | |||||
* | postgresql schema support (Bob Hockney) | laforge | 2005-02-19 | 2 | -6/+65 |
| | |||||
* | make configure --prefix work (Bob Hockney) | laforge | 2005-02-19 | 1 | -1/+1 |
| | |||||
* | Fix endless loop (Jani Averbach) | laforge | 2005-02-17 | 1 | -1/+1 |
| | |||||
* | bump vesion to 1.21 | laforge | 2005-02-16 | 1 | -1/+1 |
| | |||||
* | various --ip-as-string fixes | laforge | 2005-02-16 | 3 | -5/+5 |
| | |||||
* | bump version number | laforge | 2005-02-16 | 2 | -1/+5 |
| | |||||
* | separate sub-packages for sqlite3 and pcap | laforge | 2005-02-16 | 1 | -4/+40 |
| | |||||
* | fix log-ip-as-string on x86_64 (Javi Averbach) | laforge | 2005-02-16 | 3 | -3/+15 |
| | |||||
* | apply C99 initializers fix (Roberto Nibali) | laforge | 2005-02-14 | 3 | -6/+6 |
| | |||||
* | build documentation before release tarball | laforge | 2005-02-12 | 1 | -1/+5 |
| | |||||
* | fix build magic | laforge | 2005-02-12 | 1 | -8/+4 |
| | |||||
* | 1.20 coming up | laforge | 2005-02-12 | 1 | -2/+2 |
| | |||||
* | fix up pgsql module after latest changes (typos, etc.) | laforge | 2005-02-12 | 1 | -4/+6 |
| | |||||
* | finalize changelog for 1.20 | laforge | 2005-02-12 | 1 | -1/+2 |
| | |||||
* | use c99 initializers | laforge | 2005-02-12 | 3 | -119/+245 |
| | |||||
* | use c99 initializers, move logefile parsing to correct function | laforge | 2005-02-12 | 1 | -11/+17 |
| | |||||
* | fix coding style, use c99 initializers, hostname ends with first '.' in name | laforge | 2005-02-12 | 1 | -34/+35 |
| | |||||
* | fix potential buffer overflow | laforge | 2005-02-12 | 1 | -4/+4 |
| | |||||
* | Re-Adding SIGTERM handler that was lost in Version 671 (Ben La Monica) | laforge | 2005-02-11 | 1 | -0/+1 |
| |