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
b7de67da
Commit
b7de67da
authored
Aug 23, 2004
by
net[shemminger]!shemminger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Import patch hfsc-sc
(Logical change 1.69)
parent
eea4199a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
5 deletions
+20
-5
tc/q_hfsc.c
tc/q_hfsc.c
+20
-5
No files found.
tc/q_hfsc.c
View file @
b7de67da
...
...
@@ -41,7 +41,7 @@ static void
explain_class
(
void
)
{
fprintf
(
stderr
,
"Usage: ... hfsc [
rt SC ] [ ls SC
] [ ul SC ]
\n
"
"Usage: ... hfsc [
[ rt SC ] [ ls SC ] | [ sc SC ]
] [ ul SC ]
\n
"
"
\n
"
"SC := [ [ m1 BPS ] [ d SEC ] m2 BPS
\n
"
"
\n
"
...
...
@@ -166,6 +166,15 @@ hfsc_parse_class_opt(struct qdisc_util *qu, int argc, char **argv,
return
-
1
;
}
fsc_ok
=
1
;
}
else
if
(
matches
(
*
argv
,
"sc"
)
==
0
)
{
NEXT_ARG
();
if
(
hfsc_get_sc
(
&
argc
,
&
argv
,
&
rsc
)
<
0
)
{
explain1
(
"sc"
);
return
-
1
;
}
memcpy
(
&
fsc
,
&
rsc
,
sizeof
(
fsc
));
rsc_ok
=
1
;
fsc_ok
=
1
;
}
else
if
(
matches
(
*
argv
,
"ul"
)
==
0
)
{
NEXT_ARG
();
if
(
hfsc_get_sc
(
&
argc
,
&
argv
,
&
usc
)
<
0
)
{
...
...
@@ -252,10 +261,16 @@ hfsc_print_class_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
usc
=
RTA_DATA
(
tb
[
TCA_HFSC_USC
]);
}
if
(
rsc
!=
NULL
)
hfsc_print_sc
(
f
,
"rt"
,
rsc
);
if
(
fsc
!=
NULL
)
hfsc_print_sc
(
f
,
"ls"
,
fsc
);
if
(
rsc
!=
NULL
&&
fsc
!=
NULL
&&
memcmp
(
rsc
,
fsc
,
sizeof
(
*
rsc
))
==
0
)
hfsc_print_sc
(
f
,
"sc"
,
rsc
);
else
{
if
(
rsc
!=
NULL
)
hfsc_print_sc
(
f
,
"rt"
,
rsc
);
if
(
fsc
!=
NULL
)
hfsc_print_sc
(
f
,
"ls"
,
fsc
);
}
if
(
usc
!=
NULL
)
hfsc_print_sc
(
f
,
"ul"
,
usc
);
...
...
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