Re: [exim] dbm vs net-iplsearch for mixed ip/range lists?

Top Page
Delete this message
Reply to this message
Author: Fred Viles
Date:  
To: exim-users
Subject: Re: [exim] dbm vs net-iplsearch for mixed ip/range lists?
On 25 Sep 2005 at 14:34, OpenMacNews wrote about
    "Re: [exim] dbm vs net-iplsearch for":


| hi fred,
|
| >| i suppose a two-pass lookup string approach, matching 1st for address, then
| >| range, is doable,
| >
| > I don't think so. How would you convert the connecting IP address to
| > a string that looks like a CIDR range with the correct number of
| > masked bits?
|
| well, now that you mention it, i happen to be struggling over that right now.
| i'm finding myself considering writing an external C funtion ...


I don't see how that would help. Again, the issue I see is that you
don't know what mask to apply to the source IP to yield the correct
CIDR notation that the potentially matching entry in the DB has.
It's a conceptual problem, not an implementation issue.

|...
| > No.  From spec.txt:
| >
| >   * iplsearch: The given file is a text file containing keys and data. A key
| > is ... (snip description)
| >
| >     Warning 1: Unlike most other single-key lookup types, a file of data for
| >     iplsearch can not be turned into a DBM or cdb file, because those lookup
| >     types support only literal keys.

|...
| now, one more question just for clarity ... here, "literal keys" DOES mean
| exact matches, yes?


Right.

- Fred