]> git.ipfire.org Git - thirdparty/xtables-addons.git/commit
geoip: use simpler, preprocessed integer vector lists and fix endian issue
authorJan Engelhardt <jengelh@computergmbh.de>
Tue, 18 Mar 2008 14:47:10 +0000 (15:47 +0100)
committerJan Engelhardt <jengelh@computergmbh.de>
Sat, 22 Mar 2008 02:59:57 +0000 (03:59 +0100)
commit5d431b45f134545263bdc8f90c0a27780bb06d00
tree6ac5b71829dfa5ce4c0718970c3f822f60ab5eae
parentf4c4208e75a4fac42f008ce93779ddce3c90809d
geoip: use simpler, preprocessed integer vector lists and fix endian issue

The old database format was in unknown byteorder -- if you run the
converter program yourself, you got a host order file, but if you
downloaded the preprocessed DB file (geoipdb.bin), you got a
little-endian file.

Use a new database format. Instead of having an index and a DB file,
do away with the index and let the filesystem do the indexing, using
one file per country. Also access the database files with a known
endianess type. The converter script now produces two distinct
variants (especially needed for IA-64).

All of this reduces the touched code by half.
extensions/libxt_geoip.c
extensions/libxt_geoip.man