Commit 1672f421 authored by Phil Sutter's avatar Phil Sutter Committed by Stephen Hemminger

tc: connmark, pedit: Rename BRANCH to CONTROL

As Jamal suggested, BRANCH is the wrong name, as these keywords go
beyond simple branch control - e.g. loops are possible, too. Therefore
rename the non-terminal to CONTROL instead which should be more
appropriate.
Signed-off-by: default avatarPhil Sutter <phil@nwl.cc>
Signed-off-by: default avatarStephen Hemminger <stephen@networkplumber.org>
parent edf35b88
...@@ -6,12 +6,12 @@ connmark - netfilter connmark retriever action ...@@ -6,12 +6,12 @@ connmark - netfilter connmark retriever action
.in +8 .in +8
.ti -8 .ti -8
.BR tc " ... " "action connmark " [ " zone" .BR tc " ... " "action connmark " [ " zone"
.IR u16_zone_index " ] [ " BRANCH " ] [" .IR u16_zone_index " ] [ " CONTROL " ] ["
.BI index " u32_index " .BI index " u32_index "
] ]
.ti -8 .ti -8
.IR BRANCH " := { " reclassify " | " pipe " | " drop " | " continue " | " ok " }" .IR CONTROL " := { " reclassify " | " pipe " | " drop " | " continue " | " ok " }"
.SH DESCRIPTION .SH DESCRIPTION
The connmark action is used to restore the connection's mark value into the The connmark action is used to restore the connection's mark value into the
packet's fwmark. packet's fwmark.
...@@ -22,7 +22,7 @@ Specify the conntrack zone when doing conntrack lookups for packets. ...@@ -22,7 +22,7 @@ Specify the conntrack zone when doing conntrack lookups for packets.
.I u16_zone_index .I u16_zone_index
is a 16bit unsigned decimal value. is a 16bit unsigned decimal value.
.TP .TP
.I BRANCH .I CONTROL
How to continue after executing this action. How to continue after executing this action.
.RS .RS
.TP .TP
......
...@@ -6,7 +6,7 @@ pedit - generic packet editor action ...@@ -6,7 +6,7 @@ pedit - generic packet editor action
.in +8 .in +8
.ti -8 .ti -8
.BR tc " ... " "action pedit munge " { .BR tc " ... " "action pedit munge " {
.IR RAW_OP " | " LAYERED_OP " } [ " BRANCH " ]" .IR RAW_OP " | " LAYERED_OP " } [ " CONTROL " ]"
.ti -8 .ti -8
.IR RAW_OP " := " .IR RAW_OP " := "
...@@ -45,7 +45,7 @@ pedit - generic packet editor action ...@@ -45,7 +45,7 @@ pedit - generic packet editor action
.IR RVAL " ]" .IR RVAL " ]"
.ti -8 .ti -8
.IR BRANCH " := {" .IR CONTROL " := {"
.BR reclassify " | " pipe " | " drop " | " shot " | " continue " | " pass " }" .BR reclassify " | " pipe " | " drop " | " shot " | " continue " | " pass " }"
.SH DESCRIPTION .SH DESCRIPTION
The The
...@@ -165,7 +165,7 @@ This optional extra part of ...@@ -165,7 +165,7 @@ This optional extra part of
.I CMD_SPEC .I CMD_SPEC
allows to exclude bits from being changed. allows to exclude bits from being changed.
.TP .TP
.I BRANCH .I CONTROL
The following keywords allow to control how the tree of qdisc, classes, The following keywords allow to control how the tree of qdisc, classes,
filters and actions is further traversed after this action. filters and actions is further traversed after this action.
.RS .RS
......
...@@ -27,10 +27,10 @@ ...@@ -27,10 +27,10 @@
static void static void
explain(void) explain(void)
{ {
fprintf(stderr, "Usage: ... connmark [zone ZONE] [BRANCH] [index <INDEX>]\n"); fprintf(stderr, "Usage: ... connmark [zone ZONE] [CONTROL] [index <INDEX>]\n");
fprintf(stderr, "where :\n" fprintf(stderr, "where :\n"
"\tZONE is the conntrack zone\n" "\tZONE is the conntrack zone\n"
"\tBRANCH := reclassify|pipe|drop|continue|ok\n"); "\tCONTROL := reclassify|pipe|drop|continue|ok\n");
} }
static void static void
......
...@@ -35,7 +35,7 @@ static int pedit_debug; ...@@ -35,7 +35,7 @@ static int pedit_debug;
static void static void
explain(void) explain(void)
{ {
fprintf(stderr, "Usage: ... pedit munge <MUNGE> [<BRANCH>]\n"); fprintf(stderr, "Usage: ... pedit munge <MUNGE> [CONTROL]\n");
fprintf(stderr, fprintf(stderr,
"Where: MUNGE := <RAW>|<LAYERED>\n" "Where: MUNGE := <RAW>|<LAYERED>\n"
"\t<RAW>:= <OFFSETC>[ATC]<CMD>\n \t\tOFFSETC:= offset <offval> <u8|u16|u32>\n " "\t<RAW>:= <OFFSETC>[ATC]<CMD>\n \t\tOFFSETC:= offset <offval> <u8|u16|u32>\n "
...@@ -43,7 +43,7 @@ explain(void) ...@@ -43,7 +43,7 @@ explain(void)
"\t\tNOTE: maskval is a 32 bit hex number\n \t\tNOTE: shiftval is a is a shift value\n " "\t\tNOTE: maskval is a 32 bit hex number\n \t\tNOTE: shiftval is a is a shift value\n "
"\t\tCMD:= clear | invert | set <setval>| retain\n \t<LAYERED>:= ip <ipdata> | ip6 <ip6data> \n " "\t\tCMD:= clear | invert | set <setval>| retain\n \t<LAYERED>:= ip <ipdata> | ip6 <ip6data> \n "
" \t\t| udp <udpdata> | tcp <tcpdata> | icmp <icmpdata>\n" " \t\t| udp <udpdata> | tcp <tcpdata> | icmp <icmpdata>\n"
"\t<BRANCH>:= reclassify | pipe | drop | continue | pass\n" "\tCONTROL:= reclassify | pipe | drop | continue | pass\n"
"For Example usage look at the examples directory\n"); "For Example usage look at the examples directory\n");
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment