Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed pointer types to aligned_u64 type to avoid struct size mismat… #1

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ struct geoip_subnet {
};

struct geoip_info {
struct geoip_subnet *subnets;
aligned_u64 subnets;
u_int32_t count;
u_int32_t ref;
u_int16_t cc;
struct geoip_info *next;
struct geoip_info *prev;
aligned_u64 next;
aligned_u64 prev;
};

struct xt_geoip_match_info {
Expand All @@ -39,8 +39,8 @@ struct xt_geoip_match_info {
u_int16_t cc[XT_GEOIP_MAX];

/* Used internally by the kernel */
struct geoip_info *mem[XT_GEOIP_MAX];
u_int8_t *refcount;
aligned_u64 mem[XT_GEOIP_MAX];
aligned_u64 refcount;

/* not implemented yet:
void *fini;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ struct geoip_subnet {
};

struct geoip_info {
struct geoip_subnet *subnets;
aligned_u64 subnets;
u_int32_t count;
u_int32_t ref;
u_int16_t cc;
struct geoip_info *next;
struct geoip_info *prev;
aligned_u64 next;
aligned_u64 prev;
};

struct xt_geoip_match_info {
Expand All @@ -39,8 +39,8 @@ struct xt_geoip_match_info {
u_int16_t cc[XT_GEOIP_MAX];

/* Used internally by the kernel */
struct geoip_info *mem[XT_GEOIP_MAX];
u_int8_t *refcount;
aligned_u64 mem[XT_GEOIP_MAX];
aligned_u64 refcount;

/* not implemented yet:
void *fini;
Expand Down