Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | build: use pkg-config or mysql_config for libmysqlclient | Jeremy Sowden | 2022-01-11 | 1 | -2/+2 |
| | | | | | | | | | Recent versions of mariadb and mysql support pkg-config. Older versions provide a mysql_config script. Use pkg-config if available, otherwise fall back to mysql_config. Signed-off-by: Jeremy Sowden <jeremy@azazel.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> | ||||
* | output: MYSQL: improve mapping of DB columns to input-keys | Jeremy Sowden | 2021-12-06 | 1 | -7/+7 |
| | | | | | | | | | | | | | | | | | | | | | | Currently, we copy the column-name to a buffer, iterate over it to replace the underscores with full-stops, using `strchr` from the start of the buffer on each iteration, then copy the buffer to the input-key's `name` member. Apart from the inefficiency, `strncpy` is used to do the copies, which leads gcc to complain: ulogd_output_MYSQL.c:149:17: warning: `strncpy` output may be truncated copying 31 bytes from a string of length 31 Furthermore, the buffer is not initialized, which means that there is also a possible buffer overrun if the column-name is too long, since `strncpy` will not append a NUL. Instead, copy the column-name directly to the input-key using `snprintf`, and run `strchr` from the last underscore on each iteration. Signed-off-by: Jeremy Sowden <jeremy@azazel.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> | ||||
* | Replace malloc+memset with calloc | Jeremy Sowden | 2021-11-30 | 1 | -5/+1 |
| | | | | | | | | There are a number of places where we `malloc` some memory and then `memset` it to zero. Use `calloc` instead. Signed-off-by: Jeremy Sowden <jeremy@azazel.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> | ||||
* | build: skip sub-directories containing disabled plugins | Jeremy Sowden | 2021-11-15 | 1 | -4/+0 |
| | | | | | | | | | | | | | | | Currently, make enters all sub-directories containing source-code, even if they only contain optional targets which are not configured to be built. Instead, change the Makefiles so that the sub-directories are optional, rather than the targets. Group sub-directory definitions consistently at the top of the Makefiles that contain them. Trim a few leading and trailing blank lines. Signed-off-by: Jeremy Sowden <jeremy@azazel.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> | ||||
* | build: add Make_global.am for common flags | Jeremy Sowden | 2021-11-15 | 1 | -2/+3 |
| | | | | | | | | | | Move `${regular_CFLAGS}` from configure.ac to Make_global.am, renaming it to `AM_CFLAGS`. Add `AM_CPPFGLAGS` to include `$(top_srcdir)/include`. Include the new file in the Makefiles that require it. Signed-off-by: Jeremy Sowden <jeremy@azazel.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> | ||||
* | Use stdint types everywhere | Felix Janda | 2015-06-26 | 1 | -1/+1 |
| | | | | Signed-off-by: Felix Janda <felix.janda@posteo.de> | ||||
* | mysql: add sanity checking | Eric Leblond | 2013-04-20 | 1 | -1/+3 |
| | | | | Nullify mysql handler at deinit. | ||||
* | Get rid of SVN tag in comment. | Eric Leblond | 2013-01-18 | 1 | -2/+0 |
| | | | | This patch also update some copyright and licence declaration. | ||||
* | src: fix version that -V displays | Pablo Neira Ayuso | 2012-08-03 | 1 | -1/+1 |
| | | | | | | | It was wrong, use VERSION constant which uses the version information available in configure.ac. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> | ||||
* | build: use pkglibdir instead of pkglibexecdir for automake | Björn Lässig | 2012-05-18 | 1 | -1/+1 |
| | | | | | | | | | | | This fixes the following problem while running `autoreconf -fi` `pkglibexecdir' is not a legitimate directory for `LTLIBRARIES' variable `ulogd_filter_PRINTPKT_la_SOURCES' is defined but no program or library has `ulogd_filter_PRINTPKT_la' as canonical name (possible typo) Signed-off-by: Björn Lässig <laessig@bitformer.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> | ||||
* | build: use appropriate location for program modules | Jan Engelhardt | 2011-02-01 | 1 | -1/+1 |
| | | | | | | | Modules - since they are dependent on the executable - generally go to libexec/. Signed-off-by: Jan Engelhardt <jengelh@medozas.de> | ||||
* | build: avoid use of LIBS variable | Jan Engelhardt | 2011-02-01 | 1 | -1/+1 |
| | | | | | | | The variable contains global libraries linked into every possible object, which is unwanted. Clean up things. Signed-off-by: Jan Engelhardt <jengelh@medozas.de> | ||||
* | build: propagate global CFLAGS | Jan Engelhardt | 2010-11-05 | 1 | -0/+1 |
| | | | | | | | | | We must not override CFLAGS, because that will break when the user overrides CFLAGS again at make time (which he is entitled to). So, name our CFLAGS regular_CFLAGS, and also include that across all Makefiles so that they are actually uesd for all the code. Signed-off-by: Jan Engelhardt <jengelh@medozas.de> | ||||
* | build: remove unused $(all_includes) | Jan Engelhardt | 2010-11-05 | 1 | -1/+1 |
| | | | | Signed-off-by: Jan Engelhardt <jengelh@medozas.de> | ||||
* | Replace INCLUDES by AM_CPPFLAGS in Makefile.am. | Eric Leblond | 2009-01-22 | 1 | -1/+1 |
| | | | | | This patch fixes autotools warning about deprecated usage of INCLUDES in Makefile.am. | ||||
* | build: use -avoid-version for modules | Jan Engelhardt | 2009-01-20 | 1 | -1/+1 |
| | | | | | | | The modules are pretty much bound to ulogd, and it does not seem to make sense to specially version these. Signed-off-by: Jan Engelhardt <jengelh@medozas.de> | ||||
* | cleanup: fix warning due to lack of parenthesis | Eric Leblond | 2008-07-31 | 1 | -1/+1 |
| | | | | | | | Fix gcc warning related to the lack of parenthesis. Signed-off-by: Eric Leblond <eric@inl.fr> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> | ||||
* | cleanup: fix gcc warnings | Eric Leblond | 2008-07-29 | 1 | -2/+0 |
| | | | | | | | | | This patch fixes some gcc warnings: * Unused variables * Functions with wrong return (or without return) Signed-off-by: Eric Leblond <eric@inl.fr> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> | ||||
* | From: Pierre Chifflier <chifflier@inl.fr> | /C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org | 2008-02-03 | 1 | -0/+5 |
| | | | | | Change from procedure to function in mysql schema adds the need to free MySQL result after request. | ||||
* | From: Eric Leblond <eric@inl.fr> | /C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org | 2008-02-03 | 1 | -0/+14 |
| | | | | MySQL client library does not reconnect automatically since 5.0. | ||||
* | use correct vallue for db_ce (Christian Hentschel) | /C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org | 2006-01-13 | 1 | -1/+1 |
| | |||||
* | fix mysql output typo (Christian Hentschel) | /C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org | 2006-01-12 | 1 | -1/+1 |
| | |||||
* | add conditional compilation of mysql, pgsql, sqlite3 and pcap | /C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org | 2006-01-07 | 1 | -2/+4 |
| | |||||
* | remove strerror function of db helpers and move error printing | /C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org | 2006-01-07 | 1 | -10/+8 |
| | | | | directly into db plugins | ||||
* | introduce acinclude.m4 with macros for mysql,pgsql,sqlite3 and pcap detection. | /C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org | 2006-01-07 | 1 | -2/+2 |
| | |||||
* | don't "#include" a .c file but rather compile db.c on it's own | /C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org | 2005-12-15 | 2 | -8/+7 |
| | |||||
* | convert mysql to new DB api | /C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org | 2005-12-08 | 1 | -371/+62 |
| | |||||
* | further cleanup | /C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org | 2005-12-08 | 1 | -13/+16 |
| | |||||
* | re-enable the reconnect support | /C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org | 2005-12-08 | 1 | -28/+33 |
| | |||||
* | more verbose error reporting | /C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org | 2005-12-08 | 1 | -19/+29 |
| | |||||
* | implement reparse/reconnect on sighup | /C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org | 2005-12-08 | 1 | -6/+28 |
| | |||||
* | fixes | /C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org | 2005-11-29 | 2 | -25/+25 |
| | |||||
* | add missing memset after malloc (Christian Hentschel) | /C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org | 2005-11-24 | 1 | -0/+3 |
| | |||||
* | we forgot to set num_keys() correctly. | laforge | 2005-11-24 | 1 | -2/+6 |
| | |||||
* | remove bogus comment (code was fixed, comment not removed) | laforge | 2005-11-24 | 1 | -2/+2 |
| | |||||
* | finally fix up MYSQL module to build correctly | laforge | 2005-11-20 | 1 | -18/+18 |
| | |||||
* | some plugins support packet and flow data types | laforge | 2005-11-20 | 1 | -1/+1 |
| | |||||
* | fix dozens of compiler warnings/errors. one step closer to compilation. | laforge | 2005-11-20 | 1 | -87/+99 |
| | |||||
* | introduce version field for plugins, refuse loading plugins with different ↵ | laforge | 2005-11-05 | 1 | -0/+1 |
| | | | | version | ||||
* | add automake makefile | laforge | 2005-10-15 | 2 | -30/+9 |
| | |||||
* | semi-complete mysql output plugin port | laforge | 2005-10-15 | 2 | -454/+525 |
| | |||||
* | merge changes from 1.x | laforge | 2005-10-08 | 1 | -61/+143 |
| | |||||
* | intermediate development snapshot | laforge | 2004-10-10 | 1 | -28/+35 |
| | |||||
* | start to reorganize tree for new architecture | laforge | 2004-07-23 | 2 | -0/+395 |