Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
b85c3dc9
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看板
提交
b85c3dc9
编写于
4月 03, 2015
作者:
D
David S. Miller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
netfilter: Pass nf_hook_state through arpt_do_table().
Signed-off-by:
N
David S. Miller
<
davem@davemloft.net
>
上级
073bfd56
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
7 addition
and
9 deletion
+7
-9
include/linux/netfilter_arp/arp_tables.h
include/linux/netfilter_arp/arp_tables.h
+1
-2
net/ipv4/netfilter/arp_tables.c
net/ipv4/netfilter/arp_tables.c
+5
-6
net/ipv4/netfilter/arptable_filter.c
net/ipv4/netfilter/arptable_filter.c
+1
-1
未找到文件。
include/linux/netfilter_arp/arp_tables.h
浏览文件 @
b85c3dc9
...
...
@@ -54,8 +54,7 @@ extern struct xt_table *arpt_register_table(struct net *net,
extern
void
arpt_unregister_table
(
struct
xt_table
*
table
);
extern
unsigned
int
arpt_do_table
(
struct
sk_buff
*
skb
,
unsigned
int
hook
,
const
struct
net_device
*
in
,
const
struct
net_device
*
out
,
const
struct
nf_hook_state
*
state
,
struct
xt_table
*
table
);
#ifdef CONFIG_COMPAT
...
...
net/ipv4/netfilter/arp_tables.c
浏览文件 @
b85c3dc9
...
...
@@ -248,8 +248,7 @@ struct arpt_entry *arpt_next_entry(const struct arpt_entry *entry)
unsigned
int
arpt_do_table
(
struct
sk_buff
*
skb
,
unsigned
int
hook
,
const
struct
net_device
*
in
,
const
struct
net_device
*
out
,
const
struct
nf_hook_state
*
state
,
struct
xt_table
*
table
)
{
static
const
char
nulldevname
[
IFNAMSIZ
]
__attribute__
((
aligned
(
sizeof
(
long
))));
...
...
@@ -265,8 +264,8 @@ unsigned int arpt_do_table(struct sk_buff *skb,
if
(
!
pskb_may_pull
(
skb
,
arp_hdr_len
(
skb
->
dev
)))
return
NF_DROP
;
indev
=
in
?
in
->
name
:
nulldevname
;
outdev
=
out
?
out
->
name
:
nulldevname
;
indev
=
state
->
in
?
state
->
in
->
name
:
nulldevname
;
outdev
=
state
->
out
?
state
->
out
->
name
:
nulldevname
;
local_bh_disable
();
addend
=
xt_write_recseq_begin
();
...
...
@@ -281,8 +280,8 @@ unsigned int arpt_do_table(struct sk_buff *skb,
e
=
get_entry
(
table_base
,
private
->
hook_entry
[
hook
]);
back
=
get_entry
(
table_base
,
private
->
underflow
[
hook
]);
acpar
.
in
=
in
;
acpar
.
out
=
out
;
acpar
.
in
=
state
->
in
;
acpar
.
out
=
state
->
out
;
acpar
.
hooknum
=
hook
;
acpar
.
family
=
NFPROTO_ARP
;
acpar
.
hotdrop
=
false
;
...
...
net/ipv4/netfilter/arptable_filter.c
浏览文件 @
b85c3dc9
...
...
@@ -32,7 +32,7 @@ arptable_filter_hook(const struct nf_hook_ops *ops, struct sk_buff *skb,
{
const
struct
net
*
net
=
dev_net
(
state
->
in
?
state
->
in
:
state
->
out
);
return
arpt_do_table
(
skb
,
ops
->
hooknum
,
state
->
in
,
state
->
out
,
return
arpt_do_table
(
skb
,
ops
->
hooknum
,
state
,
net
->
ipv4
.
arptable_filter
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录