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
nexedi
linux
Commits
54911c4d
Commit
54911c4d
authored
Feb 09, 2003
by
Art Haas
Committed by
David S. Miller
Feb 09, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NETFILTER]: C99 initializers for net_ipv4_netfilter.
parent
0a0c06a2
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
30 deletions
+30
-30
net/ipv4/netfilter/arptable_filter.c
net/ipv4/netfilter/arptable_filter.c
+4
-4
net/ipv4/netfilter/ip_nat_ftp.c
net/ipv4/netfilter/ip_nat_ftp.c
+4
-4
net/ipv4/netfilter/ip_nat_rule.c
net/ipv4/netfilter/ip_nat_rule.c
+6
-6
net/ipv4/netfilter/iptable_filter.c
net/ipv4/netfilter/iptable_filter.c
+6
-6
net/ipv4/netfilter/iptable_mangle.c
net/ipv4/netfilter/iptable_mangle.c
+10
-10
No files found.
net/ipv4/netfilter/arptable_filter.c
View file @
54911c4d
...
...
@@ -37,10 +37,10 @@ static struct
}
initial_table
__initdata
=
{
{
"filter"
,
FILTER_VALID_HOOKS
,
3
,
sizeof
(
struct
arpt_standard
)
*
2
+
sizeof
(
struct
arpt_error
),
{
[
NF_ARP_IN
]
0
,
[
NF_ARP_OUT
]
sizeof
(
struct
arpt_standard
)
},
{
[
NF_ARP_IN
]
0
,
[
NF_ARP_OUT
]
sizeof
(
struct
arpt_standard
),
},
{
[
NF_ARP_IN
]
=
0
,
[
NF_ARP_OUT
]
=
sizeof
(
struct
arpt_standard
)
},
{
[
NF_ARP_IN
]
=
0
,
[
NF_ARP_OUT
]
=
sizeof
(
struct
arpt_standard
),
},
0
,
NULL
,
{
}
},
{
/* ARP_IN */
...
...
net/ipv4/netfilter/ip_nat_ftp.c
View file @
54911c4d
...
...
@@ -160,10 +160,10 @@ static int (*mangle[])(struct sk_buff **, u_int32_t, u_int16_t,
unsigned
int
,
struct
ip_conntrack
*
,
enum
ip_conntrack_info
)
=
{
[
IP_CT_FTP_PORT
]
mangle_rfc959_packet
,
[
IP_CT_FTP_PASV
]
mangle_rfc959_packet
,
[
IP_CT_FTP_EPRT
]
mangle_eprt_packet
,
[
IP_CT_FTP_EPSV
]
mangle_epsv_packet
=
{
[
IP_CT_FTP_PORT
]
=
mangle_rfc959_packet
,
[
IP_CT_FTP_PASV
]
=
mangle_rfc959_packet
,
[
IP_CT_FTP_EPRT
]
=
mangle_eprt_packet
,
[
IP_CT_FTP_EPSV
]
=
mangle_epsv_packet
};
static
int
ftp_data_fixup
(
const
struct
ip_ct_ftp_expect
*
ct_ftp_info
,
...
...
net/ipv4/netfilter/ip_nat_rule.c
View file @
54911c4d
...
...
@@ -56,12 +56,12 @@ static struct
}
nat_initial_table
__initdata
=
{
{
"nat"
,
NAT_VALID_HOOKS
,
4
,
sizeof
(
struct
ipt_standard
)
*
3
+
sizeof
(
struct
ipt_error
),
{
[
NF_IP_PRE_ROUTING
]
0
,
[
NF_IP_POST_ROUTING
]
sizeof
(
struct
ipt_standard
),
[
NF_IP_LOCAL_OUT
]
sizeof
(
struct
ipt_standard
)
*
2
},
{
[
NF_IP_PRE_ROUTING
]
0
,
[
NF_IP_POST_ROUTING
]
sizeof
(
struct
ipt_standard
),
[
NF_IP_LOCAL_OUT
]
sizeof
(
struct
ipt_standard
)
*
2
},
{
[
NF_IP_PRE_ROUTING
]
=
0
,
[
NF_IP_POST_ROUTING
]
=
sizeof
(
struct
ipt_standard
),
[
NF_IP_LOCAL_OUT
]
=
sizeof
(
struct
ipt_standard
)
*
2
},
{
[
NF_IP_PRE_ROUTING
]
=
0
,
[
NF_IP_POST_ROUTING
]
=
sizeof
(
struct
ipt_standard
),
[
NF_IP_LOCAL_OUT
]
=
sizeof
(
struct
ipt_standard
)
*
2
},
0
,
NULL
,
{
}
},
{
/* PRE_ROUTING */
...
...
net/ipv4/netfilter/iptable_filter.c
View file @
54911c4d
...
...
@@ -35,12 +35,12 @@ static struct
}
initial_table
__initdata
=
{
{
"filter"
,
FILTER_VALID_HOOKS
,
4
,
sizeof
(
struct
ipt_standard
)
*
3
+
sizeof
(
struct
ipt_error
),
{
[
NF_IP_LOCAL_IN
]
0
,
[
NF_IP_FORWARD
]
sizeof
(
struct
ipt_standard
),
[
NF_IP_LOCAL_OUT
]
sizeof
(
struct
ipt_standard
)
*
2
},
{
[
NF_IP_LOCAL_IN
]
0
,
[
NF_IP_FORWARD
]
sizeof
(
struct
ipt_standard
),
[
NF_IP_LOCAL_OUT
]
sizeof
(
struct
ipt_standard
)
*
2
},
{
[
NF_IP_LOCAL_IN
]
=
0
,
[
NF_IP_FORWARD
]
=
sizeof
(
struct
ipt_standard
),
[
NF_IP_LOCAL_OUT
]
=
sizeof
(
struct
ipt_standard
)
*
2
},
{
[
NF_IP_LOCAL_IN
]
=
0
,
[
NF_IP_FORWARD
]
=
sizeof
(
struct
ipt_standard
),
[
NF_IP_LOCAL_OUT
]
=
sizeof
(
struct
ipt_standard
)
*
2
},
0
,
NULL
,
{
}
},
{
/* LOCAL_IN */
...
...
net/ipv4/netfilter/iptable_mangle.c
View file @
54911c4d
...
...
@@ -48,16 +48,16 @@ static struct
}
initial_table
__initdata
=
{
{
"mangle"
,
MANGLE_VALID_HOOKS
,
6
,
sizeof
(
struct
ipt_standard
)
*
5
+
sizeof
(
struct
ipt_error
),
{
[
NF_IP_PRE_ROUTING
]
0
,
[
NF_IP_LOCAL_IN
]
sizeof
(
struct
ipt_standard
),
[
NF_IP_FORWARD
]
sizeof
(
struct
ipt_standard
)
*
2
,
[
NF_IP_LOCAL_OUT
]
sizeof
(
struct
ipt_standard
)
*
3
,
[
NF_IP_POST_ROUTING
]
sizeof
(
struct
ipt_standard
)
*
4
},
{
[
NF_IP_PRE_ROUTING
]
0
,
[
NF_IP_LOCAL_IN
]
sizeof
(
struct
ipt_standard
),
[
NF_IP_FORWARD
]
sizeof
(
struct
ipt_standard
)
*
2
,
[
NF_IP_LOCAL_OUT
]
sizeof
(
struct
ipt_standard
)
*
3
,
[
NF_IP_POST_ROUTING
]
sizeof
(
struct
ipt_standard
)
*
4
},
{
[
NF_IP_PRE_ROUTING
]
=
0
,
[
NF_IP_LOCAL_IN
]
=
sizeof
(
struct
ipt_standard
),
[
NF_IP_FORWARD
]
=
sizeof
(
struct
ipt_standard
)
*
2
,
[
NF_IP_LOCAL_OUT
]
=
sizeof
(
struct
ipt_standard
)
*
3
,
[
NF_IP_POST_ROUTING
]
=
sizeof
(
struct
ipt_standard
)
*
4
},
{
[
NF_IP_PRE_ROUTING
]
=
0
,
[
NF_IP_LOCAL_IN
]
=
sizeof
(
struct
ipt_standard
),
[
NF_IP_FORWARD
]
=
sizeof
(
struct
ipt_standard
)
*
2
,
[
NF_IP_LOCAL_OUT
]
=
sizeof
(
struct
ipt_standard
)
*
3
,
[
NF_IP_POST_ROUTING
]
=
sizeof
(
struct
ipt_standard
)
*
4
},
0
,
NULL
,
{
}
},
{
/* PRE_ROUTING */
...
...
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