Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
4ba351cf
Commit
4ba351cf
authored
Apr 14, 2009
by
Jan Engelhardt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netfilter: xtables: use NFPROTO_ in standard targets
Signed-off-by:
Jan Engelhardt
<
jengelh@medozas.de
>
parent
4b1e27e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
net/ipv4/netfilter/ip_tables.c
net/ipv4/netfilter/ip_tables.c
+3
-3
net/ipv6/netfilter/ip6_tables.c
net/ipv6/netfilter/ip6_tables.c
+3
-3
No files found.
net/ipv4/netfilter/ip_tables.c
View file @
4ba351cf
...
...
@@ -2158,7 +2158,7 @@ static bool icmp_checkentry(const struct xt_mtchk_param *par)
static
struct
xt_target
ipt_standard_target
__read_mostly
=
{
.
name
=
IPT_STANDARD_TARGET
,
.
targetsize
=
sizeof
(
int
),
.
family
=
AF_INET
,
.
family
=
NFPROTO_IPV4
,
#ifdef CONFIG_COMPAT
.
compatsize
=
sizeof
(
compat_int_t
),
.
compat_from_user
=
compat_standard_from_user
,
...
...
@@ -2170,7 +2170,7 @@ static struct xt_target ipt_error_target __read_mostly = {
.
name
=
IPT_ERROR_TARGET
,
.
target
=
ipt_error
,
.
targetsize
=
IPT_FUNCTION_MAXNAMELEN
,
.
family
=
AF_INET
,
.
family
=
NFPROTO_IPV4
,
};
static
struct
nf_sockopt_ops
ipt_sockopts
=
{
...
...
@@ -2196,7 +2196,7 @@ static struct xt_match icmp_matchstruct __read_mostly = {
.
matchsize
=
sizeof
(
struct
ipt_icmp
),
.
checkentry
=
icmp_checkentry
,
.
proto
=
IPPROTO_ICMP
,
.
family
=
AF_INET
,
.
family
=
NFPROTO_IPV4
,
};
static
int
__net_init
ip_tables_net_init
(
struct
net
*
net
)
...
...
net/ipv6/netfilter/ip6_tables.c
View file @
4ba351cf
...
...
@@ -2191,7 +2191,7 @@ static bool icmp6_checkentry(const struct xt_mtchk_param *par)
static
struct
xt_target
ip6t_standard_target
__read_mostly
=
{
.
name
=
IP6T_STANDARD_TARGET
,
.
targetsize
=
sizeof
(
int
),
.
family
=
AF_INET
6
,
.
family
=
NFPROTO_IPV
6
,
#ifdef CONFIG_COMPAT
.
compatsize
=
sizeof
(
compat_int_t
),
.
compat_from_user
=
compat_standard_from_user
,
...
...
@@ -2203,7 +2203,7 @@ static struct xt_target ip6t_error_target __read_mostly = {
.
name
=
IP6T_ERROR_TARGET
,
.
target
=
ip6t_error
,
.
targetsize
=
IP6T_FUNCTION_MAXNAMELEN
,
.
family
=
AF_INET
6
,
.
family
=
NFPROTO_IPV
6
,
};
static
struct
nf_sockopt_ops
ip6t_sockopts
=
{
...
...
@@ -2229,7 +2229,7 @@ static struct xt_match icmp6_matchstruct __read_mostly = {
.
matchsize
=
sizeof
(
struct
ip6t_icmp
),
.
checkentry
=
icmp6_checkentry
,
.
proto
=
IPPROTO_ICMPV6
,
.
family
=
AF_INET
6
,
.
family
=
NFPROTO_IPV
6
,
};
static
int
__net_init
ip6_tables_net_init
(
struct
net
*
net
)
...
...
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