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
Show 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
...
@@ -37,10 +37,10 @@ static struct
}
initial_table
__initdata
}
initial_table
__initdata
=
{
{
"filter"
,
FILTER_VALID_HOOKS
,
3
,
=
{
{
"filter"
,
FILTER_VALID_HOOKS
,
3
,
sizeof
(
struct
arpt_standard
)
*
2
+
sizeof
(
struct
arpt_error
),
sizeof
(
struct
arpt_standard
)
*
2
+
sizeof
(
struct
arpt_error
),
{
[
NF_ARP_IN
]
0
,
{
[
NF_ARP_IN
]
=
0
,
[
NF_ARP_OUT
]
sizeof
(
struct
arpt_standard
)
},
[
NF_ARP_OUT
]
=
sizeof
(
struct
arpt_standard
)
},
{
[
NF_ARP_IN
]
0
,
{
[
NF_ARP_IN
]
=
0
,
[
NF_ARP_OUT
]
sizeof
(
struct
arpt_standard
),
},
[
NF_ARP_OUT
]
=
sizeof
(
struct
arpt_standard
),
},
0
,
NULL
,
{
}
},
0
,
NULL
,
{
}
},
{
{
/* ARP_IN */
/* 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,
...
@@ -160,10 +160,10 @@ static int (*mangle[])(struct sk_buff **, u_int32_t, u_int16_t,
unsigned
int
,
unsigned
int
,
struct
ip_conntrack
*
,
struct
ip_conntrack
*
,
enum
ip_conntrack_info
)
enum
ip_conntrack_info
)
=
{
[
IP_CT_FTP_PORT
]
mangle_rfc959_packet
,
=
{
[
IP_CT_FTP_PORT
]
=
mangle_rfc959_packet
,
[
IP_CT_FTP_PASV
]
mangle_rfc959_packet
,
[
IP_CT_FTP_PASV
]
=
mangle_rfc959_packet
,
[
IP_CT_FTP_EPRT
]
mangle_eprt_packet
,
[
IP_CT_FTP_EPRT
]
=
mangle_eprt_packet
,
[
IP_CT_FTP_EPSV
]
mangle_epsv_packet
[
IP_CT_FTP_EPSV
]
=
mangle_epsv_packet
};
};
static
int
ftp_data_fixup
(
const
struct
ip_ct_ftp_expect
*
ct_ftp_info
,
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
...
@@ -56,12 +56,12 @@ static struct
}
nat_initial_table
__initdata
}
nat_initial_table
__initdata
=
{
{
"nat"
,
NAT_VALID_HOOKS
,
4
,
=
{
{
"nat"
,
NAT_VALID_HOOKS
,
4
,
sizeof
(
struct
ipt_standard
)
*
3
+
sizeof
(
struct
ipt_error
),
sizeof
(
struct
ipt_standard
)
*
3
+
sizeof
(
struct
ipt_error
),
{
[
NF_IP_PRE_ROUTING
]
0
,
{
[
NF_IP_PRE_ROUTING
]
=
0
,
[
NF_IP_POST_ROUTING
]
sizeof
(
struct
ipt_standard
),
[
NF_IP_POST_ROUTING
]
=
sizeof
(
struct
ipt_standard
),
[
NF_IP_LOCAL_OUT
]
sizeof
(
struct
ipt_standard
)
*
2
},
[
NF_IP_LOCAL_OUT
]
=
sizeof
(
struct
ipt_standard
)
*
2
},
{
[
NF_IP_PRE_ROUTING
]
0
,
{
[
NF_IP_PRE_ROUTING
]
=
0
,
[
NF_IP_POST_ROUTING
]
sizeof
(
struct
ipt_standard
),
[
NF_IP_POST_ROUTING
]
=
sizeof
(
struct
ipt_standard
),
[
NF_IP_LOCAL_OUT
]
sizeof
(
struct
ipt_standard
)
*
2
},
[
NF_IP_LOCAL_OUT
]
=
sizeof
(
struct
ipt_standard
)
*
2
},
0
,
NULL
,
{
}
},
0
,
NULL
,
{
}
},
{
{
/* PRE_ROUTING */
/* PRE_ROUTING */
...
...
net/ipv4/netfilter/iptable_filter.c
View file @
54911c4d
...
@@ -35,12 +35,12 @@ static struct
...
@@ -35,12 +35,12 @@ static struct
}
initial_table
__initdata
}
initial_table
__initdata
=
{
{
"filter"
,
FILTER_VALID_HOOKS
,
4
,
=
{
{
"filter"
,
FILTER_VALID_HOOKS
,
4
,
sizeof
(
struct
ipt_standard
)
*
3
+
sizeof
(
struct
ipt_error
),
sizeof
(
struct
ipt_standard
)
*
3
+
sizeof
(
struct
ipt_error
),
{
[
NF_IP_LOCAL_IN
]
0
,
{
[
NF_IP_LOCAL_IN
]
=
0
,
[
NF_IP_FORWARD
]
sizeof
(
struct
ipt_standard
),
[
NF_IP_FORWARD
]
=
sizeof
(
struct
ipt_standard
),
[
NF_IP_LOCAL_OUT
]
sizeof
(
struct
ipt_standard
)
*
2
},
[
NF_IP_LOCAL_OUT
]
=
sizeof
(
struct
ipt_standard
)
*
2
},
{
[
NF_IP_LOCAL_IN
]
0
,
{
[
NF_IP_LOCAL_IN
]
=
0
,
[
NF_IP_FORWARD
]
sizeof
(
struct
ipt_standard
),
[
NF_IP_FORWARD
]
=
sizeof
(
struct
ipt_standard
),
[
NF_IP_LOCAL_OUT
]
sizeof
(
struct
ipt_standard
)
*
2
},
[
NF_IP_LOCAL_OUT
]
=
sizeof
(
struct
ipt_standard
)
*
2
},
0
,
NULL
,
{
}
},
0
,
NULL
,
{
}
},
{
{
/* LOCAL_IN */
/* LOCAL_IN */
...
...
net/ipv4/netfilter/iptable_mangle.c
View file @
54911c4d
...
@@ -48,16 +48,16 @@ static struct
...
@@ -48,16 +48,16 @@ static struct
}
initial_table
__initdata
}
initial_table
__initdata
=
{
{
"mangle"
,
MANGLE_VALID_HOOKS
,
6
,
=
{
{
"mangle"
,
MANGLE_VALID_HOOKS
,
6
,
sizeof
(
struct
ipt_standard
)
*
5
+
sizeof
(
struct
ipt_error
),
sizeof
(
struct
ipt_standard
)
*
5
+
sizeof
(
struct
ipt_error
),
{
[
NF_IP_PRE_ROUTING
]
0
,
{
[
NF_IP_PRE_ROUTING
]
=
0
,
[
NF_IP_LOCAL_IN
]
sizeof
(
struct
ipt_standard
),
[
NF_IP_LOCAL_IN
]
=
sizeof
(
struct
ipt_standard
),
[
NF_IP_FORWARD
]
sizeof
(
struct
ipt_standard
)
*
2
,
[
NF_IP_FORWARD
]
=
sizeof
(
struct
ipt_standard
)
*
2
,
[
NF_IP_LOCAL_OUT
]
sizeof
(
struct
ipt_standard
)
*
3
,
[
NF_IP_LOCAL_OUT
]
=
sizeof
(
struct
ipt_standard
)
*
3
,
[
NF_IP_POST_ROUTING
]
sizeof
(
struct
ipt_standard
)
*
4
},
[
NF_IP_POST_ROUTING
]
=
sizeof
(
struct
ipt_standard
)
*
4
},
{
[
NF_IP_PRE_ROUTING
]
0
,
{
[
NF_IP_PRE_ROUTING
]
=
0
,
[
NF_IP_LOCAL_IN
]
sizeof
(
struct
ipt_standard
),
[
NF_IP_LOCAL_IN
]
=
sizeof
(
struct
ipt_standard
),
[
NF_IP_FORWARD
]
sizeof
(
struct
ipt_standard
)
*
2
,
[
NF_IP_FORWARD
]
=
sizeof
(
struct
ipt_standard
)
*
2
,
[
NF_IP_LOCAL_OUT
]
sizeof
(
struct
ipt_standard
)
*
3
,
[
NF_IP_LOCAL_OUT
]
=
sizeof
(
struct
ipt_standard
)
*
3
,
[
NF_IP_POST_ROUTING
]
sizeof
(
struct
ipt_standard
)
*
4
},
[
NF_IP_POST_ROUTING
]
=
sizeof
(
struct
ipt_standard
)
*
4
},
0
,
NULL
,
{
}
},
0
,
NULL
,
{
}
},
{
{
/* PRE_ROUTING */
/* 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