summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* src: introduce new functions independent from libnfnetlinkKen-ichirou MATSUZAWA2015-08-245-3/+172
| | | | | | | | | | | The libnetfilter_log.c file contains the old API, its use is discouraged since it depends on libnfnetlink. The idea is to provide a set of helper functions that we can use in conjunction with libmnl, similar to what we have in libnetfilter_queue/nlmsg.c Signed-off-by: Ken-ichirou MATSUZAWA <chamas@h4.dion.ne.jp>
* build: fix typoKen-ichirou MATSUZAWA2015-08-181-1/+1
| | | | | Signed-off-by: Ken-ichirou MATSUZAWA <chamas@h4.dion.ne.jp> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* src: Use stdint types everywhereFelix Janda2015-05-275-75/+77
| | | | | Signed-off-by: Felix Janda <felix.janda@posteo.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* include: Sync with current kernel headersFelix Janda2015-05-271-26/+25
| | | | | Signed-off-by: Felix Janda <felix.janda@posteo.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* configure: Make it possible to build libipulogFelix Janda2015-05-201-3/+2
| | | | | | | | commit a1b392b4156db984ab2b695a4a70d113f70cb9b8 had unintentionally disabled building of libipulog unconditionally Signed-off-by: Felix Janda <felix.janda@posteo.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* include: Add include needed for integer type definition.Natanael Copa2015-05-151-0/+1
| | | | | | | The sys/types.h is needed for u_int*_t types. Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* configure: add --without-ipulog option to disable libipulog buildMatthieu Crapet2014-02-124-4/+19
| | | | | | | | This is a compat library used for netfilter ULOG target. ULOG only works with IPv4. NFLOG has replaced ULOG. Signed-off-by: Matthieu Crapet <Matthieu.Crapet@ingenico.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* configure: uclinux is also linuxGustavo Zacarias2013-09-171-1/+1
| | | | | Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* Add include needed for integer type definition.Eric Leblond2012-11-041-0/+1
|
* build: resolve automake-1.12 warningsJan Engelhardt2012-10-081-0/+1
| | | | | | | | am/ltlibrary.am: warning: 'libnetfilter_log.la': linking libtool libraries using a non-POSIX archiver requires 'AM_PROG_AR' in 'configure.ac' Signed-off-by: Jan Engelhardt <jengelh@inai.de>
* build: remove unused lines in Makefile.amJan Engelhardt2012-06-241-2/+0
| | | | Signed-off-by: Jan Engelhardt <jengelh@inai.de>
* build: remove unnecessary pkgconfig->config.status dependencyJan Engelhardt2012-06-241-2/+2
| | | | | | The flags obtained from pkgconfig are in essence preprocessor ones. Signed-off-by: Jan Engelhardt <jengelh@inai.de>
* build: bump version to 1.0.1libnetfilter_log-1.0.1Pablo Neira Ayuso2012-01-021-1/+1
| | | | Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* build: disable implicit .tar.gz archive generation and use POSIX modeJan Engelhardt2011-12-171-1/+2
|
* build: use AC_CONFIG_AUX_DIR and stash away toolsJan Engelhardt2011-12-172-6/+2
|
* Update .gitignoreJan Engelhardt2011-12-171-3/+3
| | | | Only ignore these paths if they are a directory.
* build: fix error with automake-1.9Jan Engelhardt2011-08-012-0/+2
| | | | | | | src/Makefile.am: C objects in subdir but "AM_PROG_CC_C_O" not in "configure.ac" Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* build: Linux kernel-style for compilation messagesPablo Neira Ayuso2011-03-151-0/+3
| | | | Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* build: fix `make distcheck'Pablo Neira Ayuso2011-01-061-1/+1
| | | | Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* utils: resolve compiler warningsJan Engelhardt2010-12-302-4/+4
| | | | | | | | | | | | | | | | | | | | make nfulnl_test ulog_test make[1]: Entering directory `/home/jengelh/code/libnetfilter_log/utils' CC nfulnl_test.o nfulnl_test.c: In function "cb": nfulnl_test.c:47:1: warning: no return statement in function returning non-void nfulnl_test.c: In function "main": nfulnl_test.c:102:20: warning: unused variable "nlh" CCLD nfulnl_test CC ulog_test.o ulog_test.c: In function "handle_packet": ulog_test.c:27:9: warning: format "%d" expects type ‘int’, but argument 4 has type ‘size_t’ ulog_test.c: In function "main": ulog_test.c:79:3: warning: suggest parentheses around assignment used as truth value CCLD ulog_test make[1]: Leaving directory `/home/jengelh/code/libnetfilter_log/utils' Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* build: use -Wall across the entire sourceJan Engelhardt2010-12-302-2/+1
| | | | Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* build: create a Make_global.am fileJan Engelhardt2010-12-303-2/+4
| | | | | | Just like the other Netfilter libraries. Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* build: remove unused LIBTOOL_DEPSJan Engelhardt2010-12-301-2/+0
| | | | Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* src: declare non-modified data as constJan Engelhardt2010-12-212-4/+4
| | | | Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* src: remove redundant castsJan Engelhardt2010-12-212-2/+2
| | | | Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* Merge branch 'master' of git://dev.medozas.de/libnetfilter_logPablo Neira Ayuso2010-11-071-2/+5
|\
| * build: use AC_OUTPUTJan Engelhardt2010-10-311-2/+4
| | | | | | | | Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
| * build: default to not building static librariesJan Engelhardt2010-10-311-0/+1
| | | | | | | | Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* | doc: discourage the use of nflog_set_nlbufsiz()Pablo Neira Ayuso2010-11-041-0/+4
|/ | | | | | | | | | | The default buffer size (which is one memory page) provides the best results in terms of performance. For that reason, noone should use nflog_set_nlbufsiz() to set up a higher buffer in the applications (even if this is supported by the nfnetlink_log). Davem spotted this during the Netfilter Workshop 2010. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* Add .gitignore filesJan Engelhardt2010-10-312-0/+22
|
* Remove accidentally-added file "depcomp"Jan Engelhardt2010-10-311-479/+0
| | | | Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* build: set Libs.private for pkgconfig fileJan Engelhardt2010-10-311-0/+1
| | | | | | | Similar to the commit in iptables, add Libs.private to tell about dependencies for static linking. Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* build: no need for error message in PKG_CHECK_MODULESJan Engelhardt2010-10-312-11/+3
| | | | | | | | | | PKG_CHECK_MODULES already produces its own (and more verbose) messsage when a module cannot be found. Mucking around with CFLAGS and LIBS is also not needed since pkgconfig takes care of providing variables, so let's use them in Makefile.am. Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* build: remove -fPIC flagJan Engelhardt2010-10-311-1/+1
| | | | | | libtool automatically adds PIC flags as needed. Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* build: remove statements without effectJan Engelhardt2010-10-311-4/+0
| | | | Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* build: run AC_CANONICAL_HOST onlyJan Engelhardt2010-10-301-2/+2
| | | | | | | | | | There is no need to call AC_CANONICAL_SYSTEM when only AC_CANONICAL_HOST is needed. Also, checking for $target is factually incorrect, since we do not produce object code like a compiler. Use $host, which specifies the triple/quadruple where the compiled program is supposed to run. Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* build: use simpler autoreconf in autogenJan Engelhardt2010-10-301-17/+3
| | | | Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* build: avoid use of deprecated INCLUDESJan Engelhardt2010-10-303-3/+3
| | | | | | And remove unused $(all_includes). Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* build: use modern call syntax for AC_INIT, AM_INIT_AUTOMAKEJan Engelhardt2010-10-302-4/+2
| | | | | | | automake options also need to definitely go into configure.ac, otherwise they only apply to a single directory. Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* build: use autoconf-suggested naming of filesJan Engelhardt2010-10-301-0/+0
| | | | Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* license: upgrade to GPLv2+Pablo Neira Ayuso2010-10-291-1/+1
| | | | | | | | This patch upgrades the license to GPLv2+. I have received an explicit ACK via email from major contributors that are Eric Leblond <eric@inl.fr> and Harald Welte <laforge@netfilter.org>. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* build: bump version to 1.0.0Pablo Neira Ayuso2010-07-151-1/+1
| | | | Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* nfq: fix redundant LIBVERSION definitionlibnetfilter_log-1.0.0Pablo Neira Ayuso2010-07-152-23/+19
| | | | | | | | I accidentally inserted LIBVERSION to Makefile.am but the one used is in src/Makefile.am. This patch removes the previous definition. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org
* build: add LIBVERSION to Makefile.amPablo Neira Ayuso2010-07-151-0/+22
| | | | | | This patch adds LIBVERSION to keep tracking of the library API versioning. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* doc: add libnetfilter_log doxygen documentation and update copyright noticePablo Neira Ayuso2010-07-143-6/+616
| | | | | | | | | This patch adds the libnetfilter_log documentation in doxygen format. I have also added myself to the copyright header in the libnetfilter_log.c file according to my contributions available in the git repository. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* build: add libtool m4 supportPablo Neira Ayuso2010-07-143-0/+5
| | | | | | | | libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.in and libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* nflog: revert previous patchPablo Neira Ayuso2010-07-111-1/+1
| | | | | | This patch reverts 9c3d1b12b2ceafd92336048985fac57f048d6e19 Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* nflog: do not default to NFLOG_XML_HW in nflog_snprintf_xml()Pablo Neira Ayuso2010-07-111-1/+1
| | | | | | | | | | | | If no flags are passed to nflog_snprintf_xml(), we print: <log></log> This is not very useful but, at least, it is a way to show that nflog_snprintf_xml() is working correctly (even if no flags were passed). Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* nflog: remove `0x' from HW protocol in output of nflog_snprintf_xml()Pablo Neira Ayuso2010-07-111-2/+2
| | | | | | This patch removes the prefix `0x' of the HW protocol. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* nflog: fix HW address output in nfq_snprintf_xml()Pablo Neira Ayuso2010-07-111-3/+3
| | | | | | | | | | | | This patch fixes the output of the HW address in XML files: <src>800:800:800:800:800:</src> now it looks fine: <src>0019a917a400</src> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>