| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
Use `make check' to compile the examples in utils/
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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 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>
|
| |
|
| |
|
| |
|
|
|
|
| |
the nlif_close path)
|
| |
|
|
|
|
| |
makes possible the generation of netlink-based network messages.
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
| |
some systems (reported by Petr Pisar)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
Fix endless loop on unknown netfilter attributes.
This prevents an endless loop when nfnl_check_attributes() sees
an unknown attribute.
|
| |
|
| |
|
| |
|
|
|
|
| |
- remove the nest bit
|
| |
|
|
|
|
|
|
|
| |
According to some feedback received from the following debian packagers:
- ana at debian dot org
- max at rfc2324 dot org
The debian/ dir must not be included in official releases, keeping it under SVN is enough.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
attached patch fixes compilation of libnfnetlink for old glibc versions.
Otherwise "struct iovec" is undefined.
|
|
|
|
|
|
|
|
|
| |
Fix mistake in previous patch:
* install .pc file in /usr/lib/pkgconfig, not pkg-config
* update package timestamp
Signed-off-by: Pierre Chifflier <chifflier@inl.fr>
|
|
|
|
|
|
|
|
|
|
|
| |
The following patch fixes 3 problems with the debian files in the svn
repository:
* the.pc file is not copied during installation
* the version is outdated
* the version in debian/changelog should reflect the number of the
debian packaging, and so lacks a -1
Signed-off-by: Pierre Chifflier <chifflier@inl.fr>
|
| |
|
| |
|
| |
|
|
|
|
| |
- added a test file to utils/iftest.c
|