Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
iproute2
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
Kirill Smelkov
iproute2
Commits
95812b56
Commit
95812b56
authored
Sep 28, 2004
by
net[shemminger]!kaber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
: prevent tc crashes
(Logical change 1.81)
parent
d31187b7
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
22 additions
and
22 deletions
+22
-22
tc/m_action.c
tc/m_action.c
+1
-1
tc/m_gact.c
tc/m_gact.c
+1
-1
tc/m_police.c
tc/m_police.c
+2
-2
tc/q_atm.c
tc/q_atm.c
+1
-1
tc/q_cbq.c
tc/q_cbq.c
+1
-1
tc/q_dsmark.c
tc/q_dsmark.c
+1
-1
tc/q_fifo.c
tc/q_fifo.c
+3
-3
tc/q_gred.c
tc/q_gred.c
+1
-1
tc/q_hfsc.c
tc/q_hfsc.c
+1
-1
tc/q_htb.c
tc/q_htb.c
+2
-2
tc/q_ingress.c
tc/q_ingress.c
+1
-1
tc/q_netem.c
tc/q_netem.c
+1
-1
tc/q_prio.c
tc/q_prio.c
+1
-1
tc/q_red.c
tc/q_red.c
+1
-1
tc/q_sfq.c
tc/q_sfq.c
+1
-1
tc/q_tbf.c
tc/q_tbf.c
+1
-1
tc/tc.c
tc/tc.c
+2
-2
No files found.
tc/m_action.c
View file @
95812b56
...
...
@@ -87,7 +87,7 @@ restart_s:
}
}
snprintf
(
buf
,
sizeof
(
buf
),
"%s_util"
,
str
);
snprintf
(
buf
,
sizeof
(
buf
),
"%s_
action_
util"
,
str
);
a
=
dlsym
(
dlh
,
buf
);
if
(
a
==
NULL
)
goto
noexist
;
...
...
tc/m_gact.c
View file @
95812b56
...
...
@@ -239,7 +239,7 @@ print_gact(struct action_util *au,FILE * f, struct rtattr *arg)
return
0
;
}
struct
action_util
gact_util
=
{
struct
action_util
gact_
action_
util
=
{
.
id
=
"gact"
,
.
parse_aopt
=
parse_gact
,
.
print_aopt
=
print_gact
,
...
...
tc/m_police.c
View file @
95812b56
...
...
@@ -26,7 +26,7 @@
#include "utils.h"
#include "tc_util.h"
struct
action_util
police_util
=
{
struct
action_util
police_
action_
util
=
{
.
id
=
"police"
,
.
parse_aopt
=
act_parse_police
,
.
print_aopt
=
print_police
,
...
...
@@ -356,5 +356,5 @@ print_police(struct action_util *a, FILE *f, struct rtattr *arg)
int
tc_print_police
(
FILE
*
f
,
struct
rtattr
*
arg
)
{
return
print_police
(
&
police_util
,
f
,
arg
);
return
print_police
(
&
police_
action_
util
,
f
,
arg
);
}
tc/q_atm.c
View file @
95812b56
...
...
@@ -250,7 +250,7 @@ static int atm_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
}
struct
qdisc_util
atm_util
=
{
struct
qdisc_util
atm_
qdisc_
util
=
{
.
id
=
"atm"
,
.
parse_qopt
=
atm_parse_opt
,
.
print_qopt
=
atm_print_opt
,
...
...
tc/q_cbq.c
View file @
95812b56
...
...
@@ -542,7 +542,7 @@ static int cbq_print_xstats(struct qdisc_util *qu, FILE *f, struct rtattr *xstat
return
0
;
}
struct
qdisc_util
cbq_util
=
{
struct
qdisc_util
cbq_
qdisc_
util
=
{
.
id
=
"cbq"
,
.
parse_qopt
=
cbq_parse_opt
,
.
print_qopt
=
cbq_print_opt
,
...
...
tc/q_dsmark.c
View file @
95812b56
...
...
@@ -168,7 +168,7 @@ static int dsmark_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
}
struct
qdisc_util
dsmark_util
=
{
struct
qdisc_util
dsmark_
qdisc_
util
=
{
.
id
=
"dsmark"
,
.
parse_qopt
=
dsmark_parse_opt
,
.
print_qopt
=
dsmark_print_opt
,
...
...
tc/q_fifo.c
View file @
95812b56
...
...
@@ -79,20 +79,20 @@ static int fifo_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
}
struct
qdisc_util
bfifo_util
=
{
struct
qdisc_util
bfifo_
qdisc_
util
=
{
.
id
=
"bfifo"
,
.
parse_qopt
=
fifo_parse_opt
,
.
print_qopt
=
fifo_print_opt
,
};
struct
qdisc_util
pfifo_util
=
{
struct
qdisc_util
pfifo_
qdisc_
util
=
{
.
id
=
"pfifo"
,
.
parse_qopt
=
fifo_parse_opt
,
.
print_qopt
=
fifo_print_opt
,
};
extern
int
prio_print_opt
(
struct
qdisc_util
*
qu
,
FILE
*
f
,
struct
rtattr
*
opt
);
struct
qdisc_util
pfifo_fast_util
=
{
struct
qdisc_util
pfifo_fast_
qdisc_
util
=
{
.
id
=
"pfifo_fast"
,
.
print_qopt
=
prio_print_opt
,
};
tc/q_gred.c
View file @
95812b56
...
...
@@ -329,7 +329,7 @@ static int gred_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
return
0
;
}
struct
qdisc_util
gred_util
=
{
struct
qdisc_util
gred_
qdisc_
util
=
{
.
id
=
"gred"
,
.
parse_qopt
=
gred_parse_opt
,
.
print_qopt
=
gred_print_opt
,
...
...
tc/q_hfsc.c
View file @
95812b56
...
...
@@ -277,7 +277,7 @@ hfsc_print_class_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
return
0
;
}
struct
qdisc_util
hfsc_util
=
{
struct
qdisc_util
hfsc_
qdisc_
util
=
{
.
id
=
"hfsc"
,
.
parse_qopt
=
hfsc_parse_opt
,
.
print_qopt
=
hfsc_print_opt
,
...
...
tc/q_htb.c
View file @
95812b56
...
...
@@ -311,7 +311,7 @@ static int htb_print_xstats(struct qdisc_util *qu, FILE *f, struct rtattr *xstat
return
0
;
}
struct
qdisc_util
htb_util
=
{
struct
qdisc_util
htb_
qdisc_
util
=
{
.
id
=
"htb"
,
.
parse_qopt
=
htb_parse_opt
,
.
print_qopt
=
htb_print_opt
,
...
...
@@ -321,7 +321,7 @@ struct qdisc_util htb_util = {
};
/* for testing of old one */
struct
qdisc_util
htb2_util
=
{
struct
qdisc_util
htb2_
qdisc_
util
=
{
.
id
=
"htb2"
,
.
parse_qopt
=
htb_parse_opt
,
.
print_qopt
=
htb_print_opt
,
...
...
tc/q_ingress.c
View file @
95812b56
...
...
@@ -62,7 +62,7 @@ static int ingress_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
return
0
;
}
struct
qdisc_util
ingress_util
=
{
struct
qdisc_util
ingress_
qdisc_
util
=
{
.
id
=
"ingress"
,
.
parse_qopt
=
ingress_parse_opt
,
.
print_qopt
=
ingress_print_opt
,
...
...
tc/q_netem.c
View file @
95812b56
...
...
@@ -285,7 +285,7 @@ static int netem_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
return
0
;
}
struct
qdisc_util
netem_util
=
{
struct
qdisc_util
netem_
qdisc_
util
=
{
.
id
=
"netem"
,
.
parse_qopt
=
netem_parse_opt
,
.
print_qopt
=
netem_print_opt
,
...
...
tc/q_prio.c
View file @
95812b56
...
...
@@ -111,7 +111,7 @@ int prio_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
return
0
;
}
struct
qdisc_util
prio_util
=
{
struct
qdisc_util
prio_
qdisc_
util
=
{
.
id
=
"prio"
,
.
parse_qopt
=
prio_parse_opt
,
.
print_qopt
=
prio_print_opt
,
...
...
tc/q_red.c
View file @
95812b56
...
...
@@ -213,7 +213,7 @@ static int red_print_xstats(struct qdisc_util *qu, FILE *f, struct rtattr *xstat
}
struct
qdisc_util
red_util
=
{
struct
qdisc_util
red_
qdisc_
util
=
{
.
id
=
"red"
,
.
parse_qopt
=
red_parse_opt
,
.
print_qopt
=
red_print_opt
,
...
...
tc/q_sfq.c
View file @
95812b56
...
...
@@ -100,7 +100,7 @@ static int sfq_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
return
0
;
}
struct
qdisc_util
sfq_util
=
{
struct
qdisc_util
sfq_
qdisc_
util
=
{
.
id
=
"sfq"
,
.
parse_qopt
=
sfq_parse_opt
,
.
print_qopt
=
sfq_print_opt
,
...
...
tc/q_tbf.c
View file @
95812b56
...
...
@@ -257,7 +257,7 @@ static int tbf_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
return
0
;
}
struct
qdisc_util
tbf_util
=
{
struct
qdisc_util
tbf_
qdisc_
util
=
{
.
id
=
"tbf"
,
.
parse_qopt
=
tbf_parse_opt
,
.
print_qopt
=
tbf_print_opt
,
...
...
tc/tc.c
View file @
95812b56
...
...
@@ -107,7 +107,7 @@ struct qdisc_util *get_qdisc_kind(const char *str)
}
}
snprintf
(
buf
,
sizeof
(
buf
),
"%s_util"
,
str
);
snprintf
(
buf
,
sizeof
(
buf
),
"%s_
qdisc_
util"
,
str
);
q
=
dlsym
(
dlh
,
buf
);
if
(
q
==
NULL
)
goto
noexist
;
...
...
@@ -152,7 +152,7 @@ struct filter_util *get_filter_kind(const char *str)
}
}
snprintf
(
buf
,
sizeof
(
buf
),
"%s_util"
,
str
);
snprintf
(
buf
,
sizeof
(
buf
),
"%s_
filter_
util"
,
str
);
q
=
dlsym
(
dlh
,
buf
);
if
(
q
==
NULL
)
goto
noexist
;
...
...
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