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
302d3fb7
Commit
302d3fb7
authored
Sep 25, 2006
by
Stephen Hemminger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More TC patches from Jamal.
Signed-off-by:
Stephen Hemminger
<
shemminger@osdl.org
>
parent
93576793
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
19 deletions
+20
-19
tc/m_action.c
tc/m_action.c
+13
-12
tc/m_gact.c
tc/m_gact.c
+4
-4
tc/tc_class.c
tc/tc_class.c
+1
-1
tc/tc_filter.c
tc/tc_filter.c
+1
-1
tc/tc_qdisc.c
tc/tc_qdisc.c
+1
-1
No files found.
tc/m_action.c
View file @
302d3fb7
...
...
@@ -43,21 +43,22 @@ void act_usage(void)
* with any action .so from the old days. But if someone really
* does that, they would know how to fix this ..
*
*/
*/
fprintf
(
stderr
,
"usage: tc actions <ACTSPECOP>*
\n
"
);
fprintf
(
stderr
,
"Where:
\t
ACTSPECOP := ACR | GD | FL
\n
"
"
\t
ACR := add | change | replace <ACTSPEC>*
\n
"
"
\t
GD := get | delete | <ACTISPEC>*
\n
"
"
\t
FL := ls | list | flush | <ACTNAMESPEC>
\n
"
"
\t
ACTNAMESPEC := action <ACTNAME>
\n
"
"
\t
ACTISPEC := <ACTNAMESPEC> <INDEXSPEC>
\n
"
"
\t
ACTSPEC := action <ACTDETAIL> [INDEXSPEC]
\n
"
"
\t
INDEXSPEC := index <32 bit indexvalue>
\n
"
"
\t
ACTDETAIL := <ACTNAME> <ACTPARAMS>
\n
"
"
\t\t
Example ACTNAME is gact, mirred etc
\n
"
"
\t\t
Each action has its own parameters (ACTPARAMS)
\n
"
"
\n
"
);
"
\t
ACR := add | change | replace <ACTSPEC>*
\n
"
"
\t
GD := get | delete | <ACTISPEC>*
\n
"
"
\t
FL := ls | list | flush | <ACTNAMESPEC>
\n
"
"
\t
ACTNAMESPEC := action <ACTNAME>
\n
"
"
\t
ACTISPEC := <ACTNAMESPEC> <INDEXSPEC>
\n
"
"
\t
ACTSPEC := action <ACTDETAIL> [INDEXSPEC]
\n
"
"
\t
INDEXSPEC := index <32 bit indexvalue>
\n
"
"
\t
ACTDETAIL := <ACTNAME> <ACTPARAMS>
\n
"
"
\t\t
Example ACTNAME is gact, mirred etc
\n
"
"
\t\t
Each action has its own parameters (ACTPARAMS)
\n
"
"
\n
"
);
exit
(
-
1
);
}
...
...
tc/m_gact.c
View file @
302d3fb7
...
...
@@ -50,16 +50,17 @@ explain(void)
"
\t
RANDTYPE := netrand | determ
\n
"
"
\t
VAL : = value not exceeding 10000
\n
"
"
\t
INDEX := index value used
\n
"
"
\n
"
);
"
\n
"
);
#else
fprintf
(
stderr
,
"Usage: ... gact <ACTION> [INDEX]
\n
"
);
fprintf
(
stderr
,
"Where:
\t
ACTION := reclassify | drop | continue | pass
\n
"
"Where:
\t
ACTION := reclassify | drop | continue | pass
\n
"
"
\t
INDEX := index value used
\n
"
"
\n
"
);
#endif
}
static
void
usage
(
void
)
{
...
...
@@ -67,7 +68,6 @@ usage(void)
exit
(
-
1
);
}
int
get_act
(
char
***
argv_p
)
{
...
...
@@ -180,7 +180,7 @@ parse_gact(struct action_util *a, int *argc_p, char ***argv_p, int tca_id, struc
argv
++
;
ok
++
;
}
else
if
(
matches
(
*
argv
,
"help"
)
==
0
)
{
usage
();
usage
();
}
}
...
...
tc/tc_class.c
View file @
302d3fb7
...
...
@@ -29,7 +29,7 @@ static void usage(void);
static
void
usage
(
void
)
{
fprintf
(
stderr
,
"Usage: tc class [ add | del | change |
replace
] dev STRING
\n
"
);
fprintf
(
stderr
,
"Usage: tc class [ add | del | change |
get
] dev STRING
\n
"
);
fprintf
(
stderr
,
" [ classid CLASSID ] [ root | parent CLASSID ]
\n
"
);
fprintf
(
stderr
,
" [ [ QDISC_KIND ] [ help | OPTIONS ] ]
\n
"
);
fprintf
(
stderr
,
"
\n
"
);
...
...
tc/tc_filter.c
View file @
302d3fb7
...
...
@@ -32,7 +32,7 @@ static void usage(void);
static
void
usage
(
void
)
{
fprintf
(
stderr
,
"Usage: tc filter [ add | del | change |
replace
] dev STRING
\n
"
);
fprintf
(
stderr
,
"Usage: tc filter [ add | del | change |
get
] dev STRING
\n
"
);
fprintf
(
stderr
,
" [ pref PRIO ] [ protocol PROTO ]
\n
"
);
fprintf
(
stderr
,
" [ estimator INTERVAL TIME_CONSTANT ]
\n
"
);
fprintf
(
stderr
,
" [ root | classid CLASSID ] [ handle FILTERID ]
\n
"
);
...
...
tc/tc_qdisc.c
View file @
302d3fb7
...
...
@@ -29,7 +29,7 @@ static int usage(void);
static
int
usage
(
void
)
{
fprintf
(
stderr
,
"Usage: tc qdisc [ add | del | replace | change ] dev STRING
\n
"
);
fprintf
(
stderr
,
"Usage: tc qdisc [ add | del | replace | change
| get
] dev STRING
\n
"
);
fprintf
(
stderr
,
" [ handle QHANDLE ] [ root | ingress | parent CLASSID ]
\n
"
);
fprintf
(
stderr
,
" [ estimator INTERVAL TIME_CONSTANT ]
\n
"
);
fprintf
(
stderr
,
" [ [ QDISC_KIND ] [ help | OPTIONS ] ]
\n
"
);
...
...
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