Pierre Habouzit [Sun, 11 Jan 2009 18:33:00 +0000 (19:33 +0100)]
Add some rules to deal with documentation generation.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sun, 11 Jan 2009 16:07:47 +0000 (17:07 +0100)]
Fix the copyright and licensing stuff.
The REGENTS have nothing to do with us.
Also copy the copyright statements also, or this whole business would be
moot.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Florent Bruneau [Fri, 9 Jan 2009 09:38:45 +0000 (10:38 +0100)]
Fix typo.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Sat, 20 Dec 2008 20:18:03 +0000 (21:18 +0100)]
Disable binary search speed test.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Tue, 11 Nov 2008 14:42:34 +0000 (15:42 +0100)]
pfixtools 0.5.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Tue, 11 Nov 2008 14:21:20 +0000 (15:21 +0100)]
Fix build on 64bits.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Tue, 11 Nov 2008 12:37:53 +0000 (13:37 +0100)]
Compare query_format and snprintf performances.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Tue, 11 Nov 2008 11:25:41 +0000 (12:25 +0100)]
Avoid useless strlen, faster query_format.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Mon, 10 Nov 2008 23:47:22 +0000 (00:47 +0100)]
Update ChangeLog
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Mon, 10 Nov 2008 23:46:23 +0000 (00:46 +0100)]
Add log_format configuration variable.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Mon, 10 Nov 2008 22:43:34 +0000 (23:43 +0100)]
Cleanup start/refresh.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Mon, 10 Nov 2008 21:55:14 +0000 (22:55 +0100)]
Update ChangeLog
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Mon, 10 Nov 2008 21:47:08 +0000 (22:47 +0100)]
Avoid error when running the tests twice.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Mon, 10 Nov 2008 21:44:33 +0000 (22:44 +0100)]
Add new option 'cleanup_period' to the greylister.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Mon, 10 Nov 2008 21:33:44 +0000 (22:33 +0100)]
Use resources for the greylister too.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Mon, 10 Nov 2008 20:38:25 +0000 (21:38 +0100)]
Reload strlist and iplist resource-files only when needed.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Mon, 10 Nov 2008 17:11:51 +0000 (18:11 +0100)]
Add 'resource' keeper.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Mon, 10 Nov 2008 10:47:04 +0000 (11:47 +0100)]
Silent check-conf in case of success.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Sun, 9 Nov 2008 21:55:34 +0000 (22:55 +0100)]
Better initd example.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Sun, 9 Nov 2008 21:32:30 +0000 (22:32 +0100)]
Cleanup configuration parser, add 'check-conf' option.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Nicolas Aupetit [Sun, 9 Nov 2008 10:49:23 +0000 (21:49 +1100)]
Fix /bin path not created in Makefile
Florent Bruneau [Sun, 9 Nov 2008 15:01:22 +0000 (16:01 +0100)]
A bit of cleanup of the array API.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Thu, 6 Nov 2008 22:44:01 +0000 (23:44 +0100)]
Readable code is much better.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Thu, 6 Nov 2008 22:38:07 +0000 (23:38 +0100)]
More readable code.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Thu, 6 Nov 2008 20:50:47 +0000 (21:50 +0100)]
Update ChangeLog.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Thu, 6 Nov 2008 13:13:34 +0000 (14:13 +0100)]
Update tests.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Thu, 6 Nov 2008 12:56:15 +0000 (13:56 +0100)]
Fix build of the trie.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Sat, 1 Nov 2008 14:50:37 +0000 (15:50 +0100)]
Fix compilation of rbl test.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Pierre Habouzit [Sun, 19 Oct 2008 14:42:18 +0000 (16:42 +0200)]
keep ipv6 out from the loop
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Sun, 19 Oct 2008 14:32:52 +0000 (16:32 +0200)]
strict aliasing generates too many bugs
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Florent Bruneau [Sat, 18 Oct 2008 20:11:27 +0000 (22:11 +0200)]
Exclude -Wredundant-decls and -Wshadow only when compiling server.c.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Sat, 18 Oct 2008 11:18:06 +0000 (13:18 +0200)]
server_release didn't clear the buffers.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Fri, 17 Oct 2008 21:01:32 +0000 (23:01 +0200)]
Version 0.4
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Fri, 17 Oct 2008 20:50:23 +0000 (22:50 +0200)]
Cleanup logging, add stats for strlists.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Fri, 17 Oct 2008 20:42:02 +0000 (22:42 +0200)]
Improve logging.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Fri, 17 Oct 2008 20:16:19 +0000 (22:16 +0200)]
Update changelog.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Fri, 17 Oct 2008 20:13:03 +0000 (22:13 +0200)]
Can remove the sender and/or the recipient from the key of the greylister.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Fri, 17 Oct 2008 20:12:48 +0000 (22:12 +0200)]
Fix boolean parser (sic).
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Fri, 17 Oct 2008 19:37:41 +0000 (21:37 +0200)]
Factorize code, can use ${protocol_state} and ${protocol_name} in query formats.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Fri, 17 Oct 2008 19:37:17 +0000 (21:37 +0200)]
Missing unlink on the tmp database when nothing-to-do.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Thu, 16 Oct 2008 21:11:37 +0000 (23:11 +0200)]
Use a single version number for the project.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Thu, 16 Oct 2008 21:08:39 +0000 (23:08 +0200)]
This file is not used anymore.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Thu, 16 Oct 2008 21:02:22 +0000 (23:02 +0200)]
Cleanup server.h/c.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Thu, 16 Oct 2008 06:32:52 +0000 (08:32 +0200)]
Update doc.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Wed, 15 Oct 2008 20:56:46 +0000 (22:56 +0200)]
Add Changelog, Authors and License file.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Wed, 15 Oct 2008 19:54:39 +0000 (21:54 +0200)]
Restore compilation flags.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Wed, 15 Oct 2008 06:28:01 +0000 (08:28 +0200)]
No need for the +x mode on configuration files.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Tue, 14 Oct 2008 22:44:49 +0000 (00:44 +0200)]
Need libev here.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Tue, 14 Oct 2008 22:28:35 +0000 (00:28 +0200)]
Merge commit 'pan/master' into not-linux
Conflicts:
postlicyd/filter.c
postlicyd/main-postlicyd.c
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Tue, 14 Oct 2008 22:21:10 +0000 (00:21 +0200)]
No more black magic on init/exit calls.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Tue, 14 Oct 2008 20:58:14 +0000 (22:58 +0200)]
Just one more thing...
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Mon, 13 Oct 2008 20:46:30 +0000 (22:46 +0200)]
Valid default values.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Mon, 13 Oct 2008 20:10:51 +0000 (22:10 +0200)]
Documentation of the counter stuff.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Mon, 13 Oct 2008 19:59:15 +0000 (21:59 +0200)]
Add "counter" filter.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Mon, 13 Oct 2008 19:36:35 +0000 (21:36 +0200)]
Add counters to the context. This counters allow to keep a state for the filter of a message.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Mon, 13 Oct 2008 19:34:36 +0000 (21:34 +0200)]
No need for the GNU_SOURCE flag.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Sun, 12 Oct 2008 21:26:50 +0000 (23:26 +0200)]
Fixes and wait for the end of request before refreshing conf.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Sun, 12 Oct 2008 21:02:43 +0000 (23:02 +0200)]
Switch to libev.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Pierre Habouzit [Sun, 12 Oct 2008 17:20:35 +0000 (19:20 +0200)]
64bits fix
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Florent Bruneau [Sun, 12 Oct 2008 15:04:31 +0000 (17:04 +0200)]
Let say this is postlicyd 0.3.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Sun, 12 Oct 2008 14:52:03 +0000 (16:52 +0200)]
Allow query-format strings in answers.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Sun, 12 Oct 2008 13:03:24 +0000 (15:03 +0200)]
Move some code.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Sun, 12 Oct 2008 11:08:22 +0000 (13:08 +0200)]
Add mYk's installation file.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Sun, 12 Oct 2008 10:20:46 +0000 (12:20 +0200)]
Working version.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Sun, 12 Oct 2008 09:44:38 +0000 (11:44 +0200)]
Don't reload when an asynchronous filter is running.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Sun, 12 Oct 2008 08:19:39 +0000 (10:19 +0200)]
Fix tst-filters (use latest API).
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Sat, 11 Oct 2008 19:56:43 +0000 (21:56 +0200)]
valgrind cleanup (hum, unbound does not cleanup all the memory it allocate...)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Sat, 11 Oct 2008 19:27:51 +0000 (21:27 +0200)]
Fix stupid bug.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Sat, 11 Oct 2008 18:52:18 +0000 (20:52 +0200)]
Useless.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Sat, 11 Oct 2008 18:50:38 +0000 (20:50 +0200)]
Port strlist to use async DNS.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Sat, 11 Oct 2008 16:13:06 +0000 (18:13 +0200)]
Many fixes.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Sat, 11 Oct 2008 15:20:54 +0000 (17:20 +0200)]
Asynchronous DNS queries on iplist.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Fri, 10 Oct 2008 22:07:20 +0000 (00:07 +0200)]
Basic support for async filters.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Wed, 8 Oct 2008 20:30:15 +0000 (22:30 +0200)]
Allow user-defined fd in events.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Wed, 8 Oct 2008 06:34:01 +0000 (08:34 +0200)]
Let say an event is just a pointer.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Tue, 7 Oct 2008 20:54:31 +0000 (22:54 +0200)]
More explicit type for events && cleanup event_cancel.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Tue, 7 Oct 2008 20:50:04 +0000 (22:50 +0200)]
Add event to interrupt the server_loop.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Pierre Habouzit [Tue, 7 Oct 2008 08:46:35 +0000 (10:46 +0200)]
Force the final dot, even if not provided in the configuration for RBLs.
Note: the len - 2 and len - 1 are safe because each format will always
write more than 2 chars in the buffer.
We also check for overflow at the same time.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Florent Bruneau [Tue, 7 Oct 2008 08:32:05 +0000 (10:32 +0200)]
Reduce verbosity.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Mon, 6 Oct 2008 22:18:07 +0000 (00:18 +0200)]
Update installation.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Mon, 6 Oct 2008 22:12:39 +0000 (00:12 +0200)]
Configuration sample for postlicyd-rsyncrbl.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Mon, 6 Oct 2008 22:05:04 +0000 (00:05 +0200)]
Add a rbl rsync script.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Mon, 6 Oct 2008 20:27:15 +0000 (22:27 +0200)]
Logging for pfix-srsd too.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Mon, 6 Oct 2008 20:24:54 +0000 (22:24 +0200)]
Improve logging again.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Pierre Habouzit [Mon, 6 Oct 2008 13:24:43 +0000 (15:24 +0200)]
we need a bit more time to have accurate stats
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Mon, 6 Oct 2008 09:38:59 +0000 (11:38 +0200)]
Add likely/unlikely macros.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Mon, 6 Oct 2008 09:33:01 +0000 (11:33 +0200)]
Use gettimeofday for finer tests.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Pierre Habouzit [Mon, 6 Oct 2008 08:46:31 +0000 (10:46 +0200)]
64bits fixes.
On 64bits platforms, ssize_t is an int64_t.
Given the average string length pfixtools will handle, a 32bits integer is
enough, let's use int everywhere.
Also a pointer difference is an ptrdiff_t which is also a 64bits integer, so
when used as the width specifier of a %.*s format, it must be cast into an
int.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Florent Bruneau [Sun, 5 Oct 2008 21:33:56 +0000 (23:33 +0200)]
Don't reconfig after each query after a manual reload.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Sun, 5 Oct 2008 20:04:21 +0000 (22:04 +0200)]
Performance tests of TCBDB.
Random insertion is not very fast, but enumeration is. Maintenance may run
withing 15 seconds.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Sun, 5 Oct 2008 18:55:09 +0000 (20:55 +0200)]
Speed-up lookup.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Sun, 5 Oct 2008 16:28:54 +0000 (18:28 +0200)]
Oops.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Sun, 5 Oct 2008 16:13:44 +0000 (18:13 +0200)]
Merge branch 'with-dns-bl'
Florent Bruneau [Sun, 5 Oct 2008 16:12:44 +0000 (18:12 +0200)]
Fix crash in conf, improves debug logging for rbl.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Sun, 5 Oct 2008 15:26:38 +0000 (17:26 +0200)]
Add DNS support for strlist filters (i.e. rhbl).
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Sun, 5 Oct 2008 13:40:21 +0000 (15:40 +0200)]
Can disable syslog logging on tests.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Sun, 5 Oct 2008 13:22:54 +0000 (15:22 +0200)]
Merge branch 'master' into with-dns-bl
Conflicts:
postlicyd/iplist.c
postlicyd/tst-rbl.c
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Sun, 5 Oct 2008 12:48:34 +0000 (14:48 +0200)]
Add rbldns parameter to iplist as an alias for 'file'.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Sun, 5 Oct 2008 12:44:46 +0000 (14:44 +0200)]
Add basic support for rbldnsd zone files.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Aymeric Augustin [Sun, 5 Oct 2008 09:09:51 +0000 (11:09 +0200)]
Rename to match convention in the tools directory