]> git.ipfire.org Git - thirdparty/xtables-addons.git/commitdiff
xt_geoip: bump number of territories per rule
authorJan Engelhardt <jengelh@inai.de>
Sun, 26 Feb 2023 10:55:43 +0000 (11:55 +0100)
committerJan Engelhardt <jengelh@inai.de>
Sun, 26 Feb 2023 10:55:43 +0000 (11:55 +0100)
extensions/libxt_geoip.c
extensions/xt_geoip.c
extensions/xt_geoip.h

index b91cd5dbd3ca03c1428527664f65b234f13fd46f..2dc72ab93a44ed137519b7cef3dcbb9ca4eae504 100644 (file)
@@ -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),
index 27e60a4643b7d8486eb0ee6df5ae7dbb12013bf2..559f90322e8d18b96be315606f4f0beec881c205 100644 (file)
@@ -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,
index 0fe36618a726093aad388934fa78b1fba2b1a9c1..f8020a07c775fb829d3cb542bf1f8e092845694a 100644 (file)
@@ -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 */