summaryrefslogtreecommitdiffstats
path: root/utils
Commit message (Collapse)AuthorAgeFilesLines
* src: whitespace: Remove trailing whitespace and inconsistent indentsDuncan Roe2021-09-062-6/+6
| | | | | | | | All .c and .h files now have no lines with trailing whitespace. All .c and .h files now indent with tabs followed by <8 spaces. Signed-off-by: Duncan Roe <duncan_roe@optusnet.com.au> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* libipulog: fill in missing packet fields.Jeremy Sowden2021-08-301-0/+7
| | | | | | | | Retrieval of time-stamp, input- and output-device fields had not been implemented in `ipulog_get_packet`. Signed-off-by: Jeremy Sowden <jeremy@azazel.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* build: choose right automake variablesJan Engelhardt2020-12-081-3/+3
| | | | | | | | | -D is a preprocessor flag, needs to go into _CPPFLAGS; -l is a library selection, needs to go into _LDADD/_LIBADD. NETFILTER_CONNTRACK_CFLAGS was missing, too. Signed-off-by: Jan Engelhardt <jengelh@inai.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* utils: nf-log: attaching a conntrack informationKen-ichirou MATSUZAWA2016-11-242-1/+106
| | | | | | | | This patch enables nf-log in utils directory to show conntrack information if libnetfilter_conntrack exists. Signed-off-by: Ken-ichirou MATSUZAWA <chamas@h4.dion.ne.jp> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* nlmsg: add printf function in conjunction with libmnlKen-ichirou MATSUZAWA2015-08-241-0/+7
| | | | | | | | | | | To printf nflog netlink message in XML, nflog_snprintf_xml can be used after converting nflog nlattrs to nflog_data, but we should not have any code that mixes both new and old, which handles nflog_data, APIs. The idea is to deprecate libnfnetlink and any client of that library at some point, that will take quite time though since we'll have to mark those old interfaces as deprecated. Signed-off-by: Ken-ichirou MATSUZAWA <chamas@h4.dion.ne.jp>
* utils: take a example from libmnl and use new functionsKen-ichirou MATSUZAWA2015-08-243-1/+137
| | | | Signed-off-by: Ken-ichirou MATSUZAWA <chamas@h4.dion.ne.jp>
* src: Use stdint types everywhereFelix Janda2015-05-271-3/+3
| | | | | Signed-off-by: Felix Janda <felix.janda@posteo.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* configure: add --without-ipulog option to disable libipulog buildMatthieu Crapet2014-02-121-2/+5
| | | | | | | | 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>
* 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: create a Make_global.am fileJan Engelhardt2010-12-301-1/+1
| | | | | | Just like the other Netfilter libraries. Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* src: remove redundant castsJan Engelhardt2010-12-211-1/+1
| | | | Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* Add .gitignore filesJan Engelhardt2010-10-311-0/+2
|
* build: avoid use of deprecated INCLUDESJan Engelhardt2010-10-301-1/+1
| | | | | | And remove unused $(all_includes). Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
* 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>
* 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>
* 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-141-1/+1
|
* 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
|
* 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-051-33/+22
|
* 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
|
* rename all functions to remove 'nl' (netlink) from prefix/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org2005-11-051-20/+20
|
* rename libnfnetlink_log into libnetfilter_log/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org2005-10-093-7/+4
|
* fix building tools. build them against the local libtool library./C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org2005-09-231-5/+10
|
* - some more work on libipulog compat API [almost finished]/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org2005-08-082-1/+90
| | | | - improt ulog_test.c from libipulog in order to test libipulog compat API
* update nfulnl_test to comply with recent library changes/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org2005-08-071-7/+47
|
* - port protram on top of recent library modifications/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org2005-08-061-18/+95
|
* get rid of autoconf stuff in svn/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org2005-07-301-443/+0
|
* get rid of autoconf crap in svn/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org2005-07-301-1/+1
|
* don't abort when recv returns 0/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org2005-07-301-1/+1
|
* fix detection/usage of kernel include path/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org2005-07-301-1/+1
|
* remove bogus stuff that doesn't belong in svn tree/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org2005-07-281-168/+0
|
* initial version/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org2005-07-284-0/+657