|
|
4aca6e |
From c18577d8237ae746c4c7fa26f9be62e125248dd6 Mon Sep 17 00:00:00 2001
|
|
|
4aca6e |
From: Phil Sutter <psutter@redhat.com>
|
|
|
4aca6e |
Date: Fri, 17 Mar 2017 13:23:33 +0100
|
|
|
4aca6e |
Subject: [PATCH] tc: flower: document SCTP ip_proto
|
|
|
4aca6e |
|
|
|
4aca6e |
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1422629
|
|
|
4aca6e |
Upstream Status: iproute2.git commit 6ad7e60c1f476
|
|
|
4aca6e |
|
|
|
4aca6e |
commit 6ad7e60c1f4760580e9b2a144556315318a8f0ff
|
|
|
4aca6e |
Author: Simon Horman <simon.horman@netronome.com>
|
|
|
4aca6e |
Date: Sat Dec 3 09:52:38 2016 +0100
|
|
|
4aca6e |
|
|
|
4aca6e |
tc: flower: document SCTP ip_proto
|
|
|
4aca6e |
|
|
|
4aca6e |
Add SCTP ip_proto to help text and man page.
|
|
|
4aca6e |
|
|
|
4aca6e |
Signed-off-by: Simon Horman <simon.horman@netronome.com>
|
|
|
4aca6e |
---
|
|
|
4aca6e |
man/man8/tc-flower.8 | 14 +++++++-------
|
|
|
4aca6e |
tc/f_flower.c | 2 +-
|
|
|
4aca6e |
2 files changed, 8 insertions(+), 8 deletions(-)
|
|
|
4aca6e |
|
|
|
4aca6e |
diff --git a/man/man8/tc-flower.8 b/man/man8/tc-flower.8
|
|
|
4aca6e |
index 11cf774..744c450 100644
|
|
|
4aca6e |
--- a/man/man8/tc-flower.8
|
|
|
4aca6e |
+++ b/man/man8/tc-flower.8
|
|
|
4aca6e |
@@ -29,7 +29,7 @@ flower \- flow based traffic control filter
|
|
|
4aca6e |
.IR PRIORITY " | "
|
|
|
4aca6e |
.BR vlan_eth_type " { " ipv4 " | " ipv6 " | "
|
|
|
4aca6e |
.IR ETH_TYPE " } | "
|
|
|
4aca6e |
-.BR ip_proto " { " tcp " | " udp " | "
|
|
|
4aca6e |
+.BR ip_proto " { " tcp " | " udp " | " sctp " | "
|
|
|
4aca6e |
.IR IP_PROTO " } | { "
|
|
|
4aca6e |
.BR dst_ip " | " src_ip " } { "
|
|
|
4aca6e |
.IR ipv4_address " | " ipv6_address " } | { "
|
|
|
4aca6e |
@@ -97,8 +97,8 @@ or an unsigned 16bit value in hexadecimal format.
|
|
|
4aca6e |
.BI ip_proto " IP_PROTO"
|
|
|
4aca6e |
Match on layer four protocol.
|
|
|
4aca6e |
.I IP_PROTO
|
|
|
4aca6e |
-may be either
|
|
|
4aca6e |
-.BR tcp , udp
|
|
|
4aca6e |
+may be
|
|
|
4aca6e |
+.BR tcp ", " udp ", " sctp
|
|
|
4aca6e |
or an unsigned 8bit value in hexadecimal format.
|
|
|
4aca6e |
.TP
|
|
|
4aca6e |
.BI dst_ip " ADDRESS"
|
|
|
4aca6e |
@@ -114,8 +114,8 @@ option of tc filter.
|
|
|
4aca6e |
.TQ
|
|
|
4aca6e |
.BI src_port " NUMBER"
|
|
|
4aca6e |
Match on layer 4 protocol source or destination port number. Only available for
|
|
|
4aca6e |
-.BR ip_proto " values " udp " and " tcp ,
|
|
|
4aca6e |
-which has to be specified in beforehand.
|
|
|
4aca6e |
+.BR ip_proto " values " udp ", " tcp " and " sctp
|
|
|
4aca6e |
+which have to be specified in beforehand.
|
|
|
4aca6e |
.TP
|
|
|
4aca6e |
.BI enc_key_id " NUMBER"
|
|
|
4aca6e |
.TQ
|
|
|
4aca6e |
@@ -140,8 +140,8 @@ and finally layer four matches
|
|
|
4aca6e |
(\fBdst_port\fR and \fBsrc_port\fR)
|
|
|
4aca6e |
depend on
|
|
|
4aca6e |
.B ip_proto
|
|
|
4aca6e |
-being set to either
|
|
|
4aca6e |
-.BR tcp " or " udp .
|
|
|
4aca6e |
+being set to
|
|
|
4aca6e |
+.BR tcp ", " udp " or " sctp.
|
|
|
4aca6e |
.P
|
|
|
4aca6e |
There can be only used one mask per one prio. If user needs to specify different
|
|
|
4aca6e |
mask, he has to use different prio.
|
|
|
4aca6e |
diff --git a/tc/f_flower.c b/tc/f_flower.c
|
|
|
4aca6e |
index 36963c5..26afe73 100644
|
|
|
4aca6e |
--- a/tc/f_flower.c
|
|
|
4aca6e |
+++ b/tc/f_flower.c
|
|
|
4aca6e |
@@ -37,7 +37,7 @@ static void explain(void)
|
|
|
4aca6e |
" vlan_ethtype [ ipv4 | ipv6 | ETH-TYPE ] |\n"
|
|
|
4aca6e |
" dst_mac MAC-ADDR |\n"
|
|
|
4aca6e |
" src_mac MAC-ADDR |\n"
|
|
|
4aca6e |
- " ip_proto [tcp | udp | IP-PROTO ] |\n"
|
|
|
4aca6e |
+ " ip_proto [tcp | udp | sctp | IP-PROTO ] |\n"
|
|
|
4aca6e |
" dst_ip [ IPV4-ADDR | IPV6-ADDR ] |\n"
|
|
|
4aca6e |
" src_ip [ IPV4-ADDR | IPV6-ADDR ] |\n"
|
|
|
4aca6e |
" dst_port PORT-NUMBER |\n"
|
|
|
4aca6e |
--
|
|
|
4aca6e |
1.8.3.1
|
|
|
4aca6e |
|