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:
Jan Engelhardt
2008-03-18 03:12:07 +01:00
parent fd5321c7d8
commit 7aae90da5a
3 changed files with 11 additions and 12 deletions

View File

@@ -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;
};