geoip: use appropriate and normal types

For the header file, we need __u32 and so on because they are exported
to userspace and rather constitute a kernel header.

Use normal types instead of uintXX_t in the main code.
This commit is contained in:
Jan Engelhardt
2008-03-18 04:02:07 +01:00
parent 52a0ed7f15
commit f4c4208e75
2 changed files with 19 additions and 19 deletions

View File

@@ -19,15 +19,16 @@
#define XT_GEOIP_MAX 15 /* Maximum of countries */
/* Yup, an address range will be passed in with host-order */
struct geoip_subnet {
u_int32_t begin;
u_int32_t end;
__u32 begin;
__u32 end;
};
struct geoip_country_user {
aligned_u64 subnets;
u_int32_t count;
u_int16_t cc;
__u32 count;
__u16 cc;
};
struct geoip_country_kernel;
@@ -38,9 +39,9 @@ union geoip_country_group {
};
struct xt_geoip_match_info {
u_int8_t flags;
u_int8_t count;
u_int16_t cc[XT_GEOIP_MAX];
__u8 flags;
__u8 count;
__u16 cc[XT_GEOIP_MAX];
/* Used internally by the kernel */
union geoip_country_group mem[XT_GEOIP_MAX];