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
e8ced837
Commit
e8ced837
authored
Mar 19, 2003
by
Art Haas
Committed by
David S. Miller
Mar 19, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Add C99 initializers for net/ipv6/netfilter code.
parent
054f7565
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
129 additions
and
62 deletions
+129
-62
net/ipv6/netfilter/ip6_queue.c
net/ipv6/netfilter/ip6_queue.c
+2
-8
net/ipv6/netfilter/ip6_tables.c
net/ipv6/netfilter/ip6_tables.c
+36
-15
net/ipv6/netfilter/ip6t_ah.c
net/ipv6/netfilter/ip6t_ah.c
+6
-2
net/ipv6/netfilter/ip6t_dst.c
net/ipv6/netfilter/ip6t_dst.c
+6
-3
net/ipv6/netfilter/ip6t_esp.c
net/ipv6/netfilter/ip6t_esp.c
+6
-2
net/ipv6/netfilter/ip6t_eui64.c
net/ipv6/netfilter/ip6t_eui64.c
+6
-2
net/ipv6/netfilter/ip6t_frag.c
net/ipv6/netfilter/ip6t_frag.c
+6
-2
net/ipv6/netfilter/ip6t_hbh.c
net/ipv6/netfilter/ip6t_hbh.c
+7
-3
net/ipv6/netfilter/ip6t_hl.c
net/ipv6/netfilter/ip6t_hl.c
+6
-2
net/ipv6/netfilter/ip6t_ipv6header.c
net/ipv6/netfilter/ip6t_ipv6header.c
+6
-8
net/ipv6/netfilter/ip6t_length.c
net/ipv6/netfilter/ip6t_length.c
+6
-2
net/ipv6/netfilter/ip6t_limit.c
net/ipv6/netfilter/ip6t_limit.c
+6
-3
net/ipv6/netfilter/ip6t_mac.c
net/ipv6/netfilter/ip6t_mac.c
+6
-2
net/ipv6/netfilter/ip6t_mark.c
net/ipv6/netfilter/ip6t_mark.c
+6
-2
net/ipv6/netfilter/ip6t_multiport.c
net/ipv6/netfilter/ip6t_multiport.c
+6
-2
net/ipv6/netfilter/ip6t_owner.c
net/ipv6/netfilter/ip6t_owner.c
+6
-2
net/ipv6/netfilter/ip6t_rt.c
net/ipv6/netfilter/ip6t_rt.c
+6
-2
No files found.
net/ipv6/netfilter/ip6_queue.c
View file @
e8ced837
...
...
@@ -558,9 +558,7 @@ ipq_rcv_dev_event(struct notifier_block *this,
}
static
struct
notifier_block
ipq_dev_notifier
=
{
ipq_rcv_dev_event
,
NULL
,
0
.
notifier_call
=
ipq_rcv_dev_event
,
};
static
int
...
...
@@ -580,9 +578,7 @@ ipq_rcv_nl_event(struct notifier_block *this,
}
static
struct
notifier_block
ipq_nl_notifier
=
{
ipq_rcv_nl_event
,
NULL
,
0
.
notifier_call
=
ipq_rcv_nl_event
,
};
static
int
sysctl_maxlen
=
IPQ_QMAX_DEFAULT
;
...
...
@@ -604,7 +600,6 @@ static ctl_table ipq_dir_table[] = {
{
.
ctl_name
=
NET_IPV6
,
.
procname
=
"ipv6"
,
.
maxlen
=
0
,
.
mode
=
0555
,
.
child
=
ipq_table
},
...
...
@@ -615,7 +610,6 @@ static ctl_table ipq_root_table[] = {
{
.
ctl_name
=
CTL_NET
,
.
procname
=
"net"
,
.
maxlen
=
0
,
.
mode
=
0555
,
.
child
=
ipq_dir_table
},
...
...
net/ipv6/netfilter/ip6_tables.c
View file @
e8ced837
...
...
@@ -1735,21 +1735,42 @@ icmp6_checkentry(const char *tablename,
}
/* The built-in targets: standard (NULL) and error. */
static
struct
ip6t_target
ip6t_standard_target
=
{
{
NULL
,
NULL
},
IP6T_STANDARD_TARGET
,
NULL
,
NULL
,
NULL
};
static
struct
ip6t_target
ip6t_error_target
=
{
{
NULL
,
NULL
},
IP6T_ERROR_TARGET
,
ip6t_error
,
NULL
,
NULL
};
static
struct
nf_sockopt_ops
ip6t_sockopts
=
{
{
NULL
,
NULL
},
PF_INET6
,
IP6T_BASE_CTL
,
IP6T_SO_SET_MAX
+
1
,
do_ip6t_set_ctl
,
IP6T_BASE_CTL
,
IP6T_SO_GET_MAX
+
1
,
do_ip6t_get_ctl
,
0
,
NULL
};
static
struct
ip6t_match
tcp_matchstruct
=
{
{
NULL
,
NULL
},
"tcp"
,
&
tcp_match
,
&
tcp_checkentry
,
NULL
};
static
struct
ip6t_match
udp_matchstruct
=
{
{
NULL
,
NULL
},
"udp"
,
&
udp_match
,
&
udp_checkentry
,
NULL
};
static
struct
ip6t_match
icmp6_matchstruct
=
{
{
NULL
,
NULL
},
"icmp6"
,
&
icmp6_match
,
&
icmp6_checkentry
,
NULL
};
static
struct
ip6t_target
ip6t_standard_target
=
{
.
name
=
IP6T_STANDARD_TARGET
,
};
static
struct
ip6t_target
ip6t_error_target
=
{
.
name
=
IP6T_ERROR_TARGET
,
.
target
=
ip6t_error
,
};
static
struct
nf_sockopt_ops
ip6t_sockopts
=
{
.
pf
=
PF_INET6
,
.
set_optmin
=
IP6T_BASE_CTL
,
.
set_optmax
=
IP6T_SO_SET_MAX
+
1
,
.
set
=
do_ip6t_set_ctl
,
.
get_optmin
=
IP6T_BASE_CTL
,
.
get_optmax
=
IP6T_SO_GET_MAX
+
1
,
.
get
=
do_ip6t_get_ctl
,
};
static
struct
ip6t_match
tcp_matchstruct
=
{
.
name
=
"tcp"
,
.
match
=
&
tcp_match
,
.
checkentry
=
&
tcp_checkentry
,
};
static
struct
ip6t_match
udp_matchstruct
=
{
.
name
=
"udp"
,
.
match
=
&
udp_match
,
.
checkentry
=
&
udp_checkentry
,
};
static
struct
ip6t_match
icmp6_matchstruct
=
{
.
name
=
"icmp6"
,
.
match
=
&
icmp6_match
,
.
checkentry
=
&
icmp6_checkentry
,
};
#ifdef CONFIG_PROC_FS
static
inline
int
print_name
(
const
struct
ip6t_table
*
t
,
...
...
net/ipv6/netfilter/ip6t_ah.c
View file @
e8ced837
...
...
@@ -200,8 +200,12 @@ checkentry(const char *tablename,
return
1
;
}
static
struct
ip6t_match
ah_match
=
{
{
NULL
,
NULL
},
"ah"
,
&
match
,
&
checkentry
,
NULL
,
THIS_MODULE
};
static
struct
ip6t_match
ah_match
=
{
.
name
=
"ah"
,
.
match
=
&
match
,
.
checkentry
=
&
checkentry
,
.
me
=
THIS_MODULE
,
};
static
int
__init
init
(
void
)
{
...
...
net/ipv6/netfilter/ip6t_dst.c
View file @
e8ced837
...
...
@@ -265,12 +265,15 @@ checkentry(const char *tablename,
return
1
;
}
static
struct
ip6t_match
opts_match
static
struct
ip6t_match
opts_match
=
{
#if HOPBYHOP
=
{
{
NULL
,
NULL
},
"hbh"
,
&
match
,
&
checkentry
,
NULL
,
THIS_MODULE
};
.
name
=
"hbh"
,
#else
=
{
{
NULL
,
NULL
},
"dst"
,
&
match
,
&
checkentry
,
NULL
,
THIS_MODULE
};
.
name
=
"dst"
,
#endif
.
match
=
&
match
,
.
checkentry
=
&
checkentry
,
};
static
int
__init
init
(
void
)
{
...
...
net/ipv6/netfilter/ip6t_esp.c
View file @
e8ced837
...
...
@@ -168,8 +168,12 @@ checkentry(const char *tablename,
return
1
;
}
static
struct
ip6t_match
esp_match
=
{
{
NULL
,
NULL
},
"esp"
,
&
match
,
&
checkentry
,
NULL
,
THIS_MODULE
};
static
struct
ip6t_match
esp_match
=
{
.
name
=
"esp"
,
.
match
=
&
match
,
.
checkentry
=
&
checkentry
,
.
me
=
THIS_MODULE
,
};
static
int
__init
init
(
void
)
{
...
...
net/ipv6/netfilter/ip6t_eui64.c
View file @
e8ced837
...
...
@@ -69,8 +69,12 @@ ip6t_eui64_checkentry(const char *tablename,
return
1
;
}
static
struct
ip6t_match
eui64_match
=
{
{
NULL
,
NULL
},
"eui64"
,
&
match
,
&
ip6t_eui64_checkentry
,
NULL
,
THIS_MODULE
};
static
struct
ip6t_match
eui64_match
=
{
.
name
=
"eui64"
,
.
match
=
&
match
,
.
checkentry
=
&
ip6t_eui64_checkentry
,
.
me
=
THIS_MODULE
,
};
static
int
__init
init
(
void
)
{
...
...
net/ipv6/netfilter/ip6t_frag.c
View file @
e8ced837
...
...
@@ -232,8 +232,12 @@ checkentry(const char *tablename,
return
1
;
}
static
struct
ip6t_match
frag_match
=
{
{
NULL
,
NULL
},
"frag"
,
&
match
,
&
checkentry
,
NULL
,
THIS_MODULE
};
static
struct
ip6t_match
frag_match
=
{
.
name
=
"frag"
,
.
match
=
&
match
,
.
checkentry
=
&
checkentry
,
.
me
=
THIS_MODULE
,
};
static
int
__init
init
(
void
)
{
...
...
net/ipv6/netfilter/ip6t_hbh.c
View file @
e8ced837
...
...
@@ -265,12 +265,16 @@ checkentry(const char *tablename,
return
1
;
}
static
struct
ip6t_match
opts_match
static
struct
ip6t_match
opts_match
=
{
#if HOPBYHOP
=
{
{
NULL
,
NULL
},
"hbh"
,
&
match
,
&
checkentry
,
NULL
,
THIS_MODULE
};
.
name
=
"hbh"
,
#else
=
{
{
NULL
,
NULL
},
"dst"
,
&
match
,
&
checkentry
,
NULL
,
THIS_MODULE
};
.
name
=
"dst"
,
#endif
.
match
=
&
match
,
.
checkentry
=
&
checkentry
,
.
me
=
THIS_MODULE
,
};
static
int
__init
init
(
void
)
{
...
...
net/ipv6/netfilter/ip6t_hl.c
View file @
e8ced837
...
...
@@ -56,8 +56,12 @@ static int checkentry(const char *tablename, const struct ip6t_ip6 *ip,
return
1
;
}
static
struct
ip6t_match
hl_match
=
{
{
NULL
,
NULL
},
"hl"
,
&
match
,
&
checkentry
,
NULL
,
THIS_MODULE
};
static
struct
ip6t_match
hl_match
=
{
.
name
=
"hl"
,
.
match
=
&
match
,
.
checkentry
=
&
checkentry
,
.
me
=
THIS_MODULE
,
};
static
int
__init
init
(
void
)
{
...
...
net/ipv6/netfilter/ip6t_ipv6header.c
View file @
e8ced837
...
...
@@ -196,14 +196,12 @@ ipv6header_destroy(void *matchinfo,
return
;
}
static
struct
ip6t_match
ip6t_ipv6header_match
=
{
{
NULL
,
NULL
},
"ipv6header"
,
&
ipv6header_match
,
&
ipv6header_checkentry
,
&
ipv6header_destroy
,
THIS_MODULE
static
struct
ip6t_match
ip6t_ipv6header_match
=
{
.
name
=
"ipv6header"
,
.
match
=
&
ipv6header_match
,
.
checkentry
=
&
ipv6header_checkentry
,
.
destroy
=
&
ipv6header_destroy
,
.
me
=
THIS_MODULE
,
};
static
int
__init
ipv6header_init
(
void
)
...
...
net/ipv6/netfilter/ip6t_length.c
View file @
e8ced837
...
...
@@ -34,8 +34,12 @@ checkentry(const char *tablename,
return
1
;
}
static
struct
ip6t_match
length_match
=
{
{
NULL
,
NULL
},
"length"
,
&
match
,
&
checkentry
,
NULL
,
THIS_MODULE
};
static
struct
ip6t_match
length_match
=
{
.
name
=
"length"
,
.
match
=
&
match
,
.
checkentry
=
&
checkentry
,
.
me
=
THIS_MODULE
,
};
static
int
__init
init
(
void
)
{
...
...
net/ipv6/netfilter/ip6t_limit.c
View file @
e8ced837
...
...
@@ -115,9 +115,12 @@ ip6t_limit_checkentry(const char *tablename,
return
1
;
}
static
struct
ip6t_match
ip6t_limit_reg
=
{
{
NULL
,
NULL
},
"limit"
,
ip6t_limit_match
,
ip6t_limit_checkentry
,
NULL
,
THIS_MODULE
};
static
struct
ip6t_match
ip6t_limit_reg
=
{
.
name
=
"limit"
,
.
match
=
ip6t_limit_match
,
.
checkentry
=
ip6t_limit_checkentry
,
.
me
=
THIS_MODULE
,
};
static
int
__init
init
(
void
)
{
...
...
net/ipv6/netfilter/ip6t_mac.c
View file @
e8ced837
...
...
@@ -47,8 +47,12 @@ ip6t_mac_checkentry(const char *tablename,
return
1
;
}
static
struct
ip6t_match
mac_match
=
{
{
NULL
,
NULL
},
"mac"
,
&
match
,
&
ip6t_mac_checkentry
,
NULL
,
THIS_MODULE
};
static
struct
ip6t_match
mac_match
=
{
.
name
=
"mac"
,
.
match
=
&
match
,
.
checkentry
=
&
ip6t_mac_checkentry
,
.
me
=
THIS_MODULE
,
};
static
int
__init
init
(
void
)
{
...
...
net/ipv6/netfilter/ip6t_mark.c
View file @
e8ced837
...
...
@@ -33,8 +33,12 @@ checkentry(const char *tablename,
return
1
;
}
static
struct
ip6t_match
mark_match
=
{
{
NULL
,
NULL
},
"mark"
,
&
match
,
&
checkentry
,
NULL
,
THIS_MODULE
};
static
struct
ip6t_match
mark_match
=
{
.
name
=
"mark"
,
.
match
=
&
match
,
.
checkentry
=
&
checkentry
,
.
me
=
THIS_MODULE
,
};
static
int
__init
init
(
void
)
{
...
...
net/ipv6/netfilter/ip6t_multiport.c
View file @
e8ced837
...
...
@@ -84,8 +84,12 @@ checkentry(const char *tablename,
&&
multiinfo
->
count
<=
IP6T_MULTI_PORTS
;
}
static
struct
ip6t_match
multiport_match
=
{
{
NULL
,
NULL
},
"multiport"
,
&
match
,
&
checkentry
,
NULL
,
THIS_MODULE
};
static
struct
ip6t_match
multiport_match
=
{
.
name
=
"multiport"
,
.
match
=
&
match
,
.
checkentry
=
&
checkentry
,
.
me
=
THIS_MODULE
,
};
static
int
__init
init
(
void
)
{
...
...
net/ipv6/netfilter/ip6t_owner.c
View file @
e8ced837
...
...
@@ -142,8 +142,12 @@ checkentry(const char *tablename,
return
1
;
}
static
struct
ip6t_match
owner_match
=
{
{
NULL
,
NULL
},
"owner"
,
&
match
,
&
checkentry
,
NULL
,
THIS_MODULE
};
static
struct
ip6t_match
owner_match
=
{
.
name
=
"owner"
,
.
match
=
&
match
,
.
checkentry
=
&
checkentry
,
.
me
=
THIS_MODULE
,
};
static
int
__init
init
(
void
)
{
...
...
net/ipv6/netfilter/ip6t_rt.c
View file @
e8ced837
...
...
@@ -287,8 +287,12 @@ checkentry(const char *tablename,
return
1
;
}
static
struct
ip6t_match
rt_match
=
{
{
NULL
,
NULL
},
"rt"
,
&
match
,
&
checkentry
,
NULL
,
THIS_MODULE
};
static
struct
ip6t_match
rt_match
=
{
.
name
=
"rt"
,
.
match
=
&
match
,
.
checkentry
=
&
checkentry
,
.
me
=
THIS_MODULE
,
};
static
int
__init
init
(
void
)
{
...
...
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