mirror of
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git
synced 2024-11-15 22:15:13 +08:00
Fix issues with filter name conflicts and cleanup.
2004/09/04 06:16:51-07:00 net[shemminger]!kaber : prevent tc crashes (Logical change 1.81)
This commit is contained in:
parent
99475d054b
commit
6b7dff17f6
@ -135,9 +135,8 @@ static int fw_print_opt(struct filter_util *qu, FILE *f, struct rtattr *opt, __u
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct filter_util fw_util = {
|
||||
NULL,
|
||||
"fw",
|
||||
fw_parse_opt,
|
||||
fw_print_opt,
|
||||
struct filter_util fw_filter_util = {
|
||||
.id = "fw",
|
||||
.parse_fopt = fw_parse_opt,
|
||||
.print_fopt = fw_print_opt,
|
||||
};
|
||||
|
@ -167,9 +167,8 @@ static int route_print_opt(struct filter_util *qu, FILE *f, struct rtattr *opt,
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct filter_util route_util = {
|
||||
NULL,
|
||||
"route",
|
||||
route_parse_opt,
|
||||
route_print_opt,
|
||||
struct filter_util route_filter_util = {
|
||||
.id = "route",
|
||||
.parse_fopt = route_parse_opt,
|
||||
.print_fopt = route_print_opt,
|
||||
};
|
||||
|
18
tc/f_rsvp.c
18
tc/f_rsvp.c
@ -393,16 +393,14 @@ static int rsvp_print_opt(struct filter_util *qu, FILE *f, struct rtattr *opt, _
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct filter_util rsvp_util = {
|
||||
NULL,
|
||||
"rsvp",
|
||||
rsvp_parse_opt,
|
||||
rsvp_print_opt,
|
||||
struct filter_util rsvp_filter_util = {
|
||||
.id = "rsvp",
|
||||
.parse_fopt = rsvp_parse_opt,
|
||||
.print_fopt = rsvp_print_opt,
|
||||
};
|
||||
|
||||
struct filter_util rsvp6_util = {
|
||||
NULL,
|
||||
"rsvp6",
|
||||
rsvp_parse_opt,
|
||||
rsvp_print_opt,
|
||||
struct filter_util rsvp6_filter_util = {
|
||||
.id = "rsvp6",
|
||||
.parse_fopt = rsvp_parse_opt,
|
||||
.print_fopt = rsvp_print_opt,
|
||||
};
|
||||
|
@ -178,9 +178,8 @@ static int tcindex_print_opt(struct filter_util *qu, FILE *f,
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct filter_util tcindex_util = {
|
||||
NULL,
|
||||
"tcindex",
|
||||
tcindex_parse_opt,
|
||||
tcindex_print_opt,
|
||||
struct filter_util tcindex_filter_util = {
|
||||
.id = "tcindex",
|
||||
.parse_fopt = tcindex_parse_opt,
|
||||
.print_fopt = tcindex_print_opt,
|
||||
};
|
||||
|
@ -1012,9 +1012,8 @@ static int u32_print_opt(struct filter_util *qu, FILE *f, struct rtattr *opt, __
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct filter_util u32_util = {
|
||||
NULL,
|
||||
"u32",
|
||||
u32_parse_opt,
|
||||
u32_print_opt,
|
||||
struct filter_util u32_filter_util = {
|
||||
.id = "u32",
|
||||
.parse_fopt = u32_parse_opt,
|
||||
.print_fopt = u32_print_opt,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user