Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
fa96a0e2
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
fa96a0e2
编写于
11月 01, 2009
作者:
J
Jan Engelhardt
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
netfilter: iptables: remove unused function arguments
Signed-off-by:
N
Jan Engelhardt
<
jengelh@medozas.de
>
上级
98e6d2d5
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
6 addition
and
14 deletion
+6
-14
net/ipv4/netfilter/iptable_mangle.c
net/ipv4/netfilter/iptable_mangle.c
+3
-7
net/ipv6/netfilter/ip6table_mangle.c
net/ipv6/netfilter/ip6table_mangle.c
+3
-7
未找到文件。
net/ipv4/netfilter/iptable_mangle.c
浏览文件 @
fa96a0e2
...
...
@@ -36,11 +36,7 @@ static const struct xt_table packet_mangler = {
};
static
unsigned
int
ipt_local_hook
(
unsigned
int
hook
,
struct
sk_buff
*
skb
,
const
struct
net_device
*
in
,
const
struct
net_device
*
out
,
int
(
*
okfn
)(
struct
sk_buff
*
))
ipt_mangle_out
(
struct
sk_buff
*
skb
,
const
struct
net_device
*
out
)
{
unsigned
int
ret
;
const
struct
iphdr
*
iph
;
...
...
@@ -60,7 +56,7 @@ ipt_local_hook(unsigned int hook,
daddr
=
iph
->
daddr
;
tos
=
iph
->
tos
;
ret
=
ipt_do_table
(
skb
,
hook
,
in
,
out
,
ret
=
ipt_do_table
(
skb
,
NF_INET_LOCAL_OUT
,
NULL
,
out
,
dev_net
(
out
)
->
ipv4
.
iptable_mangle
);
/* Reroute for ANY change. */
if
(
ret
!=
NF_DROP
&&
ret
!=
NF_STOLEN
&&
ret
!=
NF_QUEUE
)
{
...
...
@@ -86,7 +82,7 @@ iptable_mangle_hook(unsigned int hook,
int
(
*
okfn
)(
struct
sk_buff
*
))
{
if
(
hook
==
NF_INET_LOCAL_OUT
)
return
ipt_
local_hook
(
hook
,
skb
,
in
,
out
,
okfn
);
return
ipt_
mangle_out
(
skb
,
out
);
if
(
hook
==
NF_INET_POST_ROUTING
)
return
ipt_do_table
(
skb
,
hook
,
in
,
out
,
dev_net
(
out
)
->
ipv4
.
iptable_mangle
);
...
...
net/ipv6/netfilter/ip6table_mangle.c
浏览文件 @
fa96a0e2
...
...
@@ -30,12 +30,8 @@ static const struct xt_table packet_mangler = {
};
static
unsigned
int
ip6t_local_out_hook
(
unsigned
int
hook
,
struct
sk_buff
*
skb
,
const
struct
net_device
*
out
,
int
(
*
okfn
)(
struct
sk_buff
*
))
ip6t_mangle_out
(
struct
sk_buff
*
skb
,
const
struct
net_device
*
out
)
{
unsigned
int
ret
;
struct
in6_addr
saddr
,
daddr
;
u_int8_t
hop_limit
;
...
...
@@ -60,7 +56,7 @@ ip6t_local_out_hook(unsigned int hook,
/* flowlabel and prio (includes version, which shouldn't change either */
flowlabel
=
*
((
u_int32_t
*
)
ipv6_hdr
(
skb
));
ret
=
ip6t_do_table
(
skb
,
hook
,
NULL
,
out
,
ret
=
ip6t_do_table
(
skb
,
NF_INET_LOCAL_OUT
,
NULL
,
out
,
dev_net
(
out
)
->
ipv6
.
ip6table_mangle
);
if
(
ret
!=
NF_DROP
&&
ret
!=
NF_STOLEN
&&
...
...
@@ -80,7 +76,7 @@ ip6table_mangle_hook(unsigned int hook, struct sk_buff *skb,
int
(
*
okfn
)(
struct
sk_buff
*
))
{
if
(
hook
==
NF_INET_LOCAL_OUT
)
return
ip6t_
local_out_hook
(
hook
,
skb
,
out
,
okfn
);
return
ip6t_
mangle_out
(
skb
,
out
);
if
(
hook
==
NF_INET_POST_ROUTING
)
return
ip6t_do_table
(
skb
,
hook
,
in
,
out
,
dev_net
(
out
)
->
ipv6
.
ip6table_mangle
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录