From: Jan Engelhardt Date: Sun, 26 Feb 2023 10:55:43 +0000 (+0100) Subject: xt_geoip: bump number of territories per rule X-Git-Tag: v3.24~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3f8155b5ff8435ac387d0887a602780b7798e9d;p=thirdparty%2Fxtables-addons.git xt_geoip: bump number of territories per rule --- diff --git a/extensions/libxt_geoip.c b/extensions/libxt_geoip.c index b91cd5d..2dc72ab 100644 --- a/extensions/libxt_geoip.c +++ b/extensions/libxt_geoip.c @@ -315,7 +315,7 @@ static struct xtables_match geoip_match[] = { { .family = NFPROTO_IPV6, .name = "geoip", - .revision = 1, + .revision = 2, .version = XTABLES_VERSION, .size = XT_ALIGN(sizeof(struct xt_geoip_match_info)), .userspacesize = offsetof(struct xt_geoip_match_info, mem), @@ -329,7 +329,7 @@ static struct xtables_match geoip_match[] = { { .family = NFPROTO_IPV4, .name = "geoip", - .revision = 1, + .revision = 2, .version = XTABLES_VERSION, .size = XT_ALIGN(sizeof(struct xt_geoip_match_info)), .userspacesize = offsetof(struct xt_geoip_match_info, mem), diff --git a/extensions/xt_geoip.c b/extensions/xt_geoip.c index 27e60a4..559f903 100644 --- a/extensions/xt_geoip.c +++ b/extensions/xt_geoip.c @@ -334,7 +334,7 @@ static void xt_geoip_mt_destroy(const struct xt_mtdtor_param *par) static struct xt_match xt_geoip_match[] __read_mostly = { { .name = "geoip", - .revision = 1, + .revision = 2, .family = NFPROTO_IPV6, .match = xt_geoip_mt6, .checkentry = xt_geoip_mt_checkentry, @@ -344,7 +344,7 @@ static struct xt_match xt_geoip_match[] __read_mostly = { }, { .name = "geoip", - .revision = 1, + .revision = 2, .family = NFPROTO_IPV4, .match = xt_geoip_mt4, .checkentry = xt_geoip_mt_checkentry, diff --git a/extensions/xt_geoip.h b/extensions/xt_geoip.h index 0fe3661..f8020a0 100644 --- a/extensions/xt_geoip.h +++ b/extensions/xt_geoip.h @@ -17,7 +17,7 @@ enum { XT_GEOIP_DST = 1 << 1, /* Perform check on Destination IP */ XT_GEOIP_INV = 1 << 2, /* Negate the condition */ - XT_GEOIP_MAX = 15, /* Maximum of countries */ + XT_GEOIP_MAX = 31, /* Maximum of countries */ }; /* Yup, an address range will be passed in with host-order */