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
41499bd6
Commit
41499bd6
authored
May 20, 2010
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
git://git.kernel.org/pub/scm/linux/kernel/git/kaber/nf-next-2.6
parents
622e0ca1
7ea7b858
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
10 deletions
+16
-10
include/linux/netfilter/x_tables.h
include/linux/netfilter/x_tables.h
+1
-1
include/net/netfilter/nf_conntrack_core.h
include/net/netfilter/nf_conntrack_core.h
+1
-1
net/netfilter/nf_conntrack_core.c
net/netfilter/nf_conntrack_core.c
+10
-0
net/netfilter/nf_conntrack_sip.c
net/netfilter/nf_conntrack_sip.c
+4
-8
No files found.
include/linux/netfilter/x_tables.h
View file @
41499bd6
...
...
@@ -333,7 +333,7 @@ struct xt_target {
/* Called when user tries to insert an entry of this type:
hook_mask is a bitmask of hooks from which it can be
called. */
/* Should return
true or false, or an error cod
e (-Exxxx). */
/* Should return
0 on success or an error code otherwis
e (-Exxxx). */
int
(
*
checkentry
)(
const
struct
xt_tgchk_param
*
);
/* Called when entry of this type deleted. */
...
...
include/net/netfilter/nf_conntrack_core.h
View file @
41499bd6
...
...
@@ -61,7 +61,7 @@ static inline int nf_conntrack_confirm(struct sk_buff *skb)
int
ret
=
NF_ACCEPT
;
if
(
ct
&&
ct
!=
&
nf_conntrack_untracked
)
{
if
(
!
nf_ct_is_confirmed
(
ct
)
&&
!
nf_ct_is_dying
(
ct
)
)
if
(
!
nf_ct_is_confirmed
(
ct
))
ret
=
__nf_conntrack_confirm
(
skb
);
if
(
likely
(
ret
==
NF_ACCEPT
))
nf_ct_deliver_cached_events
(
ct
);
...
...
net/netfilter/nf_conntrack_core.c
View file @
41499bd6
...
...
@@ -424,6 +424,16 @@ __nf_conntrack_confirm(struct sk_buff *skb)
spin_lock_bh
(
&
nf_conntrack_lock
);
/* We have to check the DYING flag inside the lock to prevent
a race against nf_ct_get_next_corpse() possibly called from
user context, else we insert an already 'dead' hash, blocking
further use of that particular connection -JM */
if
(
unlikely
(
nf_ct_is_dying
(
ct
)))
{
spin_unlock_bh
(
&
nf_conntrack_lock
);
return
NF_ACCEPT
;
}
/* See if there's one in the list already, including reverse:
NAT could have grabbed it without realizing, since we're
not in the hash. If there is, we lost race. */
...
...
net/netfilter/nf_conntrack_sip.c
View file @
41499bd6
...
...
@@ -1393,10 +1393,8 @@ static int sip_help_tcp(struct sk_buff *skb, unsigned int protoff,
nf_ct_refresh
(
ct
,
skb
,
sip_timeout
*
HZ
);
if
(
skb_is_nonlinear
(
skb
))
{
pr_debug
(
"Copy of skbuff not supported yet.
\n
"
);
return
NF_ACCEPT
;
}
if
(
unlikely
(
skb_linearize
(
skb
)))
return
NF_DROP
;
dptr
=
skb
->
data
+
dataoff
;
datalen
=
skb
->
len
-
dataoff
;
...
...
@@ -1455,10 +1453,8 @@ static int sip_help_udp(struct sk_buff *skb, unsigned int protoff,
nf_ct_refresh
(
ct
,
skb
,
sip_timeout
*
HZ
);
if
(
skb_is_nonlinear
(
skb
))
{
pr_debug
(
"Copy of skbuff not supported yet.
\n
"
);
return
NF_ACCEPT
;
}
if
(
unlikely
(
skb_linearize
(
skb
)))
return
NF_DROP
;
dptr
=
skb
->
data
+
dataoff
;
datalen
=
skb
->
len
-
dataoff
;
...
...
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