summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* nflog: consistent nflog_snprintf_xml() return value with snprintf()Pablo Neira Ayuso2010-07-111-60/+63
| | | | | | | | | | | With this patch, nflog_snprintf_xml() returns the number of characters printed. If the output was truncated, then the return value is the number of characters that would have been written if enough space had been available. This makes nflog_snprintf_xml() consistent with the behaviour of snprintf(). Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* add nflog_snprintf_xml() to output a log in XML formatPablo Neira Ayuso2010-05-252-0/+168
| | | | | | This patch adds a new function to output the packet in XML format. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* fix segfault in example in nflog_get_payload()Pablo Neira Ayuso2010-05-251-2/+2
| | | | | | | | | | | | | | | | | This patch fixes the following segfault while executing the example file in my laptop. ==5635== Process terminating with default action of signal 11 (SIGSEGV) ==5635== Access not within mapped region at address 0x0 ==5635== at 0x403EEB7: nflog_get_payload (libnetfilter_log.c:437) ==5635== by 0x8048D6B: print_pkt (nfulnl_test.c:17) ==5635== by 0x403F5F7: __nflog_rcv_pkt (libnetfilter_log.c:132) ==5635== by 0x418AD8F: __nfnl_handle_msg (libnfnetlink.c:1241) ==5635== by 0x418AE0C: nfnl_handle_packet (libnfnetlink.c:1261) ==5635== by 0x403FC0C: nflog_handle_packet (libnetfilter_log.c:218) ==5635== by 0x8048C8F: main (nfulnl_test.c:110) Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* build: bump version to 0.0.16libnetfilter_log-0.0.16Pablo Neira Ayuso2009-03-061-1/+1
| | | | Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* nflog: replace nfnl_talk by nfnl_query and disable sequence trackingPablo Neira Ayuso2009-02-172-7/+10
| | | | | | | | | | This patch replaces the nfnl_talk() calls by the newer nfnl_query(). This patch also disables netlink sequence tracking by default. Spurious race conditions in the sequence tracking may occur while binding to queues and high load of log messages at the same time. Reported-by: Anton Vazir <anton.vazir@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* Suppress NFULNL_MSG_CONFIG callback registration.Eric Leblond2008-12-301-20/+0
| | | | | | | | It seems there is no NFULNL_MSG_CONFIG message send from kernel space to userspace. Thus the registration of an nfnetlink callback for this type of messages is not necessary. Signed-off-by: Eric Leblond <eric@inl.fr>
* Suppress reference to libnetfilter_queue which is the model of libnetfilter_log.Eric Leblond2008-12-301-7/+7
| | | | | | | | This patch fixes the description of the file was the one of libnetfilter_queue.c and it suppresses indication through out the file that it is a copy of the queue module. Signed-off-by: Eric Leblond <eric@inl.fr>
* Fix minor memory leak in nflog_close().Eric Leblond2008-12-151-1/+3
| | | | | The nflog_handle is allocated in nflog_open(). This patch adds the missing free in nflog_close().
* bump version to 0.0.15libnetfilter_log-0.0.15Pablo Neira Ayuso2008-07-241-1/+1
| | | | Signed-off-by: Pablo Neira Ayuso
* Add parsing function for raw hardware headerEric Leblond2008-07-173-0/+24
| | | | | | | | | | This patch adds support for the parsing of NFULA_HWTYPE, NFULA_HWHEADER, and NFULA_HWLEN part of the NFLOG message. This permits to have a ULOG like behaviour but thanks to NFULA_HWTYPE we will be able to parse the message cleanly in userspace. Signed-off-by: Eric Leblond <eric@inl.fr> Signed-off-by: Patrick McHardy <kaber@trash.net>
* conditional compilation of testsuite utilsPablo Neira Ayuso2008-07-021-1/+1
| | | | | | Use `make check' to compile the examples in utils/ Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* bump version to 0.0.14libnetfilter_log-0.0.14Pablo Neira Ayuso2008-06-271-2/+2
|
* Use union to ensure proper alignmentFabian Hugelshofer2008-06-181-32/+44
| | | | | | | | This patch increases portability, but alignment is still not respected in nflog_get_*() which still leaves libnetfilter_log unusable on particular platforms. Signed-off-by: Fabian Hugelshofer <hugelshofer2006@gmx.ch>
* Add NFULA_GID support/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net2008-04-213-0/+11
|
* [PATCH 2/6] libnetfilter_log pkt-config changes (KOVACS Krisztian ↵/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=kaber/emailAddress=kaber@netfilter.org2006-08-032-4/+12
| | | | <hidden@balabit.hu>)
* only copy include file from kernel directory if 'autogen.sh' is run with ↵/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org2006-02-141-1/+1
| | | | 'distrib' argument
* pkg-config enable all netfilter libraries/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org2006-02-093-1/+19
|
* add support for instance-local and global sequence counters/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org2006-01-263-0/+39
|
* make sure configure fails if libnfnetlink is too old (< 0.0.16)/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org2006-01-141-2/+2
|
* Introduce various API changes throughout the library stack/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org2006-01-144-25/+47
| | | | | | | | | | | 1) make libnfnetlink dynamically allocate it's handles 2) apply that change throughout libnetfilter_* 3) add {nfq,nflog,nfct}_open_nfnl() functions that open the specific subsystem on top of an existing nfnl_handle, which is required for upcoming libnetfilter_conntrack_helper The changes break ABI and API compatibility of libnfnetlink, but don't break ABI or API compatibility of the libnetfilter_* libraries.
* add KERNEL_DIR option to autogen.sh for all new libraries (Krzysztof Oledzki)/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org2005-11-171-2/+2
|
* remove all references to KERNELDIRsvn_t_libnetfilter_log-0.0.12/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org2005-11-143-3/+3
|
* sync userspace header with current kernel file/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org2005-11-141-4/+4
|
* update to 0.0.12/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org2005-11-141-1/+1
|
* This patch add the ability to copy and mangle the kernel headers/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org2005-11-141-0/+35
| | | | | required by libnfnetlink and libnetfilter_[queue|log|conntrack] at autogen.sh stage. (Pablo Neira)
* - use local copy of nfnetlink_log.h instead of kernel include file/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org2005-11-115-46/+99
| | | | - bump version number to 0.0.11
* don't install test programs/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org2005-11-111-1/+1
|
* - add librarry api versioning/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org2005-11-063-8/+20
| | | | - add missing dependency from libipulog to libnetfilter_log
* we have to link against libnfnetlink, otherwise the dependency is missingsvn_t_libnetfilter_log-0.0.10/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org2005-11-051-1/+1
|
* implement accessor functions similar to libnetfilter_queue/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org2005-11-053-35/+113
|
* use nflog_fd() instead of netlink based function/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org2005-11-051-20/+1
|