Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
7a6b1c46
Commit
7a6b1c46
authored
Apr 15, 2009
by
Jan Engelhardt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netfilter: xtables: remove another level of indent
Signed-off-by:
Jan Engelhardt
<
jengelh@medozas.de
>
parent
9452258d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
63 additions
and
66 deletions
+63
-66
net/ipv4/netfilter/arp_tables.c
net/ipv4/netfilter/arp_tables.c
+17
-16
net/ipv4/netfilter/ip_tables.c
net/ipv4/netfilter/ip_tables.c
+25
-27
net/ipv6/netfilter/ip6_tables.c
net/ipv6/netfilter/ip6_tables.c
+21
-23
No files found.
net/ipv4/netfilter/arp_tables.c
View file @
7a6b1c46
...
@@ -313,7 +313,9 @@ unsigned int arpt_do_table(struct sk_buff *skb,
...
@@ -313,7 +313,9 @@ unsigned int arpt_do_table(struct sk_buff *skb,
}
}
e
=
get_entry
(
table_base
,
v
);
e
=
get_entry
(
table_base
,
v
);
}
else
{
continue
;
}
/* Targets which reenter must return
/* Targets which reenter must return
* abs. verdicts
* abs. verdicts
*/
*/
...
@@ -329,7 +331,6 @@ unsigned int arpt_do_table(struct sk_buff *skb,
...
@@ -329,7 +331,6 @@ unsigned int arpt_do_table(struct sk_buff *skb,
else
else
/* Verdict */
/* Verdict */
break
;
break
;
}
}
while
(
!
hotdrop
);
}
while
(
!
hotdrop
);
xt_info_rdunlock_bh
();
xt_info_rdunlock_bh
();
...
...
net/ipv4/netfilter/ip_tables.c
View file @
7a6b1c46
...
@@ -402,26 +402,25 @@ ipt_do_table(struct sk_buff *skb,
...
@@ -402,26 +402,25 @@ ipt_do_table(struct sk_buff *skb,
}
}
e
=
get_entry
(
table_base
,
v
);
e
=
get_entry
(
table_base
,
v
);
}
else
{
continue
;
}
/* Targets which reenter must return
/* Targets which reenter must return
abs. verdicts */
abs. verdicts */
tgpar
.
target
=
t
->
u
.
kernel
.
target
;
tgpar
.
target
=
t
->
u
.
kernel
.
target
;
tgpar
.
targinfo
=
t
->
data
;
tgpar
.
targinfo
=
t
->
data
;
#ifdef CONFIG_NETFILTER_DEBUG
#ifdef CONFIG_NETFILTER_DEBUG
((
struct
ipt_entry
*
)
table_base
)
->
comefrom
((
struct
ipt_entry
*
)
table_base
)
->
comefrom
=
0xeeeeeeec
;
=
0xeeeeeeec
;
#endif
#endif
verdict
=
t
->
u
.
kernel
.
target
->
target
(
skb
,
&
tgpar
);
verdict
=
t
->
u
.
kernel
.
target
->
target
(
skb
,
&
tgpar
);
#ifdef CONFIG_NETFILTER_DEBUG
#ifdef CONFIG_NETFILTER_DEBUG
if
(((
struct
ipt_entry
*
)
table_base
)
->
comefrom
if
(((
struct
ipt_entry
*
)
table_base
)
->
comefrom
!=
0xeeeeeeec
&&
!=
0xeeeeeeec
verdict
==
IPT_CONTINUE
)
{
&&
verdict
==
IPT_CONTINUE
)
{
printk
(
"Target %s reentered!
\n
"
,
printk
(
"Target %s reentered!
\n
"
,
t
->
u
.
kernel
.
target
->
name
);
t
->
u
.
kernel
.
target
->
name
);
verdict
=
NF_DROP
;
verdict
=
NF_DROP
;
}
}
((
struct
ipt_entry
*
)
table_base
)
->
comefrom
((
struct
ipt_entry
*
)
table_base
)
->
comefrom
=
0x57acc001
;
=
0x57acc001
;
#endif
#endif
/* Target might have changed stuff. */
/* Target might have changed stuff. */
ip
=
ip_hdr
(
skb
);
ip
=
ip_hdr
(
skb
);
...
@@ -432,7 +431,6 @@ ipt_do_table(struct sk_buff *skb,
...
@@ -432,7 +431,6 @@ ipt_do_table(struct sk_buff *skb,
else
else
/* Verdict */
/* Verdict */
break
;
break
;
}
}
while
(
!
hotdrop
);
}
while
(
!
hotdrop
);
xt_info_rdunlock_bh
();
xt_info_rdunlock_bh
();
...
...
net/ipv6/netfilter/ip6_tables.c
View file @
7a6b1c46
...
@@ -431,35 +431,33 @@ ip6t_do_table(struct sk_buff *skb,
...
@@ -431,35 +431,33 @@ ip6t_do_table(struct sk_buff *skb,
}
}
e
=
get_entry
(
table_base
,
v
);
e
=
get_entry
(
table_base
,
v
);
}
else
{
continue
;
}
/* Targets which reenter must return
/* Targets which reenter must return
abs. verdicts */
abs. verdicts */
tgpar
.
target
=
t
->
u
.
kernel
.
target
;
tgpar
.
target
=
t
->
u
.
kernel
.
target
;
tgpar
.
targinfo
=
t
->
data
;
tgpar
.
targinfo
=
t
->
data
;
#ifdef CONFIG_NETFILTER_DEBUG
#ifdef CONFIG_NETFILTER_DEBUG
((
struct
ip6t_entry
*
)
table_base
)
->
comefrom
((
struct
ip6t_entry
*
)
table_base
)
->
comefrom
=
0xeeeeeeec
;
=
0xeeeeeeec
;
#endif
#endif
verdict
=
t
->
u
.
kernel
.
target
->
target
(
skb
,
&
tgpar
);
verdict
=
t
->
u
.
kernel
.
target
->
target
(
skb
,
&
tgpar
);
#ifdef CONFIG_NETFILTER_DEBUG
#ifdef CONFIG_NETFILTER_DEBUG
if
(((
struct
ip6t_entry
*
)
table_base
)
->
comefrom
if
(((
struct
ip6t_entry
*
)
table_base
)
->
comefrom
!=
0xeeeeeeec
&&
!=
0xeeeeeeec
verdict
==
IP6T_CONTINUE
)
{
&&
verdict
==
IP6T_CONTINUE
)
{
printk
(
"Target %s reentered!
\n
"
,
printk
(
"Target %s reentered!
\n
"
,
t
->
u
.
kernel
.
target
->
name
);
t
->
u
.
kernel
.
target
->
name
);
verdict
=
NF_DROP
;
verdict
=
NF_DROP
;
}
}
((
struct
ip6t_entry
*
)
table_base
)
->
comefrom
((
struct
ip6t_entry
*
)
table_base
)
->
comefrom
=
0x57acc001
;
=
0x57acc001
;
#endif
#endif
if
(
verdict
==
IP6T_CONTINUE
)
if
(
verdict
==
IP6T_CONTINUE
)
e
=
ip6t_next_entry
(
e
);
e
=
ip6t_next_entry
(
e
);
else
else
/* Verdict */
/* Verdict */
break
;
break
;
}
}
while
(
!
hotdrop
);
}
while
(
!
hotdrop
);
#ifdef CONFIG_NETFILTER_DEBUG
#ifdef CONFIG_NETFILTER_DEBUG
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment