xtables-addons: Fix generating GeoIP database
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 23 Jan 2019 04:10:23 +0000 (04:10 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 23 Jan 2019 04:12:41 +0000 (04:12 +0000)
commit480e3014429820c687ceeb17a3ad0b46d2b6f2ed
treee25dd01e1be72c087660526ae09b32044b78d6e4
parentf29ff21cd61fab2e7ed3ea443568c7c71bcb3f30
xtables-addons: Fix generating GeoIP database

Perl seems to have a very funny feature where you cannot rely on
how it formats IP addresses into a binary string.

This seems to be 16 bytes long for IPv4 addresses when we (and the kernel)
only expect 4.

This patch changes this so that the last 12 bytes are just being dropped.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/xtables-addons
src/patches/xtables-addons-3.2-fix-database-generation.patch [new file with mode: 0644]