Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
41499bd6
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
41499bd6
编写于
5月 20, 2010
作者:
D
David S. Miller
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of
git://git.kernel.org/pub/scm/linux/kernel/git/kaber/nf-next-2.6
上级
622e0ca1
7ea7b858
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
16 addition
and
10 deletion
+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
未找到文件。
include/linux/netfilter/x_tables.h
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录