Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
5953a303
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看板
提交
5953a303
编写于
5月 31, 2010
作者:
D
David S. Miller
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of
git://git.kernel.org/pub/scm/linux/kernel/git/kaber/nf-2.6
上级
b1faf566
7489aec8
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
6 addition
and
17 deletion
+6
-17
include/linux/netfilter/x_tables.h
include/linux/netfilter/x_tables.h
+1
-1
net/ipv4/netfilter/ip_tables.c
net/ipv4/netfilter/ip_tables.c
+1
-1
net/ipv6/netfilter/ip6_tables.c
net/ipv6/netfilter/ip6_tables.c
+1
-1
net/netfilter/x_tables.c
net/netfilter/x_tables.c
+3
-14
未找到文件。
include/linux/netfilter/x_tables.h
浏览文件 @
5953a303
...
...
@@ -397,7 +397,7 @@ struct xt_table_info {
* @stacksize jumps (number of user chains) can possibly be made.
*/
unsigned
int
stacksize
;
unsigned
int
*
stackptr
;
unsigned
int
__percpu
*
stackptr
;
void
***
jumpstack
;
/* ipt_entry tables: one per CPU */
/* Note : this field MUST be the last one, see XT_TABLE_INFO_SZ */
...
...
net/ipv4/netfilter/ip_tables.c
浏览文件 @
5953a303
...
...
@@ -336,7 +336,7 @@ ipt_do_table(struct sk_buff *skb,
cpu
=
smp_processor_id
();
table_base
=
private
->
entries
[
cpu
];
jumpstack
=
(
struct
ipt_entry
**
)
private
->
jumpstack
[
cpu
];
stackptr
=
&
private
->
stackptr
[
cpu
]
;
stackptr
=
per_cpu_ptr
(
private
->
stackptr
,
cpu
)
;
origptr
=
*
stackptr
;
e
=
get_entry
(
table_base
,
private
->
hook_entry
[
hook
]);
...
...
net/ipv6/netfilter/ip6_tables.c
浏览文件 @
5953a303
...
...
@@ -363,7 +363,7 @@ ip6t_do_table(struct sk_buff *skb,
cpu
=
smp_processor_id
();
table_base
=
private
->
entries
[
cpu
];
jumpstack
=
(
struct
ip6t_entry
**
)
private
->
jumpstack
[
cpu
];
stackptr
=
&
private
->
stackptr
[
cpu
]
;
stackptr
=
per_cpu_ptr
(
private
->
stackptr
,
cpu
)
;
origptr
=
*
stackptr
;
e
=
get_entry
(
table_base
,
private
->
hook_entry
[
hook
]);
...
...
net/netfilter/x_tables.c
浏览文件 @
5953a303
...
...
@@ -699,10 +699,8 @@ void xt_free_table_info(struct xt_table_info *info)
vfree
(
info
->
jumpstack
);
else
kfree
(
info
->
jumpstack
);
if
(
sizeof
(
unsigned
int
)
*
nr_cpu_ids
>
PAGE_SIZE
)
vfree
(
info
->
stackptr
);
else
kfree
(
info
->
stackptr
);
free_percpu
(
info
->
stackptr
);
kfree
(
info
);
}
...
...
@@ -753,14 +751,9 @@ static int xt_jumpstack_alloc(struct xt_table_info *i)
unsigned
int
size
;
int
cpu
;
size
=
sizeof
(
unsigned
int
)
*
nr_cpu_ids
;
if
(
size
>
PAGE_SIZE
)
i
->
stackptr
=
vmalloc
(
size
);
else
i
->
stackptr
=
kmalloc
(
size
,
GFP_KERNEL
);
i
->
stackptr
=
alloc_percpu
(
unsigned
int
);
if
(
i
->
stackptr
==
NULL
)
return
-
ENOMEM
;
memset
(
i
->
stackptr
,
0
,
size
);
size
=
sizeof
(
void
**
)
*
nr_cpu_ids
;
if
(
size
>
PAGE_SIZE
)
...
...
@@ -844,10 +837,6 @@ struct xt_table *xt_register_table(struct net *net,
struct
xt_table_info
*
private
;
struct
xt_table
*
t
,
*
table
;
ret
=
xt_jumpstack_alloc
(
newinfo
);
if
(
ret
<
0
)
return
ERR_PTR
(
ret
);
/* Don't add one object to multiple lists. */
table
=
kmemdup
(
input_table
,
sizeof
(
struct
xt_table
),
GFP_KERNEL
);
if
(
!
table
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录