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

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Fred Viles
Datum:  
To: exim-users
Betreff: Re: [exim] dbm vs net-iplsearch for mixed ip/range lists?
On 25 Sep 2005 at 12:13, OpenMacNews wrote about
    "[exim] dbm vs net-iplsearch for mix":


|...
| 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?

| but at that point is it simpler/faster just to do the
| net-iplsearch on the text list?
|
| bottom/line, is dbm lookup appropriate/efficient for such mixed lists?


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.


- Fred