Skip to content

misc improvements and code cleaning

Eric Leblond netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6build: nfct and nflog can be disabled via configure optionconfigure.ac input/flow/Makefile.am input/packet/Makefile.am +1 more+33 -51 reply
2/6ulogd.conf: Comment library dependant pluginsulogd.conf.in+3 -32 replies
3/6build: add debug configure flagconfigure.ac src/Makefile.am+13 -24 replies
4/6ulogd.conf: add a complex but useful stack exampleulogd.conf.in+5 -20 replies
5/6filter_MARK: code factorization.filter/ulogd_filter_MARK.c+11 -130 replies
6/6ulogd: use snprintf instead of sprintf in printpktfilter/ulogd_filter_PRINTPKT.c include/ulogd/printpkt.h util/printpkt.c+91 -821 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [ULOGD PATCH 0/6] misc improvements and code cleaning

Hi,

This patchset contains some light improvement and some code cleaning.

It starts with some build related fixes. The basic idea is to be able to compile ulogd on a system without libnetfilter_conntrack and/or libnetfilter_log installed:
- build: nfct and nflog can be disabled via configure option
- ulogd.conf: Comment library dependant plugins
Last build related patch adds a debug configure option to be able to activate some debug related features (like being able to use gdb):
- build: add debug configure flag

Next significative patches are two code cleaning patches. The only thing to note is that the second one could have some security implication:
- filter_MARK: code factorization.
- ulogd: use snprintf instead of sprintf in printpkt

If no one has problem with these patches, I will push them to the git repository.

BR,
--
Eric Leblond <[email protected]>