apps/pfixtools.git
10 years agopfix-srsd: add a -I option master
Pierre Habouzit [Wed, 2 Sep 2009 23:57:52 +0000 (01:57 +0200)]
pfix-srsd: add a -I option

When in decoding mode, it tells the daemon to not reverse domains not
equal to the domain the daemon serves.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
10 years agocleanups
Pierre Habouzit [Wed, 2 Sep 2009 23:49:36 +0000 (01:49 +0200)]
cleanups

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
11 years agoprepare the beginning of postlicyd.conf(5)
Pierre Habouzit [Sun, 11 Jan 2009 21:37:01 +0000 (22:37 +0100)]
prepare the beginning of postlicyd.conf(5)

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
11 years agoadd a pfixtools(7) entry man page
Pierre Habouzit [Sun, 11 Jan 2009 20:25:24 +0000 (21:25 +0100)]
add a pfixtools(7) entry man page

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
11 years agosimplify toplevel Makefile so that it can inclide common.mk
Pierre Habouzit [Sun, 11 Jan 2009 20:15:47 +0000 (21:15 +0100)]
simplify toplevel Makefile so that it can inclide common.mk

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
11 years agoWrite a postlicyd(8) man page.
Pierre Habouzit [Sun, 11 Jan 2009 20:05:38 +0000 (21:05 +0100)]
Write a postlicyd(8) man page.

Also fix postlicyd so that it accepts a -h switch showing the help.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
11 years agodocument new dependencies
Pierre Habouzit [Sun, 11 Jan 2009 19:53:15 +0000 (20:53 +0100)]
document new dependencies

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
11 years agoAdd a man page for pfix-srsd(8).
Pierre Habouzit [Sun, 11 Jan 2009 18:46:10 +0000 (19:46 +0100)]
Add a man page for pfix-srsd(8).

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
11 years agosimplify top-level makefile using more generic constructs.
Pierre Habouzit [Sun, 11 Jan 2009 18:33:36 +0000 (19:33 +0100)]
simplify top-level makefile using more generic constructs.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
11 years agoAdd some rules to deal with documentation generation.
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>
11 years agoFix the copyright and licensing stuff.
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>
11 years agoFix typo.
Florent Bruneau [Fri, 9 Jan 2009 09:38:45 +0000 (10:38 +0100)]
Fix typo.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
11 years agoDisable binary search speed test.
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>
11 years agopfixtools 0.5.
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>
11 years agoFix build on 64bits.
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>
11 years agoCompare query_format and snprintf performances.
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>
11 years agoAvoid useless strlen, faster query_format.
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>
11 years agoUpdate ChangeLog
Florent Bruneau [Mon, 10 Nov 2008 23:47:22 +0000 (00:47 +0100)]
Update ChangeLog

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
11 years agoAdd log_format configuration variable.
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>
11 years agoCleanup start/refresh.
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>
11 years agoUpdate ChangeLog
Florent Bruneau [Mon, 10 Nov 2008 21:55:14 +0000 (22:55 +0100)]
Update ChangeLog

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
11 years agoAvoid error when running the tests twice.
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>
11 years agoAdd new option 'cleanup_period' to the greylister.
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>
11 years agoUse resources for the greylister too.
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>
11 years agoReload strlist and iplist resource-files only when needed.
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>
11 years agoAdd 'resource' keeper.
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>
11 years agoSilent check-conf in case of success.
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>
11 years agoBetter initd example.
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>
11 years agoCleanup configuration parser, add 'check-conf' option.
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>
11 years agoFix /bin path not created in Makefile
Nicolas Aupetit [Sun, 9 Nov 2008 10:49:23 +0000 (21:49 +1100)]
Fix /bin path not created in Makefile

11 years agoA bit of cleanup of the array API.
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>
11 years agoReadable code is much better.
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>
11 years agoMore readable code.
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>
11 years agoUpdate ChangeLog.
Florent Bruneau [Thu, 6 Nov 2008 20:50:47 +0000 (21:50 +0100)]
Update ChangeLog.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
11 years agoUpdate tests.
Florent Bruneau [Thu, 6 Nov 2008 13:13:34 +0000 (14:13 +0100)]
Update tests.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
11 years agoFix build of the trie.
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>
11 years agoFix compilation of rbl test.
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>
11 years agokeep ipv6 out from the loop
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>
11 years agostrict aliasing generates too many bugs
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>
11 years agoExclude -Wredundant-decls and -Wshadow only when compiling server.c.
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>
11 years agoserver_release didn't clear the buffers.
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>
11 years agoVersion 0.4
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>
11 years agoCleanup logging, add stats for strlists.
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>
11 years agoImprove logging.
Florent Bruneau [Fri, 17 Oct 2008 20:42:02 +0000 (22:42 +0200)]
Improve logging.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
11 years agoUpdate changelog.
Florent Bruneau [Fri, 17 Oct 2008 20:16:19 +0000 (22:16 +0200)]
Update changelog.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
11 years agoCan remove the sender and/or the recipient from the key of the greylister.
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>
11 years agoFix boolean parser (sic).
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>
11 years agoFactorize code, can use ${protocol_state} and ${protocol_name} in query formats.
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>
11 years agoMissing unlink on the tmp database when nothing-to-do.
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>
11 years agoUse a single version number for the project.
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>
11 years agoThis file is not used anymore.
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>
11 years agoCleanup server.h/c.
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>
11 years agoUpdate doc.
Florent Bruneau [Thu, 16 Oct 2008 06:32:52 +0000 (08:32 +0200)]
Update doc.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
11 years agoAdd Changelog, Authors and License file.
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>
11 years agoRestore compilation flags.
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>
11 years agoNo need for the +x mode on configuration files.
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>
11 years agoNeed libev here.
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>
11 years agoMerge commit 'pan/master' into not-linux
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>
11 years agoNo more black magic on init/exit calls.
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>
11 years agoJust one more thing...
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>
11 years agoValid default values.
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>
11 years agoDocumentation of the counter stuff.
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>
11 years agoAdd "counter" filter.
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>
11 years agoAdd counters to the context. This counters allow to keep a state for the filter of...
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>
11 years agoNo need for the GNU_SOURCE flag.
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>
11 years agoFixes and wait for the end of request before refreshing conf.
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>
11 years agoSwitch to libev.
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>
11 years ago64bits fix
Pierre Habouzit [Sun, 12 Oct 2008 17:20:35 +0000 (19:20 +0200)]
64bits fix

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
11 years agoLet say this is postlicyd 0.3.
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>
11 years agoAllow query-format strings in answers.
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>
11 years agoMove some code.
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>
11 years agoAdd mYk's installation file.
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>
11 years agoWorking version.
Florent Bruneau [Sun, 12 Oct 2008 10:20:46 +0000 (12:20 +0200)]
Working version.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
11 years agoDon't reload when an asynchronous filter is running.
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>
11 years agoFix tst-filters (use latest API).
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>
11 years agovalgrind cleanup (hum, unbound does not cleanup all the memory it allocate...)
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>
11 years agoFix stupid bug.
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>
11 years agoUseless.
Florent Bruneau [Sat, 11 Oct 2008 18:52:18 +0000 (20:52 +0200)]
Useless.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
11 years agoPort strlist to use async DNS.
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>
11 years agoMany fixes.
Florent Bruneau [Sat, 11 Oct 2008 16:13:06 +0000 (18:13 +0200)]
Many fixes.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
11 years agoAsynchronous DNS queries on iplist.
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>
11 years agoBasic support for async filters.
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>
11 years agoAllow user-defined fd in events.
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>
11 years agoLet say an event is just a pointer.
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>
11 years agoMore explicit type for events && cleanup event_cancel.
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>
11 years agoAdd event to interrupt the server_loop.
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>
11 years agoForce the final dot, even if not provided in the configuration for RBLs.
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>
11 years agoReduce verbosity.
Florent Bruneau [Tue, 7 Oct 2008 08:32:05 +0000 (10:32 +0200)]
Reduce verbosity.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
11 years agoUpdate installation.
Florent Bruneau [Mon, 6 Oct 2008 22:18:07 +0000 (00:18 +0200)]
Update installation.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
11 years agoConfiguration sample for postlicyd-rsyncrbl.
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>
11 years agoAdd a rbl rsync script.
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>
11 years agoLogging for pfix-srsd too.
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>
11 years agoImprove logging again.
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>
11 years agowe need a bit more time to have accurate stats
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>
11 years agoAdd likely/unlikely macros.
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>
11 years agoUse gettimeofday for finer tests.
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>
11 years ago64bits fixes.
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>
11 years agoDon't reconfig after each query after a manual reload.
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>
11 years agoPerformance tests of TCBDB.
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>
11 years agoSpeed-up lookup.
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>