Date: Mon, 6 Jun 2005 15:32:59 +0200 From: Willy Tarreau Hello, I've downloaded and used grepcidr. Unfortunately, it did only find IP addresses from the start of lines, and in no cases when they were surrounded by some delimiters such as '"'. So I have patched it to look for a matching address anywhere in the line. I also added some fast integer lookup before the sscanf() to improve its efficiency by not evaluating things that obviously cannot start an IP address. On my notebook (pentium-M 1.7G), it scans /var/log/syslog at about 30 MB/s. I have also slightly fixed the makefile to detect the dependency on .c files. Here you'll find attached the two patches. Regards, Willy Tarreau EXOSEC