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
863ecb04
Commit
863ecb04
authored
Oct 06, 2014
by
Jamal Hadi Salim
Committed by
Stephen Hemminger
Oct 09, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
discourage use of direct policer interface
Signed-off-by:
Jamal Hadi Salim
<
jhs@mojatatu.com
>
parent
287bf3a9
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
13 additions
and
11 deletions
+13
-11
tc/f_basic.c
tc/f_basic.c
+2
-1
tc/f_bpf.c
tc/f_bpf.c
+3
-2
tc/f_cgroup.c
tc/f_cgroup.c
+2
-2
tc/f_flow.c
tc/f_flow.c
+1
-1
tc/f_fw.c
tc/f_fw.c
+2
-2
tc/f_rsvp.c
tc/f_rsvp.c
+2
-2
tc/f_u32.c
tc/f_u32.c
+1
-1
No files found.
tc/f_basic.c
View file @
863ecb04
...
...
@@ -27,11 +27,12 @@
static
void
explain
(
void
)
{
fprintf
(
stderr
,
"Usage: ... basic [ match EMATCH_TREE ]
[ police POLICE_SPEC ]
\n
"
);
fprintf
(
stderr
,
"Usage: ... basic [ match EMATCH_TREE ]
\n
"
);
fprintf
(
stderr
,
" [ action ACTION_SPEC ] [ classid CLASSID ]
\n
"
);
fprintf
(
stderr
,
"
\n
"
);
fprintf
(
stderr
,
"Where: SELECTOR := SAMPLE SAMPLE ...
\n
"
);
fprintf
(
stderr
,
" FILTERID := X:Y:Z
\n
"
);
fprintf
(
stderr
,
" ACTION_SPEC := ... look at individual actions
\n
"
);
fprintf
(
stderr
,
"
\n
NOTE: CLASSID is parsed as hexadecimal input.
\n
"
);
}
...
...
tc/f_bpf.c
View file @
863ecb04
...
...
@@ -34,13 +34,14 @@ static void explain(void)
fprintf
(
stderr
,
" [inline]: run bytecode BPF_BYTECODE
\n
"
);
fprintf
(
stderr
,
" [from file]: run bytecode-file FILE
\n
"
);
fprintf
(
stderr
,
"
\n
"
);
fprintf
(
stderr
,
" [
police POLICE_SPEC ] [
action ACTION_SPEC ]
\n
"
);
fprintf
(
stderr
,
" [ action ACTION_SPEC ]
\n
"
);
fprintf
(
stderr
,
" [ classid CLASSID ]
\n
"
);
fprintf
(
stderr
,
"
\n
"
);
fprintf
(
stderr
,
"Where BPF_BYTECODE :=
\'
s,c t f k,c t f k,c t f k,...
\'\n
"
);
fprintf
(
stderr
,
" c,t,f,k and s are decimals; s denotes number of 4-tuples
\n
"
);
fprintf
(
stderr
,
"Where FILE points to a file containing the BPF_BYTECODE string
\n
"
);
fprintf
(
stderr
,
"
\n
NOTE: CLASSID is parsed as hexadecimal input.
\n
"
);
fprintf
(
stderr
,
"
\n
ACTION_SPEC := ... look at individual actions
\n
"
);
fprintf
(
stderr
,
"NOTE: CLASSID is parsed as hexadecimal input.
\n
"
);
}
static
int
bpf_parse_string
(
char
*
arg
,
bool
from_file
,
__u16
*
bpf_len
,
...
...
tc/f_cgroup.c
View file @
863ecb04
...
...
@@ -18,7 +18,7 @@
static
void
explain
(
void
)
{
fprintf
(
stderr
,
"Usage: ... cgroup [ match EMATCH_TREE ]
[ police POLICE_SPEC ]
\n
"
);
fprintf
(
stderr
,
"Usage: ... cgroup [ match EMATCH_TREE ]
\n
"
);
fprintf
(
stderr
,
" [ action ACTION_SPEC ]
\n
"
);
}
...
...
tc/f_flow.c
View file @
863ecb04
...
...
@@ -27,7 +27,7 @@ static void explain(void)
" [hashing mode]: hash keys KEY-LIST ... [ perturb SECS ]
\n
"
"
\n
"
" [ divisor NUM ] [ baseclass ID ] [ match EMATCH_TREE ]
\n
"
" [
police POLICE_SPEC ] [
action ACTION_SPEC ]
\n
"
" [ action ACTION_SPEC ]
\n
"
"
\n
"
"KEY-LIST := [ KEY-LIST , ] KEY
\n
"
"KEY := [ src | dst | proto | proto-src | proto-dst | iif | priority |
\n
"
...
...
tc/f_fw.c
View file @
863ecb04
...
...
@@ -25,8 +25,8 @@
static
void
explain
(
void
)
{
fprintf
(
stderr
,
"Usage: ... fw [ classid CLASSID ] [
police POLICE
_SPEC ]
\n
"
);
fprintf
(
stderr
,
"
POLICE_SPEC := ... look at TBF
\n
"
);
fprintf
(
stderr
,
"Usage: ... fw [ classid CLASSID ] [
action ACTION
_SPEC ]
\n
"
);
fprintf
(
stderr
,
"
ACTION_SPEC := ... look at individual actions
\n
"
);
fprintf
(
stderr
,
" CLASSID := X:Y
\n
"
);
fprintf
(
stderr
,
"
\n
NOTE: CLASSID is parsed as hexadecimal input.
\n
"
);
}
...
...
tc/f_rsvp.c
View file @
863ecb04
...
...
@@ -28,11 +28,11 @@ static void explain(void)
{
fprintf
(
stderr
,
"Usage: ... rsvp ipproto PROTOCOL session DST[/PORT | GPI ]
\n
"
);
fprintf
(
stderr
,
" [ sender SRC[/PORT | GPI ]
\n
"
);
fprintf
(
stderr
,
" [ classid CLASSID ] [
police POLICE
_SPEC ]
\n
"
);
fprintf
(
stderr
,
" [ classid CLASSID ] [
action ACTION
_SPEC ]
\n
"
);
fprintf
(
stderr
,
" [ tunnelid ID ] [ tunnel ID skip NUMBER ]
\n
"
);
fprintf
(
stderr
,
"Where: GPI := { flowlabel NUMBER | spi/ah SPI | spi/esp SPI |
\n
"
);
fprintf
(
stderr
,
" u{8|16|32} NUMBER mask MASK at OFFSET}
\n
"
);
fprintf
(
stderr
,
"
POLICE_SPEC := ... look at TBF
\n
"
);
fprintf
(
stderr
,
"
ACTION_SPEC := ... look at individual actions
\n
"
);
fprintf
(
stderr
,
" FILTERID := X:Y
\n
"
);
fprintf
(
stderr
,
"
\n
NOTE: CLASSID is parsed as hexadecimal input.
\n
"
);
}
...
...
tc/f_u32.c
View file @
863ecb04
...
...
@@ -32,7 +32,7 @@ static void explain(void)
{
fprintf
(
stderr
,
"Usage: ... u32 [ match SELECTOR ... ] [ link HTID ]"
" [ classid CLASSID ]
\n
"
);
fprintf
(
stderr
,
" [
police POLICE
_SPEC ]"
fprintf
(
stderr
,
" [
action ACTION
_SPEC ]"
" [ offset OFFSET_SPEC ]
\n
"
);
fprintf
(
stderr
,
" [ ht HTID ] [ hashkey HASHKEY_SPEC ]
\n
"
);
fprintf
(
stderr
,
" [ sample SAMPLE ]
\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