Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
b4467288
Commit
b4467288
authored
Mar 24, 2010
by
Jan Engelhardt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netfilter: xtables: merge registration structure to NFPROTO_UNSPEC
Signed-off-by:
Jan Engelhardt
<
jengelh@medozas.de
>
parent
d879e19e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
21 deletions
+10
-21
net/netfilter/xt_state.c
net/netfilter/xt_state.c
+10
-21
No files found.
net/netfilter/xt_state.c
View file @
b4467288
...
@@ -53,35 +53,24 @@ static void state_mt_destroy(const struct xt_mtdtor_param *par)
...
@@ -53,35 +53,24 @@ static void state_mt_destroy(const struct xt_mtdtor_param *par)
nf_ct_l3proto_module_put
(
par
->
family
);
nf_ct_l3proto_module_put
(
par
->
family
);
}
}
static
struct
xt_match
state_mt_reg
[]
__read_mostly
=
{
static
struct
xt_match
state_mt_reg
__read_mostly
=
{
{
.
name
=
"state"
,
.
name
=
"state"
,
.
family
=
NFPROTO_IPV4
,
.
family
=
NFPROTO_UNSPEC
,
.
checkentry
=
state_mt_check
,
.
checkentry
=
state_mt_check
,
.
match
=
state_mt
,
.
match
=
state_mt
,
.
destroy
=
state_mt_destroy
,
.
destroy
=
state_mt_destroy
,
.
matchsize
=
sizeof
(
struct
xt_state_info
),
.
matchsize
=
sizeof
(
struct
xt_state_info
),
.
me
=
THIS_MODULE
,
.
me
=
THIS_MODULE
,
},
{
.
name
=
"state"
,
.
family
=
NFPROTO_IPV6
,
.
checkentry
=
state_mt_check
,
.
match
=
state_mt
,
.
destroy
=
state_mt_destroy
,
.
matchsize
=
sizeof
(
struct
xt_state_info
),
.
me
=
THIS_MODULE
,
},
};
};
static
int
__init
state_mt_init
(
void
)
static
int
__init
state_mt_init
(
void
)
{
{
return
xt_register_match
es
(
state_mt_reg
,
ARRAY_SIZE
(
state_mt_reg
)
);
return
xt_register_match
(
&
state_mt_reg
);
}
}
static
void
__exit
state_mt_exit
(
void
)
static
void
__exit
state_mt_exit
(
void
)
{
{
xt_unregister_match
es
(
state_mt_reg
,
ARRAY_SIZE
(
state_mt_reg
)
);
xt_unregister_match
(
&
state_mt_reg
);
}
}
module_init
(
state_mt_init
);
module_init
(
state_mt_init
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment