]> git.ipfire.org Git - thirdparty/xtables-addons.git/commitdiff
doc, src: improve spelling
authorJan Engelhardt <jengelh@inai.de>
Sun, 2 Apr 2023 16:24:10 +0000 (18:24 +0200)
committerJan Engelhardt <jengelh@inai.de>
Sun, 2 Apr 2023 16:33:25 +0000 (18:33 +0200)
extensions/libxt_CHAOS.man
extensions/libxt_DNETMAP.c
extensions/pknock/xt_pknock.c
extensions/xt_DNETMAP.c
extensions/xt_asn.c
extensions/xt_geoip.c

index 73b828ff710fd47de1991a831451f9d2efa2c3a5..8117c4c05ac5f7f0cdb482086b70ab6c75732121 100644 (file)
@@ -11,7 +11,7 @@ closed/filtered.
 \fB\-\-tarpit\fP
 Use the REJECT and TARPIT target as a base to hold the connection until it
 times out. This consumes conntrack entries when connection tracking is loaded
-(which usually is on most machines), and routers inbetween you and the Internet
+(which usually is on most machines), and routers between you and the Internet
 may fail to do their connection tracking if they have to handle more
 connections than they can.
 .PP
index 24a101c3d3c4c6e4be2d3c7b34443ba6dc0d77cb..e72b467bfaf7d9fb7e1cf3a04b422297c0dc4928 100644 (file)
@@ -214,7 +214,7 @@ static void DNETMAP_save(const void *ip, const struct xt_entry_target *target)
        if (*flags & XT_DNETMAP_PERSISTENT)
                printf(" --persistent ");
 
-       /* ommited because default value can change as kernel mod param */
+       /* omitted because the default value can change as the kernel modifies parameters */
        if (*flags & XT_DNETMAP_TTL)
                printf(" --ttl %i ", tginfo->ttl);
 }
index 07f14d1a9fed40b3ee98d75826b220e89760ba2c..1606eabce9e86ddfa5bddf900f2a2c7865a91744 100644 (file)
@@ -722,12 +722,6 @@ has_secret(const unsigned char *secret, unsigned int secret_len, uint32_t ipsrc,
 
        if (payload_len == 0)
                return false;
-
-       /*
-        * hexa:  4bits
-        * ascii: 8bits
-        * hexa = ascii * 2
-        */
        hexa_size = crypto.size * 2;
 
        /* + 1 cause we MUST add NULL in the payload */
index 68074e7eb82e9a960f50b9f4efdddb0f9945afc4..0b6731e482fdca3a30e2dafd9343444997d04a6a 100644 (file)
@@ -458,7 +458,7 @@ bind_new_prefix:
                                goto bind_new_prefix;
                        }
                /* don't reset ttl if flag is set
-               or it is static entry*/
+               or it is static entry */
                if (jttl >= 0 && ! (e->flags & XT_DNETMAP_STATIC) ) {
                        e->stamp = jiffies + jttl;
                        p = e->prefix;
index a7ed8efd12d9cecae6cbc6fff9babf86ab020753..71d516af7bb9e4db950dd4d6dfddcf0238a717f7 100644 (file)
@@ -129,10 +129,6 @@ static void asn_try_remove_node(struct asn_number_kernel *p)
                spin_unlock(&asn_lock);
                return;
        }
-
-       /* So now am unlinked or the only one alive, right ?
-        * What are you waiting ? Free up some memory!
-        */
        list_del_rcu(&p->list);
        spin_unlock(&asn_lock);
 
@@ -214,7 +210,7 @@ xt_asn_mt6(const struct sk_buff *skb, struct xt_action_param *par)
        rcu_read_lock();
        for (i = 0; i < info->count; i++) {
                if ((node = info->mem[i].kernel) == NULL) {
-                       printk(KERN_ERR "xt_asn: what the hell ?? '%u' isn't loaded into memory... skip it!\n",
+                       printk(KERN_ERR "xt_asn: %u is not loaded into memory\n",
                                        info->asn[i]);
                        continue;
                }
@@ -264,7 +260,7 @@ xt_asn_mt4(const struct sk_buff *skb, struct xt_action_param *par)
        rcu_read_lock();
        for (i = 0; i < info->count; i++) {
                if ((node = info->mem[i].kernel) == NULL) {
-                       printk(KERN_ERR "xt_asn: what the hell ?? '%u' isn't loaded into memory... skip it!\n",
+                       printk(KERN_ERR "xt_asn: %u is not loaded into memory\n",
                                        info->asn[i]);
                        continue;
                }
@@ -328,9 +324,7 @@ static void xt_asn_mt_destroy(const struct xt_mtdtor_param *par)
                else
                        /* Something strange happened. There's no memory allocated for this
                         * number.  Please send this bug to the mailing list. */
-                       printk(KERN_ERR
-                                       "xt_asn: What happened peejix ? What happened acidfu ?\n"
-                                       "xt_asn: please report this bug to the maintainers\n");
+                       printk(KERN_ERR "xt_asn: no memory allocated for this number\n");
 }
 
 static struct xt_match xt_asn_match[] __read_mostly = {
index 900e417c04b84efe24a3316f96e887a85255fdd5..a57fd797eb48821f74f9fabab7c1dc41727ea76e 100644 (file)
@@ -127,10 +127,6 @@ static void geoip_try_remove_node(struct geoip_country_kernel *p)
                spin_unlock(&geoip_lock);
                return;
        }
-
-       /* So now am unlinked or the only one alive, right ?
-        * What are you waiting ? Free up some memory!
-        */
        list_del_rcu(&p->list);
        spin_unlock(&geoip_lock);
 
@@ -212,7 +208,7 @@ xt_geoip_mt6(const struct sk_buff *skb, struct xt_action_param *par)
        rcu_read_lock();
        for (i = 0; i < info->count; i++) {
                if ((node = info->mem[i].kernel) == NULL) {
-                       printk(KERN_ERR "xt_geoip: what the hell ?? '%c%c' isn't loaded into memory... skip it!\n",
+                       printk(KERN_ERR "xt_geoip: %c%c is not loaded into memory\n",
                                        COUNTRY(info->cc[i]));
                        continue;
                }
@@ -262,7 +258,7 @@ xt_geoip_mt4(const struct sk_buff *skb, struct xt_action_param *par)
        rcu_read_lock();
        for (i = 0; i < info->count; i++) {
                if ((node = info->mem[i].kernel) == NULL) {
-                       printk(KERN_ERR "xt_geoip: what the hell ?? '%c%c' isn't loaded into memory... skip it!\n",
+                       printk(KERN_ERR "xt_geoip: %c%c is not loaded into memory\n",
                                        COUNTRY(info->cc[i]));
                        continue;
                }
@@ -326,9 +322,7 @@ static void xt_geoip_mt_destroy(const struct xt_mtdtor_param *par)
                else
                        /* Something strange happened. There's no memory allocated for this
                         * country.  Please send this bug to the mailing list. */
-                       printk(KERN_ERR
-                                       "xt_geoip: What happened peejix ? What happened acidfu ?\n"
-                                       "xt_geoip: please report this bug to the maintainers\n");
+                       printk(KERN_ERR "xt_geoip: no memory allocated for this number\n");
 }
 
 static struct xt_match xt_geoip_match[] __read_mostly = {