ulogd2 patches
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
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | openlog() to syslog for global ulogd log messagessrc/ | +1 | 1 reply | |
| 2/5 | Dont ntohs() mac_len of ULOG, since it is not in network byte orderinput/ | +1 | 1 reply | |
| 3/5 | Logs also ipulog_strerror() and strerror() within ULOG plugininput/ | +5 | 1 reply | |
| 4/5 | Workaround of recvfrom() EAGAIN buginput/ | +2 | 1 reply | |
| 5/5 | stores the converted syslog parameters set within config fileoutput/ | +4 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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
--