]> git.ipfire.org Git - thirdparty/xtables-addons.git/commitdiff
all: remove trailing squatspaces
authorJan Engelhardt <jengelh@inai.de>
Sun, 10 Jun 2012 20:31:10 +0000 (22:31 +0200)
committerJan Engelhardt <jengelh@inai.de>
Sun, 10 Jun 2012 20:31:10 +0000 (22:31 +0200)
extensions/libxt_DNETMAP.man
extensions/libxt_fuzzy.c
extensions/libxt_geoip.c
extensions/libxt_gradm.c
extensions/libxt_ipp2p.man
extensions/xt_DNETMAP.c
extensions/xt_quota2.c

index ca36ca781f18aef32b1bba2e1f51b1c726d2e706..6b279e27e643d5e59bd4c9a41dbeb2be1bdeb860 100644 (file)
@@ -47,8 +47,8 @@ and \fBlasthit\fR entries contain \fBS\fR in case of static binding.
 \fB/proc/net/xt_DNETMAP/\fR\fIsubnet\fR\fB_\fR\fImask\fR\fB_stat\fR
 Contains statistics for given subnet/mask. Line contains contains four
 numerical values separated by spaces. First one is number of currently used
-dynamic addresses (bindings with negative ttl excluded), second one is number 
-static assignments, third one is number of all usable addresses in subnet and 
+dynamic addresses (bindings with negative ttl excluded), second one is number
+static assignments, third one is number of all usable addresses in subnet and
 the fourth one is mean \fBttl\fR value for all active entries. If prefix has
 persistent flag set it'll be noted as fifth entry.
 .PP
@@ -77,7 +77,7 @@ echo "flush" > \fB/proc/net/xt_DNETMAP/subnet_mask\fR
 Flushes all bindings for specific prefix. All static entries are also flushed
 and are available for dynamic bindings.
 .PP
-Note! Entries are removed if the last iptables rule for a specific prefix is 
+Note! Entries are removed if the last iptables rule for a specific prefix is
 deleted unless there's persistent flag set.
 .PP
 
@@ -147,7 +147,7 @@ using non-static entries.
 
 iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j DNETMAP --prefix 20.0.0.0/26
 --persistent
-.br 
+.br
 \fBor\fR
 .br
 iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j DNETMAP --prefix 20.0.0.0/26
index 06fd075e379bbb590ca52349e4695c700e86f25e..0a0dfcc1b914bc20a56e3eb46bbae55acb91261b 100644 (file)
@@ -100,7 +100,7 @@ static void fuzzy_mt_save(const void *ip, const struct xt_entry_match *match)
        printf(" --upper-limit %u ", info->maximum_rate);
 }
 
-static struct xtables_match fuzzy_mt_reg = { 
+static struct xtables_match fuzzy_mt_reg = {
        .name          = "fuzzy",
        .revision      = 1,
        .version       = XTABLES_VERSION,
index 638f6697757233f729a65ed78f63a6ade30791e4..04b86a1a8deb3150a17521097f19df61b8ada668 100644 (file)
@@ -100,7 +100,7 @@ geoip_get_subnets(const char *code, uint32_t *count, uint8_t nfproto)
        close(fd);
        return subnets;
 }
+
 static struct geoip_country_user *geoip_load_cc(const char *code,
     unsigned short cc, uint8_t nfproto)
 {
index 12236d7398a574969460633025a3f5a5c31d62b5..5d1113df7bd55a7b50a2ee79e090283d19d4fd2b 100644 (file)
@@ -78,7 +78,7 @@ static void gradm_mt_save(const void *ip, const struct xt_entry_match *match)
                printf(" --enabled ");
 }
 
-static struct xtables_match gradm_mt_reg = { 
+static struct xtables_match gradm_mt_reg = {
        .family        = NFPROTO_UNSPEC,
        .name          = "gradm",
        .version       = XTABLES_VERSION,
index 21253d2cc362ac44ca76c36a42d7c7cb9c1acc00..5cc1f175858d36a349122ce83588e181d2b9578b 100644 (file)
@@ -36,7 +36,7 @@ Matches some WinMX packets. Considered as beta, use careful!
 Matches Ares and AresLite packets. Use together with \-j DROP only.
 .TP
 \fB\-\-debug\fP
-Prints some information about each hit into kernel logfile. May 
+Prints some information about each hit into kernel logfile. May
 produce huge logfiles so beware!
 .PP
 Note that ipp2p may not (and often, does not) identify all packets that are
index 3d789ac1bf56f972cb30a40dc1551be648870c99..ccae06e6bbf94d6996898041f2ffaebcc208af9e 100644 (file)
@@ -633,7 +633,7 @@ dnetmap_tg_proc_write(struct file *file, const char __user *input,size_t size, l
        __be32 addr1,addr2;
        bool add;
        char str[25];
-       
+
        if (size == 0)
                return 0;
        if (size > sizeof(buf))
@@ -642,7 +642,7 @@ dnetmap_tg_proc_write(struct file *file, const char __user *input,size_t size, l
                return -EFAULT;
        if(strcspn(c,"\n") < size)
                buf[strcspn(c,"\n")]='\0';
-       
+
        /* Strict protocol! */
        if (*loff != 0)
                return -ESPIPE;
@@ -696,10 +696,10 @@ dnetmap_tg_proc_write(struct file *file, const char __user *input,size_t size, l
                c2 = strchr(c,':');
                if(c2 == NULL)
                        goto invalid_arg_unlock;
-               
+
                c++;
                c2++;
-               
+
                if( ! (in4_pton(c2,strlen(c2),(void *)&addr2, '\0', NULL) &&
                          in4_pton(c,strlen(c),(void *)&addr1, ':', NULL)))
                        goto invalid_arg_unlock;
@@ -731,7 +731,7 @@ dnetmap_tg_proc_write(struct file *file, const char __user *input,size_t size, l
                                        break;
                                }
                }
-               
+
                e->prenat_addr=addr1;
                e->flags |= XT_DNETMAP_STATIC;
                list_add_tail(&e->glist,
@@ -742,7 +742,7 @@ dnetmap_tg_proc_write(struct file *file, const char __user *input,size_t size, l
                                                           dnetmap_entry_hash
                                                           (e->postnat_addr)]);
                list_del(&e->lru_list);
-               
+
                sprintf(str, NIPQUAD_FMT ":" NIPQUAD_FMT, NIPQUAD(addr1),NIPQUAD(addr2));
                printk(KERN_INFO KBUILD_MODNAME ": adding static binding %s\n", str);
 
@@ -755,7 +755,7 @@ dnetmap_tg_proc_write(struct file *file, const char __user *input,size_t size, l
 
                e = dnetmap_entry_rlookup(p->dnetmap,addr1);
                if(e == NULL) e = dnetmap_entry_lookup(p->dnetmap,addr1);
-               
+
                if(e != NULL){
                        if (!disable_log)
                                printk(KERN_INFO KBUILD_MODNAME
@@ -773,7 +773,7 @@ dnetmap_tg_proc_write(struct file *file, const char __user *input,size_t size, l
                        goto invalid_arg_unlock;
                }
        }
+
        spin_unlock_bh(&dnetmap_lock);
 
        /* Note we removed one above */
@@ -782,7 +782,7 @@ dnetmap_tg_proc_write(struct file *file, const char __user *input,size_t size, l
 
        invalid_arg_unlock:
                spin_unlock_bh(&dnetmap_lock);
-       
+
        invalid_arg:
                //printk(KERN_INFO KBUILD_MODNAME ": Need \"+prenat_ip:postnat_ip\", \"-ip\" or \"/\"\n");
                printk(KERN_INFO KBUILD_MODNAME ": Error! Invalid option passed via procfs.\n");
@@ -809,7 +809,7 @@ static int dnetmap_stat_proc_read(char __user *buffer, char **start,
        long int ttl, sum_ttl;
 
        used=used_static=all=sum_ttl=0;
-       
+
        spin_lock_bh(&dnetmap_lock);
 
        list_for_each_entry(e, &p->elist, list) {
index 20005dda582beb0443c29317963e79e091b840fd..d74ba241108c6d6ede35247e7cb798c392ae4627 100644 (file)
@@ -230,7 +230,7 @@ static struct xt_match quota_mt2_reg[] __read_mostly = {
                .family     = NFPROTO_IPV4,
                .checkentry = quota_mt2_check,
                .match      = quota_mt2,
-               .destroy    = quota_mt2_destroy,  
+               .destroy    = quota_mt2_destroy,
                .matchsize  = sizeof(struct xt_quota_mtinfo2),
                .me         = THIS_MODULE,
        },
@@ -240,7 +240,7 @@ static struct xt_match quota_mt2_reg[] __read_mostly = {
                .family     = NFPROTO_IPV6,
                .checkentry = quota_mt2_check,
                .match      = quota_mt2,
-               .destroy    = quota_mt2_destroy,  
+               .destroy    = quota_mt2_destroy,
                .matchsize  = sizeof(struct xt_quota_mtinfo2),
                .me         = THIS_MODULE,
        },