Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
24c232d8
cloud-kernel
项目概览
openanolis
/
cloud-kernel
大约 1 年 前同步成功
通知
158
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
24c232d8
编写于
6月 13, 2009
作者:
J
Jan Engelhardt
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
netfilter: xtables: switch hook PFs to nfproto
Signed-off-by:
N
Jan Engelhardt
<
jengelh@medozas.de
>
上级
57750a22
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
36 addition
and
36 deletion
+36
-36
net/bridge/netfilter/ebtable_filter.c
net/bridge/netfilter/ebtable_filter.c
+3
-3
net/bridge/netfilter/ebtable_nat.c
net/bridge/netfilter/ebtable_nat.c
+3
-3
net/ipv4/netfilter/iptable_filter.c
net/ipv4/netfilter/iptable_filter.c
+3
-3
net/ipv4/netfilter/iptable_mangle.c
net/ipv4/netfilter/iptable_mangle.c
+5
-5
net/ipv4/netfilter/iptable_raw.c
net/ipv4/netfilter/iptable_raw.c
+2
-2
net/ipv4/netfilter/iptable_security.c
net/ipv4/netfilter/iptable_security.c
+3
-3
net/ipv4/netfilter/nf_nat_standalone.c
net/ipv4/netfilter/nf_nat_standalone.c
+4
-4
net/ipv6/netfilter/ip6table_filter.c
net/ipv6/netfilter/ip6table_filter.c
+3
-3
net/ipv6/netfilter/ip6table_mangle.c
net/ipv6/netfilter/ip6table_mangle.c
+5
-5
net/ipv6/netfilter/ip6table_raw.c
net/ipv6/netfilter/ip6table_raw.c
+2
-2
net/ipv6/netfilter/ip6table_security.c
net/ipv6/netfilter/ip6table_security.c
+3
-3
未找到文件。
net/bridge/netfilter/ebtable_filter.c
浏览文件 @
24c232d8
...
@@ -77,21 +77,21 @@ static struct nf_hook_ops ebt_ops_filter[] __read_mostly = {
...
@@ -77,21 +77,21 @@ static struct nf_hook_ops ebt_ops_filter[] __read_mostly = {
{
{
.
hook
=
ebt_in_hook
,
.
hook
=
ebt_in_hook
,
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
pf
=
PF
_BRIDGE
,
.
pf
=
NFPROTO
_BRIDGE
,
.
hooknum
=
NF_BR_LOCAL_IN
,
.
hooknum
=
NF_BR_LOCAL_IN
,
.
priority
=
NF_BR_PRI_FILTER_BRIDGED
,
.
priority
=
NF_BR_PRI_FILTER_BRIDGED
,
},
},
{
{
.
hook
=
ebt_in_hook
,
.
hook
=
ebt_in_hook
,
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
pf
=
PF
_BRIDGE
,
.
pf
=
NFPROTO
_BRIDGE
,
.
hooknum
=
NF_BR_FORWARD
,
.
hooknum
=
NF_BR_FORWARD
,
.
priority
=
NF_BR_PRI_FILTER_BRIDGED
,
.
priority
=
NF_BR_PRI_FILTER_BRIDGED
,
},
},
{
{
.
hook
=
ebt_out_hook
,
.
hook
=
ebt_out_hook
,
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
pf
=
PF
_BRIDGE
,
.
pf
=
NFPROTO
_BRIDGE
,
.
hooknum
=
NF_BR_LOCAL_OUT
,
.
hooknum
=
NF_BR_LOCAL_OUT
,
.
priority
=
NF_BR_PRI_FILTER_OTHER
,
.
priority
=
NF_BR_PRI_FILTER_OTHER
,
},
},
...
...
net/bridge/netfilter/ebtable_nat.c
浏览文件 @
24c232d8
...
@@ -77,21 +77,21 @@ static struct nf_hook_ops ebt_ops_nat[] __read_mostly = {
...
@@ -77,21 +77,21 @@ static struct nf_hook_ops ebt_ops_nat[] __read_mostly = {
{
{
.
hook
=
ebt_nat_out
,
.
hook
=
ebt_nat_out
,
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
pf
=
PF
_BRIDGE
,
.
pf
=
NFPROTO
_BRIDGE
,
.
hooknum
=
NF_BR_LOCAL_OUT
,
.
hooknum
=
NF_BR_LOCAL_OUT
,
.
priority
=
NF_BR_PRI_NAT_DST_OTHER
,
.
priority
=
NF_BR_PRI_NAT_DST_OTHER
,
},
},
{
{
.
hook
=
ebt_nat_out
,
.
hook
=
ebt_nat_out
,
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
pf
=
PF
_BRIDGE
,
.
pf
=
NFPROTO
_BRIDGE
,
.
hooknum
=
NF_BR_POST_ROUTING
,
.
hooknum
=
NF_BR_POST_ROUTING
,
.
priority
=
NF_BR_PRI_NAT_SRC
,
.
priority
=
NF_BR_PRI_NAT_SRC
,
},
},
{
{
.
hook
=
ebt_nat_in
,
.
hook
=
ebt_nat_in
,
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
pf
=
PF
_BRIDGE
,
.
pf
=
NFPROTO
_BRIDGE
,
.
hooknum
=
NF_BR_PRE_ROUTING
,
.
hooknum
=
NF_BR_PRE_ROUTING
,
.
priority
=
NF_BR_PRI_NAT_DST_BRIDGED
,
.
priority
=
NF_BR_PRI_NAT_DST_BRIDGED
,
},
},
...
...
net/ipv4/netfilter/iptable_filter.c
浏览文件 @
24c232d8
...
@@ -102,21 +102,21 @@ static struct nf_hook_ops ipt_ops[] __read_mostly = {
...
@@ -102,21 +102,21 @@ static struct nf_hook_ops ipt_ops[] __read_mostly = {
{
{
.
hook
=
ipt_local_in_hook
,
.
hook
=
ipt_local_in_hook
,
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
pf
=
PF_INET
,
.
pf
=
NFPROTO_IPV4
,
.
hooknum
=
NF_INET_LOCAL_IN
,
.
hooknum
=
NF_INET_LOCAL_IN
,
.
priority
=
NF_IP_PRI_FILTER
,
.
priority
=
NF_IP_PRI_FILTER
,
},
},
{
{
.
hook
=
ipt_hook
,
.
hook
=
ipt_hook
,
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
pf
=
PF_INET
,
.
pf
=
NFPROTO_IPV4
,
.
hooknum
=
NF_INET_FORWARD
,
.
hooknum
=
NF_INET_FORWARD
,
.
priority
=
NF_IP_PRI_FILTER
,
.
priority
=
NF_IP_PRI_FILTER
,
},
},
{
{
.
hook
=
ipt_local_out_hook
,
.
hook
=
ipt_local_out_hook
,
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
pf
=
PF_INET
,
.
pf
=
NFPROTO_IPV4
,
.
hooknum
=
NF_INET_LOCAL_OUT
,
.
hooknum
=
NF_INET_LOCAL_OUT
,
.
priority
=
NF_IP_PRI_FILTER
,
.
priority
=
NF_IP_PRI_FILTER
,
},
},
...
...
net/ipv4/netfilter/iptable_mangle.c
浏览文件 @
24c232d8
...
@@ -162,35 +162,35 @@ static struct nf_hook_ops ipt_ops[] __read_mostly = {
...
@@ -162,35 +162,35 @@ static struct nf_hook_ops ipt_ops[] __read_mostly = {
{
{
.
hook
=
ipt_pre_routing_hook
,
.
hook
=
ipt_pre_routing_hook
,
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
pf
=
PF_INET
,
.
pf
=
NFPROTO_IPV4
,
.
hooknum
=
NF_INET_PRE_ROUTING
,
.
hooknum
=
NF_INET_PRE_ROUTING
,
.
priority
=
NF_IP_PRI_MANGLE
,
.
priority
=
NF_IP_PRI_MANGLE
,
},
},
{
{
.
hook
=
ipt_local_in_hook
,
.
hook
=
ipt_local_in_hook
,
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
pf
=
PF_INET
,
.
pf
=
NFPROTO_IPV4
,
.
hooknum
=
NF_INET_LOCAL_IN
,
.
hooknum
=
NF_INET_LOCAL_IN
,
.
priority
=
NF_IP_PRI_MANGLE
,
.
priority
=
NF_IP_PRI_MANGLE
,
},
},
{
{
.
hook
=
ipt_forward_hook
,
.
hook
=
ipt_forward_hook
,
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
pf
=
PF_INET
,
.
pf
=
NFPROTO_IPV4
,
.
hooknum
=
NF_INET_FORWARD
,
.
hooknum
=
NF_INET_FORWARD
,
.
priority
=
NF_IP_PRI_MANGLE
,
.
priority
=
NF_IP_PRI_MANGLE
,
},
},
{
{
.
hook
=
ipt_local_hook
,
.
hook
=
ipt_local_hook
,
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
pf
=
PF_INET
,
.
pf
=
NFPROTO_IPV4
,
.
hooknum
=
NF_INET_LOCAL_OUT
,
.
hooknum
=
NF_INET_LOCAL_OUT
,
.
priority
=
NF_IP_PRI_MANGLE
,
.
priority
=
NF_IP_PRI_MANGLE
,
},
},
{
{
.
hook
=
ipt_post_routing_hook
,
.
hook
=
ipt_post_routing_hook
,
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
pf
=
PF_INET
,
.
pf
=
NFPROTO_IPV4
,
.
hooknum
=
NF_INET_POST_ROUTING
,
.
hooknum
=
NF_INET_POST_ROUTING
,
.
priority
=
NF_IP_PRI_MANGLE
,
.
priority
=
NF_IP_PRI_MANGLE
,
},
},
...
...
net/ipv4/netfilter/iptable_raw.c
浏览文件 @
24c232d8
...
@@ -74,14 +74,14 @@ ipt_local_hook(unsigned int hook,
...
@@ -74,14 +74,14 @@ ipt_local_hook(unsigned int hook,
static
struct
nf_hook_ops
ipt_ops
[]
__read_mostly
=
{
static
struct
nf_hook_ops
ipt_ops
[]
__read_mostly
=
{
{
{
.
hook
=
ipt_hook
,
.
hook
=
ipt_hook
,
.
pf
=
PF_INET
,
.
pf
=
NFPROTO_IPV4
,
.
hooknum
=
NF_INET_PRE_ROUTING
,
.
hooknum
=
NF_INET_PRE_ROUTING
,
.
priority
=
NF_IP_PRI_RAW
,
.
priority
=
NF_IP_PRI_RAW
,
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
},
},
{
{
.
hook
=
ipt_local_hook
,
.
hook
=
ipt_local_hook
,
.
pf
=
PF_INET
,
.
pf
=
NFPROTO_IPV4
,
.
hooknum
=
NF_INET_LOCAL_OUT
,
.
hooknum
=
NF_INET_LOCAL_OUT
,
.
priority
=
NF_IP_PRI_RAW
,
.
priority
=
NF_IP_PRI_RAW
,
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
...
...
net/ipv4/netfilter/iptable_security.c
浏览文件 @
24c232d8
...
@@ -105,21 +105,21 @@ static struct nf_hook_ops ipt_ops[] __read_mostly = {
...
@@ -105,21 +105,21 @@ static struct nf_hook_ops ipt_ops[] __read_mostly = {
{
{
.
hook
=
ipt_local_in_hook
,
.
hook
=
ipt_local_in_hook
,
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
pf
=
PF_INET
,
.
pf
=
NFPROTO_IPV4
,
.
hooknum
=
NF_INET_LOCAL_IN
,
.
hooknum
=
NF_INET_LOCAL_IN
,
.
priority
=
NF_IP_PRI_SECURITY
,
.
priority
=
NF_IP_PRI_SECURITY
,
},
},
{
{
.
hook
=
ipt_forward_hook
,
.
hook
=
ipt_forward_hook
,
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
pf
=
PF_INET
,
.
pf
=
NFPROTO_IPV4
,
.
hooknum
=
NF_INET_FORWARD
,
.
hooknum
=
NF_INET_FORWARD
,
.
priority
=
NF_IP_PRI_SECURITY
,
.
priority
=
NF_IP_PRI_SECURITY
,
},
},
{
{
.
hook
=
ipt_local_out_hook
,
.
hook
=
ipt_local_out_hook
,
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
pf
=
PF_INET
,
.
pf
=
NFPROTO_IPV4
,
.
hooknum
=
NF_INET_LOCAL_OUT
,
.
hooknum
=
NF_INET_LOCAL_OUT
,
.
priority
=
NF_IP_PRI_SECURITY
,
.
priority
=
NF_IP_PRI_SECURITY
,
},
},
...
...
net/ipv4/netfilter/nf_nat_standalone.c
浏览文件 @
24c232d8
...
@@ -251,7 +251,7 @@ static struct nf_hook_ops nf_nat_ops[] __read_mostly = {
...
@@ -251,7 +251,7 @@ static struct nf_hook_ops nf_nat_ops[] __read_mostly = {
{
{
.
hook
=
nf_nat_in
,
.
hook
=
nf_nat_in
,
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
pf
=
PF_INET
,
.
pf
=
NFPROTO_IPV4
,
.
hooknum
=
NF_INET_PRE_ROUTING
,
.
hooknum
=
NF_INET_PRE_ROUTING
,
.
priority
=
NF_IP_PRI_NAT_DST
,
.
priority
=
NF_IP_PRI_NAT_DST
,
},
},
...
@@ -259,7 +259,7 @@ static struct nf_hook_ops nf_nat_ops[] __read_mostly = {
...
@@ -259,7 +259,7 @@ static struct nf_hook_ops nf_nat_ops[] __read_mostly = {
{
{
.
hook
=
nf_nat_out
,
.
hook
=
nf_nat_out
,
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
pf
=
PF_INET
,
.
pf
=
NFPROTO_IPV4
,
.
hooknum
=
NF_INET_POST_ROUTING
,
.
hooknum
=
NF_INET_POST_ROUTING
,
.
priority
=
NF_IP_PRI_NAT_SRC
,
.
priority
=
NF_IP_PRI_NAT_SRC
,
},
},
...
@@ -267,7 +267,7 @@ static struct nf_hook_ops nf_nat_ops[] __read_mostly = {
...
@@ -267,7 +267,7 @@ static struct nf_hook_ops nf_nat_ops[] __read_mostly = {
{
{
.
hook
=
nf_nat_local_fn
,
.
hook
=
nf_nat_local_fn
,
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
pf
=
PF_INET
,
.
pf
=
NFPROTO_IPV4
,
.
hooknum
=
NF_INET_LOCAL_OUT
,
.
hooknum
=
NF_INET_LOCAL_OUT
,
.
priority
=
NF_IP_PRI_NAT_DST
,
.
priority
=
NF_IP_PRI_NAT_DST
,
},
},
...
@@ -275,7 +275,7 @@ static struct nf_hook_ops nf_nat_ops[] __read_mostly = {
...
@@ -275,7 +275,7 @@ static struct nf_hook_ops nf_nat_ops[] __read_mostly = {
{
{
.
hook
=
nf_nat_fn
,
.
hook
=
nf_nat_fn
,
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
pf
=
PF_INET
,
.
pf
=
NFPROTO_IPV4
,
.
hooknum
=
NF_INET_LOCAL_IN
,
.
hooknum
=
NF_INET_LOCAL_IN
,
.
priority
=
NF_IP_PRI_NAT_SRC
,
.
priority
=
NF_IP_PRI_NAT_SRC
,
},
},
...
...
net/ipv6/netfilter/ip6table_filter.c
浏览文件 @
24c232d8
...
@@ -95,21 +95,21 @@ static struct nf_hook_ops ip6t_ops[] __read_mostly = {
...
@@ -95,21 +95,21 @@ static struct nf_hook_ops ip6t_ops[] __read_mostly = {
{
{
.
hook
=
ip6t_in_hook
,
.
hook
=
ip6t_in_hook
,
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
pf
=
PF_INET
6
,
.
pf
=
NFPROTO_IPV
6
,
.
hooknum
=
NF_INET_LOCAL_IN
,
.
hooknum
=
NF_INET_LOCAL_IN
,
.
priority
=
NF_IP6_PRI_FILTER
,
.
priority
=
NF_IP6_PRI_FILTER
,
},
},
{
{
.
hook
=
ip6t_in_hook
,
.
hook
=
ip6t_in_hook
,
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
pf
=
PF_INET
6
,
.
pf
=
NFPROTO_IPV
6
,
.
hooknum
=
NF_INET_FORWARD
,
.
hooknum
=
NF_INET_FORWARD
,
.
priority
=
NF_IP6_PRI_FILTER
,
.
priority
=
NF_IP6_PRI_FILTER
,
},
},
{
{
.
hook
=
ip6t_local_out_hook
,
.
hook
=
ip6t_local_out_hook
,
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
pf
=
PF_INET
6
,
.
pf
=
NFPROTO_IPV
6
,
.
hooknum
=
NF_INET_LOCAL_OUT
,
.
hooknum
=
NF_INET_LOCAL_OUT
,
.
priority
=
NF_IP6_PRI_FILTER
,
.
priority
=
NF_IP6_PRI_FILTER
,
},
},
...
...
net/ipv6/netfilter/ip6table_mangle.c
浏览文件 @
24c232d8
...
@@ -136,35 +136,35 @@ static struct nf_hook_ops ip6t_ops[] __read_mostly = {
...
@@ -136,35 +136,35 @@ static struct nf_hook_ops ip6t_ops[] __read_mostly = {
{
{
.
hook
=
ip6t_in_hook
,
.
hook
=
ip6t_in_hook
,
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
pf
=
PF_INET
6
,
.
pf
=
NFPROTO_IPV
6
,
.
hooknum
=
NF_INET_PRE_ROUTING
,
.
hooknum
=
NF_INET_PRE_ROUTING
,
.
priority
=
NF_IP6_PRI_MANGLE
,
.
priority
=
NF_IP6_PRI_MANGLE
,
},
},
{
{
.
hook
=
ip6t_in_hook
,
.
hook
=
ip6t_in_hook
,
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
pf
=
PF_INET
6
,
.
pf
=
NFPROTO_IPV
6
,
.
hooknum
=
NF_INET_LOCAL_IN
,
.
hooknum
=
NF_INET_LOCAL_IN
,
.
priority
=
NF_IP6_PRI_MANGLE
,
.
priority
=
NF_IP6_PRI_MANGLE
,
},
},
{
{
.
hook
=
ip6t_in_hook
,
.
hook
=
ip6t_in_hook
,
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
pf
=
PF_INET
6
,
.
pf
=
NFPROTO_IPV
6
,
.
hooknum
=
NF_INET_FORWARD
,
.
hooknum
=
NF_INET_FORWARD
,
.
priority
=
NF_IP6_PRI_MANGLE
,
.
priority
=
NF_IP6_PRI_MANGLE
,
},
},
{
{
.
hook
=
ip6t_local_out_hook
,
.
hook
=
ip6t_local_out_hook
,
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
pf
=
PF_INET
6
,
.
pf
=
NFPROTO_IPV
6
,
.
hooknum
=
NF_INET_LOCAL_OUT
,
.
hooknum
=
NF_INET_LOCAL_OUT
,
.
priority
=
NF_IP6_PRI_MANGLE
,
.
priority
=
NF_IP6_PRI_MANGLE
,
},
},
{
{
.
hook
=
ip6t_post_routing_hook
,
.
hook
=
ip6t_post_routing_hook
,
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
pf
=
PF_INET
6
,
.
pf
=
NFPROTO_IPV
6
,
.
hooknum
=
NF_INET_POST_ROUTING
,
.
hooknum
=
NF_INET_POST_ROUTING
,
.
priority
=
NF_IP6_PRI_MANGLE
,
.
priority
=
NF_IP6_PRI_MANGLE
,
},
},
...
...
net/ipv6/netfilter/ip6table_raw.c
浏览文件 @
24c232d8
...
@@ -68,14 +68,14 @@ ip6t_local_out_hook(unsigned int hook,
...
@@ -68,14 +68,14 @@ ip6t_local_out_hook(unsigned int hook,
static
struct
nf_hook_ops
ip6t_ops
[]
__read_mostly
=
{
static
struct
nf_hook_ops
ip6t_ops
[]
__read_mostly
=
{
{
{
.
hook
=
ip6t_pre_routing_hook
,
.
hook
=
ip6t_pre_routing_hook
,
.
pf
=
PF_INET
6
,
.
pf
=
NFPROTO_IPV
6
,
.
hooknum
=
NF_INET_PRE_ROUTING
,
.
hooknum
=
NF_INET_PRE_ROUTING
,
.
priority
=
NF_IP6_PRI_FIRST
,
.
priority
=
NF_IP6_PRI_FIRST
,
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
},
},
{
{
.
hook
=
ip6t_local_out_hook
,
.
hook
=
ip6t_local_out_hook
,
.
pf
=
PF_INET
6
,
.
pf
=
NFPROTO_IPV
6
,
.
hooknum
=
NF_INET_LOCAL_OUT
,
.
hooknum
=
NF_INET_LOCAL_OUT
,
.
priority
=
NF_IP6_PRI_FIRST
,
.
priority
=
NF_IP6_PRI_FIRST
,
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
...
...
net/ipv6/netfilter/ip6table_security.c
浏览文件 @
24c232d8
...
@@ -101,21 +101,21 @@ static struct nf_hook_ops ip6t_ops[] __read_mostly = {
...
@@ -101,21 +101,21 @@ static struct nf_hook_ops ip6t_ops[] __read_mostly = {
{
{
.
hook
=
ip6t_local_in_hook
,
.
hook
=
ip6t_local_in_hook
,
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
pf
=
PF_INET
6
,
.
pf
=
NFPROTO_IPV
6
,
.
hooknum
=
NF_INET_LOCAL_IN
,
.
hooknum
=
NF_INET_LOCAL_IN
,
.
priority
=
NF_IP6_PRI_SECURITY
,
.
priority
=
NF_IP6_PRI_SECURITY
,
},
},
{
{
.
hook
=
ip6t_forward_hook
,
.
hook
=
ip6t_forward_hook
,
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
pf
=
PF_INET
6
,
.
pf
=
NFPROTO_IPV
6
,
.
hooknum
=
NF_INET_FORWARD
,
.
hooknum
=
NF_INET_FORWARD
,
.
priority
=
NF_IP6_PRI_SECURITY
,
.
priority
=
NF_IP6_PRI_SECURITY
,
},
},
{
{
.
hook
=
ip6t_local_out_hook
,
.
hook
=
ip6t_local_out_hook
,
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
pf
=
PF_INET
6
,
.
pf
=
NFPROTO_IPV
6
,
.
hooknum
=
NF_INET_LOCAL_OUT
,
.
hooknum
=
NF_INET_LOCAL_OUT
,
.
priority
=
NF_IP6_PRI_SECURITY
,
.
priority
=
NF_IP6_PRI_SECURITY
,
},
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录