summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* nfnl: add nfnl_addattr8() functionPablo Neira Ayuso2009-06-111-0/+1
| | | | | | | 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-211-0/+1
| | | | | | | 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>
* 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-171-0/+4
| | | | | | | | | | | | 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>
* iftable: add nlif_get_ifflags to get the network interface flagsPablo Neira Ayuso2009-01-071-0/+3
| | | | | | | | 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>
* 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>
* add missing linux_nfnetlink_compat.hPablo Neira Ayuso2008-05-311-0/+61
|
* update include filesPablo Neira Ayuso2008-05-273-90/+16
|
* major cleanup of index2name infrastructure: use linux list (and fix leak in ↵Pablo Neira Ayuso2008-05-252-2/+728
| | | | 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-161-1/+1
| | | | makes possible the generation of netlink-based network messages.
* 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.33origin/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org2008-01-151-1/+2
|
* 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-131-0/+3
| | | | | | | | | | | | | 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.
* - update linux_nfnetlink.h from kernel sources/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org2007-07-282-22/+9
| | | | - remove the nest bit
* remove linux/types.h include/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org2007-06-131-1/+0
|
* revert some slipped through patches/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org2007-04-161-1/+1
|
* prepare conntrack and conntrackd merge: rename conntrack to conntrack-tools/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org2007-04-161-1/+1
|
* partially revert r6738, use linux/types.h instead of sys/types.h/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=pablo/emailAddress=pablo@netfilter.org2007-02-271-0/+1
|
* - Initial commit of index2interface API (Eric Leblond), still work to do/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=pablo/emailAddress=pablo@netfilter.org2007-01-261-0/+19
| | | | - added a test file to utils/iftest.c
* Remove header linux/types.h since it can conflict with type definitions ↵/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=pablo/emailAddress=pablo@netfilter.org2007-01-221-1/+0
| | | | available at sys/types.h
* Introduce several improvements in the library, still backward compatible./C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=pablo/emailAddress=pablo@netfilter.org2006-12-191-2/+38
| | | | | | | | | - add iterator API - add replacements for nfnl_listen and nfnl_talk - fix error handling - add assertions - add documentation - minor cleanups
* add new cthelper subsystem to kernel header file/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org2006-02-131-1/+2
|
* add 16bit attribute functions/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org2006-01-261-0/+2
|
* fix logic for using one socket for multiple subsystems to be compatible with/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org2006-01-261-3/+5
| | | | multiple nfnetlink sockets per process (pid overlap)
* fix nfnl_build_nfa_iovec() to set the attribute values (Andreas Florath)/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org2006-01-231-5/+3
|
* 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-141-16/+11
| | | | | | | | | | | 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.
* update to current kernel header file/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org2005-11-141-3/+5
|
* o It define NETLINK_NETFILTER if it's not defined./C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org2005-11-141-0/+6
| | | | o Kill KERNELDIR in Makefile.am, it's not set anymore. (Pablo Neira)
* - include copy of 'linux/nfnetlink.h' as 'libnfnetlink/linux_nfnetlink.h'/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org2005-11-113-2/+175
| | | | | - remove checks for kernel source, since we don't need that anymore - bump version number to 0.0.11
* add nfnl_attr_present()/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org2005-11-051-0/+3
|
* fix NFNL_HEADSER_LEN calculation (Pablo Neira)/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org2005-10-311-2/+5
|
* - define structure nfnlhdr in libnfnetlink.h/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org2005-10-191-1/+31
| | | | | | | | | - fix a problem with the attributes types. We have to use NFA_TYPE instead of reading from nfa->nfa_type now that your patch to see the highest bit of nfa_type has been pushed forward. - Implement __be_to_cpu64. I haven't found any implementation available at the moment. (Pablo Neira)
* defined aligned_u64/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org2005-09-241-0/+4
|
* add nfnl_get_data() and nfnl_get_pointer_to_data()/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org2005-09-231-0/+14
|
* - more verbose dump_packet/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org2005-08-081-0/+1
| | | | - add new nfnl_recv() function
* add NFNL_HEADER_LEN macro/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org2005-08-071-0/+3
|
* - add nfnl_fd() accessor function/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org2005-08-061-0/+5
| | | | | | | - export nfnl_check_attributes() - fix segfault (nfnlh->cb assignment missing) - memset() the nfattr array in nfnl_parse_attr() - fix endless loop in msg_next()
* add support for callback-based parsing of messages, similar to kernel API/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org2005-08-061-17/+33
|
* make sure include file is in right directory/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org2005-07-302-2/+2
|
* shuffle files to new directory structure/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org2005-07-303-0/+91