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
Kirill Smelkov
linux
Commits
2e0348c4
Commit
2e0348c4
authored
Jan 26, 2011
by
Patrick McHardy
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'connlimit' of
git://dev.medozas.de/linux
parents
9f4e1ccd
ad86e1f2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
net/netfilter/xt_connlimit.c
net/netfilter/xt_connlimit.c
+8
-4
No files found.
net/netfilter/xt_connlimit.c
View file @
2e0348c4
...
...
@@ -185,11 +185,15 @@ connlimit_mt(const struct sk_buff *skb, struct xt_action_param *par)
int
connections
;
ct
=
nf_ct_get
(
skb
,
&
ctinfo
);
if
(
ct
!=
NULL
)
tuple_ptr
=
&
ct
->
tuplehash
[
0
].
tuple
;
else
if
(
!
nf_ct_get_tuplepr
(
skb
,
skb_network_offset
(
skb
),
par
->
family
,
&
tuple
))
if
(
ct
!=
NULL
)
{
if
(
info
->
flags
&
XT_CONNLIMIT_DADDR
)
tuple_ptr
=
&
ct
->
tuplehash
[
IP_CT_DIR_REPLY
].
tuple
;
else
tuple_ptr
=
&
ct
->
tuplehash
[
IP_CT_DIR_ORIGINAL
].
tuple
;
}
else
if
(
!
nf_ct_get_tuplepr
(
skb
,
skb_network_offset
(
skb
),
par
->
family
,
&
tuple
))
{
goto
hotdrop
;
}
if
(
par
->
family
==
NFPROTO_IPV6
)
{
const
struct
ipv6hdr
*
iph
=
ipv6_hdr
(
skb
);
...
...
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