summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* build: fix error with automake-1.9Jan Engelhardt2011-08-012-0/+3
| | | | | | | 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>
* nfnl: avoid exit on large packetJan Engelhardt2011-07-301-3/+1
| | | | | | | | Using exit from shared libraries is unwelcome (automated build systems flag it) and one should rather return gracefully. Looking at this particular spot however, while a Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* utils: resolve compiler warningJan Engelhardt2011-07-301-1/+2
| | | | | | iftest.c:36:1: warning: control reaches end of non-void function Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* build: use -Wall across the entire sourceJan Engelhardt2011-07-302-2/+1
| | | | Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* build: remove unused LIBTOOL_DEPSJan Engelhardt2011-07-301-1/+0
| | | | Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* src: BAD_SIZEOFJiri Popelka2011-06-131-2/+2
| | | | | | | | | | | static analysis (analysis based only on compiling of sources, not based on running of binary) of the code revealed the following problem: libnfnetlink.c:481: Taking the size of pointer parameter "nlh" is suspicious. libnfnetlink.c:486: Taking the size of pointer parameter "nlh" is suspicious. Signed-off-by: Jiri Popelka <jpopelka@redhat.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* Merge branch 'master' of git://dev.medozas.de/libnfnetlinkPablo Neira Ayuso2010-12-213-22/+21
|\
| * src: remove redundant castsJan Engelhardt2010-11-093-22/+21
| | | | | | | | Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* | license: upgrade to GPLv2+Pablo Neira Ayuso2010-11-071-0/+5
|/ | | | | | | | | | | | | We have contacted contributors who are: - Harald Welte - Jan Engelhardt - Eric Leblond - Patrick McHardy and happily they agree with the upgrade. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* Remove distro-specific partsJan Engelhardt2010-11-056-69/+0
| | | | | | Distributions keep their own versions anyway. Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* build: default to not building static librariesJan Engelhardt2010-11-051-0/+1
| | | | Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* build: use AC_OUTPUTJan Engelhardt2010-10-311-1/+3
| | | | Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* Add .gitignore filesJan Engelhardt2010-10-303-0/+22
| | | | Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* build: remove -fPIC flagJan Engelhardt2010-10-301-2/+1
| | | | | | libtool automatically adds PIC flags as needed. Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* build: remove statements without effectJan Engelhardt2010-10-301-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 AC_CONFIG_MACRO_DIR as directedJan Engelhardt2010-10-302-1/+3
| | | | | | | | libtoolize: Consider adding "AC_CONFIG_MACRO_DIR([m4])" to configure.ac 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: Jan Engelhardt <jengelh@medozas.de>
* build: use simpler autoreconf in autogenJan Engelhardt2010-10-301-17/+3
| | | | | | | | | Note: the use of -i seems required, otherwise autoreconf barfs about missing tools (depcomp, etc.). Since they are provided in the tarballs as files anyway rather than like previously as symlinks, I do not see a problem using -i. Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* build: avoid use of deprecated INCLUDESJan Engelhardt2010-10-301-1/+1
| | | | | | | | Make_global.am:7: "INCLUDES" is the old name for "AM_CPPFLAGS" (or "*_CPPFLAGS") Also 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-3/+1
| | | | | | | 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>
* iftable: fix wrong handler unregistration on errorPablo Neira Ayuso2010-09-301-1/+1
| | | | | | | | Need to unregister the ifadd_handler in err_unregister instead of unregistering ifdel_handler. Signed-off-by: Andrey Kuzin <kuzinandrey@yandex.ru> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* src: add COPYING file that include licensing termsPablo Neira Ayuso2010-02-261-0/+339
| | | | | | | | libnfnetlink is licensed under GPLv2. Reported-by: Jan Engelhardt <jengelh@medozas.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: Harald Welte <laforge@netfilter.org>
* nfnl: release libnfnetlink 1.0 versionlibnfnetlink-1.0.0Pablo Neira Ayuso2009-06-221-1/+1
| | | | | | | This library has been stable for long time. The main client of libnfnetlink are the libnetfilter_* libraries. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* nfnl: add nfnl_addattr8() functionPablo Neira Ayuso2009-06-112-0/+18
| | | | | | | This patch adds the function nfnl_addattr8() as it has been requested by Jozsef Kadlecsik, he needs it for his Netlink-port of ipset. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* include: add recently added Netlink socket optionsPablo Neira Ayuso2009-06-101-0/+12
| | | | | | | | | | | | | This patch adds the definition of a couple of Netlink socket options that were included in 2.6.30. They are: * NETLINK_BROADCAST_SEND_ERROR * NETLINK_NO_ENOBUFS This patch also includes the definition of SOL_NETLINK which is required by set/getsockopt() that is declared in linux/socket.h. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* nfnl: add nfnl_portid() to get the Netlink portID of a socketPablo Neira Ayuso2009-05-212-0/+11
| | | | | | | This patch adds the new interface nfnl_portid() to retrieve the Netlink portID that has been assigned to a given socket. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* rtnl: fix wrong netlink group bindings in the interface APIPablo Neira Ayuso2009-04-291-2/+1
| | | | | | | | | This patch removes RTMGRP_IPV4_ROUTE and RTMGRP_IPV4_IFADDR which report event notifications about changes in the route and address of interfaces. We are only interested in the interface link status so RTMGRP_LINK is enough. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* nfnl: tag nfnl_talk() and nfnl_listen() as deprecatedlibnfnetlink-0.0.41Pablo Neira Ayuso2009-02-171-7/+7
| | | | | | | | This patch tags nfnl_talk() and nfnl_listen() as deprecated functions. The replacements nfnl_query() and nfnl_process() should be used instead. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* nfnl: allow disabling and enabling sequence trackingPablo Neira Ayuso2009-02-173-5/+38
| | | | | | | | | | | | This patch adds a couple of functions to enable and disable netlink sequence tracking. Since nfqueue goes over a unicast socket, the same channel to receive control messages and packets is used. This leads to race conditions that may trigger sporious out-of-sequence errors while creating queues and receiving high load of packets at the same time. Reported-by: Anton Vazir <anton.vazir@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* configure: bump version to 0.0.40libnfnetlink-0.0.40Pablo Neira Ayuso2009-01-141-1/+1
| | | | Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* iftable: add nlif_get_ifflags to get the network interface flagsPablo Neira Ayuso2009-01-073-1/+42
| | | | | | | | This patch adds the nlif_get_ifflags to get the interface flags. This patch also modifies the example file to display if a network interface is running or not. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* nlif: fix possible re-insertion in the list of interfacesPablo Neira Ayuso2009-01-071-1/+2
| | | | | | | This patch fixes a possible re-insertion of an existing entry in the list of interfaces. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* Suppress iftable_up function which is not used.Eric Leblond2008-12-231-17/+0
| | | | | | Following compilation warning pointed out by Jan Engelhardt, this patch suppresses the iftable_up function which is of no use in this part of libnfnetlink library whom goal is to do ifindex to name resolution.
* 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.39Pablo Neira Ayuso2008-06-271-1/+1
|
* libnfnetlink: mark functions as extern CJan Engelhardt2008-06-241-0/+8
| | | | | | | | | | mark functions as extern C This is needed when #included from C++. Reported-by: Simon <turner25@gmail.com> Signed-off-by: Jan Engelhardt <jengelh@medozas.de> Signed-off-by: Patrick McHardy <kaber@trash.net>
* Aligns buffers to maximum alignment of architecturelibnfnetlink-0.0.39Fabian Hugelshofer2008-06-181-3/+4
| | | | | | | | Aligns buffer to maximum aligment of architecture to make the cast of char pointers to struct pointers more portable. Packet decoding is still broken on particular platforms. Signed-off-by: Fabian Hugelshofer <hugelshofer2006@gmx.ch>
* fix warning, getsockname takes a socklen_t as third parameterlibnfnetlink-0.0.38Pablo Neira Ayuso2008-05-311-1/+1
|
* add missing linux_nfnetlink_compat.hPablo Neira Ayuso2008-05-311-0/+61
|
* update include filesPablo Neira Ayuso2008-05-275-91/+31
|
* major cleanup of index2name infrastructure: use linux list (and fix leak in ↵Pablo Neira Ayuso2008-05-255-97/+816
| | | | the nlif_close path)
* add conditional defition of NLA_F_NESTED for old includespablo2008-05-181-0/+4
|
* recover the nested bit as now it is fully supported in kernel space, this ↵Pablo Neira Ayuso2008-05-162-2/+2
| | | | makes possible the generation of netlink-based network messages.
* The second, deprecated, form of `AM_INIT_AUTOMAKE' has two required/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org2008-04-161-2/+2
| | | | | | | | | arguments: the package and the version number. This form is obsolete because the PACKAGE and VERSION can be obtained from Autoconf's `AC_INIT' macro (which itself has an old and a new form). Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>
* fix nfnl_nfa_addattr_l (reported by Rick Xu)/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org2008-04-152-4/+4
|
* fix minor shadow warning. It seems that the symbol "index" is defined in ↵/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org2008-03-111-1/+1
| | | | some systems (reported by Petr Pisar)
* nfnl_handle must be const in nfnl_rcvbufsizsvn_t_libnfnetlink-0.0.33/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org2008-01-153-3/+4
|
* Introduce nfnl_set_rcv_buffer_size to set the receive buffer size used by /C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org2008-01-133-43/+20
| | | | | | | | | | | | | nfnl_catch. This revision changes the behaviour of nfnl_catch which does not perform a peek-and-resize if the buffer size used by nfnl_recv is too small. The only known client which may be affected by this change is libnetfilter_conntrack. However, this library uses nfnl_catch to get conntrack events which are always much smaller than 4096 bytes (default receive buffer size). This change boosts up performance in the receive path since we do only one recv instead of two.
* Marcus Sundberg <marcus@ingate.com> /C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org2007-08-091-0/+1
| | | | | | | Fix endless loop on unknown netfilter attributes. This prevents an endless loop when nfnl_check_attributes() sees an unknown attribute.