Skip to content

Misc work over Pablo's patchset

Eric Leblond netfilter-devel 1 version Applied

Status from this message: Applied. Please add a short description (even if it is the same of the

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 9 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/9Set timestamp in NFLOG for INPUT and OUTPUT.input/packet/ulogd_inppkt_NFLOG.c+8 -71 reply
2/9Fill the maximum of timestamp.input/flow/ulogd_inpflow_NFCT.c+42 -151 reply
3/9Sync PGSQL schema with NFCT.doc/pgsql-ulogd2.sql+14 -141 reply
4/9Add INSERT_OR_REPLACE_CT pgsql function.doc/pgsql-ulogd2.sql+61 -01 reply
5/9Fix crash IP2BIN and IP2STR due to ui128 type introduction.filter/ulogd_filter_IP2BIN.c filter/ulogd_filter_IP2STR.c+2 -21 reply
6/9Add some missing files to git repository.Rules.make.in ulogd.8+107 -01 reply
7/9Add a lacking newline in buffer overrun messages.input/flow/ulogd_inpflow_NFCT.c input/packet/ulogd_inppkt_NFLOG.c+4 -41 reply
8/9Only use overrun handling if local hash is used.input/flow/ulogd_inpflow_NFCT.c+28 -192 replies
9/9Update config file to be in sync with latest modifications.ulogd.conf.in+36 -01 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/9] Misc work over Pablo's patchset

Hello,

This patchset contains some modifications over latest Pablo's patchset as well as fix related to the last git migration or PGSQL improvement. This last part is a rework of my latest patchset.

I've tested Pablo's patchset and it seems to behave well (NFCT is working, NFLOG handling of stress is far better when using socket related options). The only problem was related to a crash in the module IP2STR due to the introduction of ui128 type.

This is fixed by the patch:
* Fix crash IP2BIN and IP2STR due to ui128 type introduction.

I've also done a slight modification of overrun related messages to add a new line:
* Add a lacking newline in buffer overrun messages.

The main modification is brought by the patch:
* Only use overrun handling if local hash is used.
This modify the behaviour of NFCT overrrun handling to only dump the conntrack in case of overrun if the local hash is used. The goal of this modification is to avoid to flood output modules which are not able to interpret well this type of dump.

Next patches aim at adding timestamp to some messages. NFCT without local hash did not fill the timestamp it was able to fill. On NFLOG side, INPUT and OUTPUT packet were logged without timestamp. The patch make ulogd compute the timestamp:
* Set timestamp in NFLOG for INPUT and OUTPUT.
* Fill the maximum of timestamp.

The next patches improve PGSQL support:
* Sync PGSQL schema with NFCT.
* Add INSERT_OR_REPLACE_CT pgsql function.
It is now possible to use PGSQL for NFCT in non hash mode. This can be used to have a SQL duplication of the connection tracking table.

Switching to git seems to have cause the lost of some files. The following patch recover them:
* Add some missing files to git repository.

Last patch brings the configuration file in sync with latest change:
* Update config file to be in sync with latest modifications.

Here's the global stats:

 Rules.make.in                     |   43 +++++++++++++++
 doc/pgsql-ulogd2.sql              |   89 +++++++++++++++++++++++++-----
 filter/ulogd_filter_IP2BIN.c      |    2 +-
 filter/ulogd_filter_IP2STR.c      |    2 +-
 input/flow/ulogd_inpflow_NFCT.c   |  108 ++++++++++++++++++++++++------------
 input/packet/ulogd_inppkt_NFLOG.c |   19 ++++---
 ulogd.8                           |   64 ++++++++++++++++++++++
 ulogd.conf.in                     |   36 ++++++++++++
 8 files changed, 302 insertions(+), 61 deletions(-)

BR,
--
Eric Leblond
INL: http://www.inl.fr/
NuFW: http://www.nufw.org/