Skip to content

ulogd2 patches

Peter Warasin netfilter-devel 1 version Applied

Status from this message: Applied, but I changed the spaces used for intending to tabs.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 5 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/5openlog() to syslog for global ulogd log messagessrc/ulogd.c+1 -01 reply
2/5Dont ntohs() mac_len of ULOG, since it is not in network byte orderinput/packet/ulogd_inppkt_ULOG.c+1 -11 reply
3/5Logs also ipulog_strerror() and strerror() within ULOG plugininput/packet/ulogd_inppkt_ULOG.c+5 -21 reply
4/5Workaround of recvfrom() EAGAIN buginput/packet/ulogd_inppkt_ULOG.c+2 -01 reply
5/5stores the converted syslog parameters set within config fileoutput/ulogd_output_SYSLOG.c+4 -01 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/5] ulogd2 patches

Hi guys

This patchset is against ulogd2 subversion repository.

The actual code in subversion did not work for me with the following stack:
stack=log1:NFLOG,base1:BASE,ifi2:IFINDEX,print1:PRINTPKT,emu1:SYSLOG stack=log2:ULOG,base2:BASE,print1:PRINTPKT,emu2:SYSLOG

The patch set fixes some problems after which ulogd2 works for me with this plugin stack.

Patch #4 is a workaround of the following problem, of which i am not quite sure is really no problem of ulogd2, but i think so:

After every successful received packet coming from the ULOG netlink, namely in the next iteration of ipulog_read() in ulog_read_cb(), ipulog_read() returns -1 and thus logs an error.
This happens because the recvfrom() within ipulog_netlink_recvfrom() fails with EAGAIN, which in reality should'nt, since the select() should only return when packets are present.

I think it is probably this kernel bug:
http://bugzilla.kernel.org/show_bug.cgi?id=5498

I'm not sure if it is really that bug, but i think so, because libipulog had virtually no changes between ulogd1 and ulogd2 and ulogd1 does not have this problem. The only thing which changed is that the netlink socket is now O_NONBLOCK, which IMHO indicates that it must be that kernel bug.

Probably it is already solved with newer kernel versions. I tested on 2.6.22.15

BTW: finally managed to set up quilt correctly, so these patches should now be inline :)

kind regards,
Peter

--