Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
fd1cc480
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看板
提交
fd1cc480
编写于
4月 08, 2009
作者:
D
David S. Miller
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of
git://git.kernel.org/pub/scm/linux/kernel/git/kaber/nf-2.6
上级
577c9c45
83731671
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
13 addition
and
26 deletion
+13
-26
include/net/netfilter/nf_conntrack_expect.h
include/net/netfilter/nf_conntrack_expect.h
+4
-1
net/ipv6/netfilter/ip6_tables.c
net/ipv6/netfilter/ip6_tables.c
+2
-0
net/netfilter/Kconfig
net/netfilter/Kconfig
+1
-1
net/netfilter/nf_conntrack_expect.c
net/netfilter/nf_conntrack_expect.c
+6
-24
未找到文件。
include/net/netfilter/nf_conntrack_expect.h
浏览文件 @
fd1cc480
...
...
@@ -99,9 +99,12 @@ void nf_ct_expect_init(struct nf_conntrack_expect *, unsigned int, u_int8_t,
const
union
nf_inet_addr
*
,
u_int8_t
,
const
__be16
*
,
const
__be16
*
);
void
nf_ct_expect_put
(
struct
nf_conntrack_expect
*
exp
);
int
nf_ct_expect_related
(
struct
nf_conntrack_expect
*
expect
);
int
nf_ct_expect_related_report
(
struct
nf_conntrack_expect
*
expect
,
u32
pid
,
int
report
);
static
inline
int
nf_ct_expect_related
(
struct
nf_conntrack_expect
*
expect
)
{
return
nf_ct_expect_related_report
(
expect
,
0
,
0
);
}
#endif
/*_NF_CONNTRACK_EXPECT_H*/
net/ipv6/netfilter/ip6_tables.c
浏览文件 @
fd1cc480
...
...
@@ -1033,6 +1033,8 @@ static struct xt_counters *alloc_counters(struct xt_table *table)
xt_free_table_info
(
info
);
return
counters
;
free_counters:
vfree
(
counters
);
nomem:
...
...
net/netfilter/Kconfig
浏览文件 @
fd1cc480
...
...
@@ -374,7 +374,7 @@ config NETFILTER_XT_TARGET_HL
config NETFILTER_XT_TARGET_LED
tristate '"LED" target support'
depends on LEDS_CLASS && LED_TRIGGERS
depends on LEDS_CLASS && LED
S
_TRIGGERS
depends on NETFILTER_ADVANCED
help
This option adds a `LED' target, which allows you to blink LEDs in
...
...
net/netfilter/nf_conntrack_expect.c
浏览文件 @
fd1cc480
...
...
@@ -372,7 +372,7 @@ static inline int __nf_ct_expect_check(struct nf_conntrack_expect *expect)
struct
net
*
net
=
nf_ct_exp_net
(
expect
);
struct
hlist_node
*
n
;
unsigned
int
h
;
int
ret
=
0
;
int
ret
=
1
;
if
(
!
master_help
->
helper
)
{
ret
=
-
ESHUTDOWN
;
...
...
@@ -412,41 +412,23 @@ static inline int __nf_ct_expect_check(struct nf_conntrack_expect *expect)
return
ret
;
}
int
nf_ct_expect_related
(
struct
nf_conntrack_expect
*
expect
)
int
nf_ct_expect_related_report
(
struct
nf_conntrack_expect
*
expect
,
u32
pid
,
int
report
)
{
int
ret
;
spin_lock_bh
(
&
nf_conntrack_lock
);
ret
=
__nf_ct_expect_check
(
expect
);
if
(
ret
<
0
)
if
(
ret
<
=
0
)
goto
out
;
ret
=
0
;
nf_ct_expect_insert
(
expect
);
atomic_inc
(
&
expect
->
use
);
spin_unlock_bh
(
&
nf_conntrack_lock
);
nf_ct_expect_event
(
IPEXP_NEW
,
expect
);
nf_ct_expect_put
(
expect
);
return
ret
;
out:
spin_unlock_bh
(
&
nf_conntrack_lock
);
nf_ct_expect_event_report
(
IPEXP_NEW
,
expect
,
pid
,
report
);
return
ret
;
}
EXPORT_SYMBOL_GPL
(
nf_ct_expect_related
);
int
nf_ct_expect_related_report
(
struct
nf_conntrack_expect
*
expect
,
u32
pid
,
int
report
)
{
int
ret
;
spin_lock_bh
(
&
nf_conntrack_lock
);
ret
=
__nf_ct_expect_check
(
expect
);
if
(
ret
<
0
)
goto
out
;
nf_ct_expect_insert
(
expect
);
out:
spin_unlock_bh
(
&
nf_conntrack_lock
);
if
(
ret
==
0
)
nf_ct_expect_event_report
(
IPEXP_NEW
,
expect
,
pid
,
report
);
return
ret
;
}
EXPORT_SYMBOL_GPL
(
nf_ct_expect_related_report
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录