From mboxrd@z Thu Jan 1 00:00:00 1970 From: Amritha Nambiar Subject: [iproute2-next PATCH v2] man: tc-flower: Add explanation for range option Date: Tue, 20 Nov 2018 20:49:04 -0800 Message-ID: <154277574436.65249.1999541189613816220.stgit@anamhost.jf.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Cc: jakub.kicinski@netronome.com, amritha.nambiar@intel.com, sridhar.samudrala@intel.com, jhs@mojatatu.com, xiyou.wangcong@gmail.com, jiri@resnulli.us To: stephen@networkplumber.org, netdev@vger.kernel.org Return-path: Received: from mga04.intel.com ([192.55.52.120]:6052 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726049AbeKUPWQ (ORCPT ); Wed, 21 Nov 2018 10:22:16 -0500 Sender: netdev-owner@vger.kernel.org List-ID: Add details explaining filtering based on port ranges. v2: Modified description to remove range as standalone option and updated as part of dst_port/src_port. Signed-off-by: Amritha Nambiar --- man/man8/tc-flower.8 | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/man/man8/tc-flower.8 b/man/man8/tc-flower.8 index 8be8882..1d195d0 100644 --- a/man/man8/tc-flower.8 +++ b/man/man8/tc-flower.8 @@ -56,8 +56,10 @@ flower \- flow based traffic control filter .IR MASKED_IP_TTL " | { " .BR dst_ip " | " src_ip " } " .IR PREFIX " | { " -.BR dst_port " | " src_port " } " -.IR port_number " } | " +.BR dst_port " | " src_port " } { " +.IR port_number " | " +.B range +.IR min_port_number-max_port_number " } | " .B tcp_flags .IR MASKED_TCP_FLAGS " | " .B type @@ -220,10 +222,13 @@ must be a valid IPv4 or IPv6 address, depending on the \fBprotocol\fR option to tc filter, optionally followed by a slash and the prefix length. If the prefix is missing, \fBtc\fR assumes a full-length host match. .TP -.BI dst_port " NUMBER" +.BR dst_port " { " \fINUMBER " | " range " \fIMIN_VALUE-MAX_VALUE " \fR } .TQ -.BI src_port " NUMBER" -Match on layer 4 protocol source or destination port number. Only available for +.BR src_port " { " \fINUMBER " | " range " \fIMIN_VALUE-MAX_VALUE " \fR } +Match on layer 4 protocol source or destination port number. Alternatively, the +\fBrange\fR option can be used to match on a range of layer 4 protocol source +or destination port numbers by specifying the mininum and maximum values. Only +available for .BR ip_proto " values " udp ", " tcp " and " sctp which have to be specified in beforehand. .TP