Skip to content

Commit 601e68e

Browse files
yoshfujidavem330
authored andcommitted
[NETFILTER]: Fix whitespace errors
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent a3c941b commit 601e68e

43 files changed

Lines changed: 422 additions & 422 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎net/netfilter/core.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* netfilter.c: look after the filters for various protocols.
1+
/* netfilter.c: look after the filters for various protocols.
22
* Heavily influenced by the old firewall.c by David Bonn and Alan Cox.
33
*
44
* Thanks to Rob `CmdrTaco' Malda for not influencing this code in any
@@ -141,14 +141,14 @@ unsigned int nf_iterate(struct list_head *head,
141141
continue;
142142

143143
/* Optimization: we don't need to hold module
144-
reference here, since function can't sleep. --RR */
144+
reference here, since function can't sleep. --RR */
145145
verdict = elem->hook(hook, skb, indev, outdev, okfn);
146146
if (verdict != NF_ACCEPT) {
147147
#ifdef CONFIG_NETFILTER_DEBUG
148148
if (unlikely((verdict & NF_VERDICT_MASK)
149149
> NF_MAX_VERDICT)) {
150150
NFDEBUG("Evil return from %p(%u).\n",
151-
elem->hook, hook);
151+
elem->hook, hook);
152152
continue;
153153
}
154154
#endif

‎net/netfilter/nf_conntrack_core.c‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ EXPORT_SYMBOL_GPL(nf_conntrack_find_get);
424424

425425
static void __nf_conntrack_hash_insert(struct nf_conn *ct,
426426
unsigned int hash,
427-
unsigned int repl_hash)
427+
unsigned int repl_hash)
428428
{
429429
ct->id = ++nf_conntrack_next_id;
430430
list_add(&ct->tuplehash[IP_CT_DIR_ORIGINAL].list,
@@ -1066,7 +1066,7 @@ get_next_corpse(int (*iter)(struct nf_conn *i, void *data),
10661066
if (iter(ct, data))
10671067
goto found;
10681068
}
1069-
}
1069+
}
10701070
list_for_each_entry(h, &unconfirmed, list) {
10711071
ct = nf_ct_tuplehash_to_ctrack(h);
10721072
if (iter(ct, data))
@@ -1107,7 +1107,7 @@ static void free_conntrack_hash(struct list_head *hash, int vmalloced, int size)
11071107
if (vmalloced)
11081108
vfree(hash);
11091109
else
1110-
free_pages((unsigned long)hash,
1110+
free_pages((unsigned long)hash,
11111111
get_order(sizeof(struct list_head) * size));
11121112
}
11131113

@@ -1168,18 +1168,18 @@ static struct list_head *alloc_hashtable(int size, int *vmalloced)
11681168
struct list_head *hash;
11691169
unsigned int i;
11701170

1171-
*vmalloced = 0;
1172-
hash = (void*)__get_free_pages(GFP_KERNEL,
1171+
*vmalloced = 0;
1172+
hash = (void*)__get_free_pages(GFP_KERNEL,
11731173
get_order(sizeof(struct list_head)
11741174
* size));
1175-
if (!hash) {
1175+
if (!hash) {
11761176
*vmalloced = 1;
11771177
printk(KERN_WARNING "nf_conntrack: falling back to vmalloc.\n");
11781178
hash = vmalloc(sizeof(struct list_head) * size);
11791179
}
11801180

11811181
if (hash)
1182-
for (i = 0; i < size; i++)
1182+
for (i = 0; i < size; i++)
11831183
INIT_LIST_HEAD(&hash[i]);
11841184

11851185
return hash;
@@ -1286,9 +1286,9 @@ int __init nf_conntrack_init(void)
12861286

12871287
/* Don't NEED lock here, but good form anyway. */
12881288
write_lock_bh(&nf_conntrack_lock);
1289-
for (i = 0; i < AF_MAX; i++)
1289+
for (i = 0; i < AF_MAX; i++)
12901290
nf_ct_l3protos[i] = &nf_conntrack_l3proto_generic;
1291-
write_unlock_bh(&nf_conntrack_lock);
1291+
write_unlock_bh(&nf_conntrack_lock);
12921292

12931293
/* For use by REJECT target */
12941294
rcu_assign_pointer(ip_ct_attach, __nf_conntrack_attach);

‎net/netfilter/nf_conntrack_expect.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ void nf_ct_remove_expectations(struct nf_conn *ct)
130130
if (i->master == ct && del_timer(&i->timeout)) {
131131
nf_ct_unlink_expect(i);
132132
nf_conntrack_expect_put(i);
133-
}
133+
}
134134
}
135135
}
136136
EXPORT_SYMBOL_GPL(nf_ct_remove_expectations);

‎net/netfilter/nf_conntrack_ftp.c‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ get_ipv6_addr(const char *src, size_t dlen, struct in6_addr *dst, u_int8_t term)
126126
}
127127

128128
static int try_number(const char *data, size_t dlen, u_int32_t array[],
129-
int array_size, char sep, char term)
129+
int array_size, char sep, char term)
130130
{
131131
u_int32_t i, len;
132132

@@ -413,8 +413,8 @@ static int help(struct sk_buff **pskb,
413413
goto out_update_nl;
414414
}
415415

416-
/* Initialize IP/IPv6 addr to expected address (it's not mentioned
417-
in EPSV responses) */
416+
/* Initialize IP/IPv6 addr to expected address (it's not mentioned
417+
in EPSV responses) */
418418
cmd.l3num = ct->tuplehash[dir].tuple.src.l3num;
419419
memcpy(cmd.u3.all, &ct->tuplehash[dir].tuple.src.u3.all,
420420
sizeof(cmd.u3.all));
@@ -466,11 +466,11 @@ static int help(struct sk_buff **pskb,
466466
memcmp(&cmd.u3.all, &ct->tuplehash[dir].tuple.src.u3.all,
467467
sizeof(cmd.u3.all))) {
468468
/* Enrico Scholz's passive FTP to partially RNAT'd ftp
469-
server: it really wants us to connect to a
470-
different IP address. Simply don't record it for
471-
NAT. */
469+
server: it really wants us to connect to a
470+
different IP address. Simply don't record it for
471+
NAT. */
472472
if (cmd.l3num == PF_INET) {
473-
DEBUGP("conntrack_ftp: NOT RECORDING: " NIPQUAD_FMT " != " NIPQUAD_FMT "\n",
473+
DEBUGP("conntrack_ftp: NOT RECORDING: " NIPQUAD_FMT " != " NIPQUAD_FMT "\n",
474474
NIPQUAD(cmd.u3.ip),
475475
NIPQUAD(ct->tuplehash[dir].tuple.src.u3.ip));
476476
} else {

‎net/netfilter/nf_conntrack_h323_main.c‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ MODULE_PARM_DESC(gkrouted_only, "only accept calls from gatekeeper");
4949
static int callforward_filter __read_mostly = 1;
5050
module_param(callforward_filter, bool, 0600);
5151
MODULE_PARM_DESC(callforward_filter, "only create call forwarding expectations "
52-
"if both endpoints are on different sides "
52+
"if both endpoints are on different sides "
5353
"(determined by routing information)");
5454

5555
/* Hooks for NAT */
@@ -300,7 +300,7 @@ static int expect_rtp_rtcp(struct sk_buff **pskb, struct nf_conn *ct,
300300
IPPROTO_UDP, NULL, &rtcp_port);
301301

302302
if (memcmp(&ct->tuplehash[dir].tuple.src.u3,
303-
&ct->tuplehash[!dir].tuple.dst.u3,
303+
&ct->tuplehash[!dir].tuple.dst.u3,
304304
sizeof(ct->tuplehash[dir].tuple.src.u3)) &&
305305
(nat_rtp_rtcp = rcu_dereference(nat_rtp_rtcp_hook)) &&
306306
ct->status & IPS_NAT_MASK) {
@@ -743,7 +743,7 @@ static int callforward_do_filter(union nf_conntrack_address *src,
743743
rt2 = (struct rt6_info *)ip6_route_output(NULL, &fl2);
744744
if (rt2) {
745745
if (!memcmp(&rt1->rt6i_gateway, &rt2->rt6i_gateway,
746-
sizeof(rt1->rt6i_gateway)) &&
746+
sizeof(rt1->rt6i_gateway)) &&
747747
rt1->u.dst.dev == rt2->u.dst.dev)
748748
ret = 1;
749749
dst_release(&rt2->u.dst);
@@ -780,7 +780,7 @@ static int expect_callforwarding(struct sk_buff **pskb,
780780
* we don't need to track the second call */
781781
if (callforward_filter &&
782782
callforward_do_filter(&addr, &ct->tuplehash[!dir].tuple.src.u3,
783-
ct->tuplehash[!dir].tuple.src.l3num)) {
783+
ct->tuplehash[!dir].tuple.src.l3num)) {
784784
DEBUGP("nf_ct_q931: Call Forwarding not tracked\n");
785785
return 0;
786786
}
@@ -840,7 +840,7 @@ static int process_setup(struct sk_buff **pskb, struct nf_conn *ct,
840840
if ((setup->options & eSetup_UUIE_destCallSignalAddress) &&
841841
(set_h225_addr) && ct->status && IPS_NAT_MASK &&
842842
get_h225_addr(ct, *data, &setup->destCallSignalAddress,
843-
&addr, &port) &&
843+
&addr, &port) &&
844844
memcmp(&addr, &ct->tuplehash[!dir].tuple.src.u3, sizeof(addr))) {
845845
DEBUGP("nf_ct_q931: set destCallSignalAddress "
846846
NIP6_FMT ":%hu->" NIP6_FMT ":%hu\n",
@@ -858,7 +858,7 @@ static int process_setup(struct sk_buff **pskb, struct nf_conn *ct,
858858
if ((setup->options & eSetup_UUIE_sourceCallSignalAddress) &&
859859
(set_h225_addr) && ct->status & IPS_NAT_MASK &&
860860
get_h225_addr(ct, *data, &setup->sourceCallSignalAddress,
861-
&addr, &port) &&
861+
&addr, &port) &&
862862
memcmp(&addr, &ct->tuplehash[!dir].tuple.dst.u3, sizeof(addr))) {
863863
DEBUGP("nf_ct_q931: set sourceCallSignalAddress "
864864
NIP6_FMT ":%hu->" NIP6_FMT ":%hu\n",
@@ -1282,7 +1282,7 @@ static int expect_q931(struct sk_buff **pskb, struct nf_conn *ct,
12821282
for (i = 0; i < count; i++) {
12831283
if (get_h225_addr(ct, *data, &taddr[i], &addr, &port) &&
12841284
memcmp(&addr, &ct->tuplehash[dir].tuple.src.u3,
1285-
sizeof(addr)) == 0 && port != 0)
1285+
sizeof(addr)) == 0 && port != 0)
12861286
break;
12871287
}
12881288

@@ -1294,7 +1294,7 @@ static int expect_q931(struct sk_buff **pskb, struct nf_conn *ct,
12941294
return -1;
12951295
nf_conntrack_expect_init(exp, ct->tuplehash[!dir].tuple.src.l3num,
12961296
gkrouted_only ? /* only accept calls from GK? */
1297-
&ct->tuplehash[!dir].tuple.src.u3 :
1297+
&ct->tuplehash[!dir].tuple.src.u3 :
12981298
NULL,
12991299
&ct->tuplehash[!dir].tuple.dst.u3,
13001300
IPPROTO_TCP, NULL, &port);
@@ -1513,7 +1513,7 @@ static int process_arq(struct sk_buff **pskb, struct nf_conn *ct,
15131513
set_h225_addr = rcu_dereference(set_h225_addr_hook);
15141514
if ((arq->options & eAdmissionRequest_destCallSignalAddress) &&
15151515
get_h225_addr(ct, *data, &arq->destCallSignalAddress,
1516-
&addr, &port) &&
1516+
&addr, &port) &&
15171517
!memcmp(&addr, &ct->tuplehash[dir].tuple.src.u3, sizeof(addr)) &&
15181518
port == info->sig_port[dir] &&
15191519
set_h225_addr && ct->status & IPS_NAT_MASK) {
@@ -1526,7 +1526,7 @@ static int process_arq(struct sk_buff **pskb, struct nf_conn *ct,
15261526

15271527
if ((arq->options & eAdmissionRequest_srcCallSignalAddress) &&
15281528
get_h225_addr(ct, *data, &arq->srcCallSignalAddress,
1529-
&addr, &port) &&
1529+
&addr, &port) &&
15301530
!memcmp(&addr, &ct->tuplehash[dir].tuple.src.u3, sizeof(addr)) &&
15311531
set_h225_addr && ct->status & IPS_NAT_MASK) {
15321532
/* Calling ARQ */

‎net/netfilter/nf_conntrack_irc.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ static const char *dccprotos[] = {
5757

5858
#if 0
5959
#define DEBUGP(format, args...) printk(KERN_DEBUG "%s:%s:" format, \
60-
__FILE__, __FUNCTION__ , ## args)
60+
__FILE__, __FUNCTION__ , ## args)
6161
#else
6262
#define DEBUGP(format, args...)
6363
#endif

‎net/netfilter/nf_conntrack_l3proto_generic.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ generic_prepare(struct sk_buff **pskb, unsigned int hooknum,
7777

7878

7979
static u_int32_t generic_get_features(const struct nf_conntrack_tuple *tuple)
80-
80+
8181
{
8282
return NF_CT_F_BASIC;
8383
}

‎net/netfilter/nf_conntrack_netbios_ns.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ module_param(timeout, uint, 0400);
4343
MODULE_PARM_DESC(timeout, "timeout for master connection/replies in seconds");
4444

4545
static int help(struct sk_buff **pskb, unsigned int protoff,
46-
struct nf_conn *ct, enum ip_conntrack_info ctinfo)
46+
struct nf_conn *ct, enum ip_conntrack_info ctinfo)
4747
{
4848
struct nf_conntrack_expect *exp;
4949
struct iphdr *iph = (*pskb)->nh.iph;

0 commit comments

Comments
 (0)