]> git.ipfire.org Git - thirdparty/ipset.git/commitdiff
netfilter: ipset: fix typo in hash size macro
authorRubenKelevra <rubenkelevra@gmail.com>
Fri, 20 Jun 2025 09:20:53 +0000 (11:20 +0200)
committerJozsef Kadlecsik <kadlec@netfilter.org>
Sat, 21 Jun 2025 14:44:06 +0000 (16:44 +0200)
Rename IPSET_MIMINAL_HASHSIZE → IPSET_MINIMAL_HASHSIZE in
ip_set_hash_gen.h, matching the header typo-fix.

Signed-off-by: RubenKelevra <rubenkelevra@gmail.com>
Signed-off-by: Jozsef Kadlecsik <kadlec@netfilter.org>
kernel/include/linux/netfilter/ipset/ip_set_hash.h
kernel/net/netfilter/ipset/ip_set_hash_gen.h

index 838abab672af111844de062e334596ebb2963814..56e883661f857a2edd129b20799ac972e09da840 100644 (file)
@@ -6,7 +6,7 @@
 
 
 #define IPSET_DEFAULT_HASHSIZE         1024
-#define IPSET_MIMINAL_HASHSIZE         64
+#define IPSET_MINIMAL_HASHSIZE         64
 #define IPSET_DEFAULT_MAXELEM          65536
 #define IPSET_DEFAULT_PROBES           4
 #define IPSET_DEFAULT_RESIZE           100
index fdca680b1295fd2833f5b451ec3417e66f078544..c37d09b0d0143711551d00528fb95e3ddf495367 100644 (file)
@@ -1546,8 +1546,8 @@ IPSET_TOKEN(HTYPE, _create)(struct net *net, struct ip_set *set,
 
        if (tb[IPSET_ATTR_HASHSIZE]) {
                hashsize = ip_set_get_h32(tb[IPSET_ATTR_HASHSIZE]);
-               if (hashsize < IPSET_MIMINAL_HASHSIZE)
-                       hashsize = IPSET_MIMINAL_HASHSIZE;
+               if (hashsize < IPSET_MINIMAL_HASHSIZE)
+                       hashsize = IPSET_MINIMAL_HASHSIZE;
        }
 
        if (tb[IPSET_ATTR_MAXELEM])