mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-07 21:25:12 +02:00
geoip: use local-portable aligned_u64 pointer values
A 64-bit kernel will interpret the pointer with 64 bits width, while a 32-bit userspace filled in only 32 of it, leaving the other 32 undefined. This must be avoided.
This commit is contained in:
@@ -25,7 +25,7 @@ struct geoip_subnet {
|
||||
};
|
||||
|
||||
struct geoip_country_user {
|
||||
struct geoip_subnet *subnets;
|
||||
aligned_u64 subnets;
|
||||
u_int32_t count;
|
||||
u_int16_t cc;
|
||||
};
|
||||
@@ -33,7 +33,7 @@ struct geoip_country_user {
|
||||
struct geoip_country_kernel;
|
||||
|
||||
union geoip_country_group {
|
||||
struct geoip_country_user *user;
|
||||
aligned_u64 user;
|
||||
struct geoip_country_kernel *kernel;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user