mirror_iproute2/man/man8
Kevin Darbyshire-Bryant d7f2bccd0f tc: add support for action act_ctinfo
ctinfo is a tc action restoring data stored in conntrack marks to
various fields.  At present it has two independent modes of operation,
restoration of DSCP into IPv4/v6 diffserv and restoration of conntrack
marks into packet skb marks.

It understands a number of parameters specific to this action in
additional to the usual action syntax.  Each operating mode is
independent of the other so all options are optional, however not
specifying at least one mode is a bit pointless.

Usage: ... ctinfo [dscp mask [statemask]] [cpmark [mask]] [zone ZONE]
		  [CONTROL] [index <INDEX>]

DSCP mode

dscp enables copying of a DSCP stored in the conntrack mark into the
ipv4/v6 diffserv field.  The mask is a 32bit field and specifies where
in the conntrack mark the DSCP value is located.  It must be 6
contiguous bits long. eg. 0xfc000000 would restore the DSCP from the
upper 6 bits of the conntrack mark.

The DSCP copying may be optionally controlled by a statemask.  The
statemask is a 32bit field, usually with a single bit set and must not
overlap the dscp mask.  The DSCP restore operation will only take place
if the corresponding bit/s in conntrack mark ANDed with the statemask
yield a non zero result.

eg. dscp 0xfc000000 0x01000000 would retrieve the DSCP from the top 6
bits, whilst using bit 25 as a flag to do so.  Bit 26 is unused in this
example.

CPMARK mode

cpmark enables copying of the conntrack mark to the packet skb mark.  In
this mode it is completely equivalent to the existing act_connmark
action.  Additional functionality is provided by the optional mask
parameter, whereby the stored conntrack mark is logically ANDed with the
cpmark mask before being stored into skb mark.  This allows shared usage
of the conntrack mark between applications.

eg. cpmark 0x00ffffff would restore only the lower 24 bits of the
conntrack mark, thus may be useful in the event that the upper 8 bits
are used by the DSCP function.

Usage: ... ctinfo [dscp mask [statemask]] [cpmark [mask]] [zone ZONE]
		  [CONTROL] [index <INDEX>]
where :
	dscp MASK is the bitmask to restore DSCP
	     STATEMASK is the bitmask to determine conditional restoring
	cpmark MASK mask applied to restored packet mark
	ZONE is the conntrack zone
	CONTROL := reclassify | pipe | drop | continue | ok |
		   goto chain <CHAIN_INDEX>

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Reviewed-by: Toke Høiland-Jørgensen <toke@redhat.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
2019-06-10 10:24:38 -07:00
..
.gitignore whitespace cleanup 2017-01-12 17:31:20 -08:00
arpd.8 docs: make spacing consistent 2015-04-07 08:41:36 -07:00
bridge.8 man: break long lines in man page sources 2019-03-22 10:05:31 -07:00
ctstat.8 iproute2 - Split up manual page installation 2012-04-12 09:47:19 -07:00
devlink-dev.8 devlink: add support for updating device flash 2019-02-27 08:25:14 -08:00
devlink-health.8 devlink: Add devlink-health man page 2019-02-28 07:56:21 -08:00
devlink-monitor.8 devlink: add manpage for shared buffer 2016-04-19 08:01:05 -07:00
devlink-port.8 devlink: add manpage for shared buffer 2016-04-19 08:01:05 -07:00
devlink-region.8 devlink: Add support for devlink-region access 2018-07-19 09:20:15 -07:00
devlink-resource.8 devlink: Update man pages and add resource man 2018-02-23 08:36:05 -08:00
devlink-sb.8 devlink: report cell size 2019-02-06 08:46:22 -08:00
devlink.8 devlink: Add devlink-health man page 2019-02-28 07:56:21 -08:00
genl.8 genl: add manpage 2015-11-03 16:27:39 -08:00
ifcfg.8 man: Spelling fixes 2015-11-23 15:39:25 -08:00
ifstat.8 man: ifstat.8: Document --json and --pretty options 2018-08-16 10:25:02 -07:00
ip-address.8.in ip-address: Fix filtering by negated address flags 2018-11-19 11:38:24 -08:00
ip-addrlabel.8 man: ip-*.8: drop any reference to generic ip options 2016-03-02 11:23:53 -08:00
ip-fou.8 ip fou: Support binding FOU ports 2019-04-22 11:42:54 -07:00
ip-gue.8 iproute2: Man pages for fou and gue 2014-11-06 16:17:34 -08:00
ip-l2tp.8 ip/l2tp: remove offset and peer-offset options 2018-04-04 16:41:11 -07:00
ip-link.8.in iplink_vlan: add support for VLAN bridge binding flag 2019-04-26 11:12:58 -07:00
ip-macsec.8 macsec: fix input of 'port', improve documentation of 'address' 2016-09-01 09:08:50 -07:00
ip-maddress.8 docs: make spacing consistent 2015-04-07 08:41:36 -07:00
ip-monitor.8 man: ip-*.8: drop any reference to generic ip options 2016-03-02 11:23:53 -08:00
ip-mroute.8 man: ip-*.8: drop any reference to generic ip options 2016-03-02 11:23:53 -08:00
ip-neighbour.8 ipneigh: support for NTF_EXT_LEARNED flag on neigh entries 2018-10-13 19:24:45 -07:00
ip-netconf.8 man: update netconf manual for new attributes 2016-03-21 12:15:58 -07:00
ip-netns.8 netns: add subcommand to attach an existing network namespace 2019-01-29 18:18:03 -08:00
ip-ntable.8 man: ip-ntable.8: Review synopsis section 2016-03-02 11:23:52 -08:00
ip-route.8.in iproute: Set ip/ip6 lwtunnel flags 2019-01-25 09:17:27 +13:00
ip-rule.8 iprule: Add tun_id filed in the selector 2018-12-31 22:13:13 -08:00
ip-sr.8 man: add documentation for IPv6 SR commands 2017-04-16 10:21:43 -07:00
ip-tcp_metrics.8 iproute2: add support for tcp_metrics 2012-10-08 10:23:07 -07:00
ip-token.8 ip, token: add del command 2016-05-31 12:10:29 -07:00
ip-tunnel.8 doc/man: spelling fixes 2018-10-18 13:15:45 -07:00
ip-vrf.8 ip: do not drop capabilities if net_admin=i is set 2018-05-14 21:07:34 -07:00
ip-xfrm.8 ip-xfrm: Respect family in deleteall and list commands 2019-05-06 13:32:44 -07:00
ip.8 man: break long lines in man page sources 2019-03-22 10:05:31 -07:00
lnstat.8 man: drop references to Debian-specific paths 2017-12-30 09:43:47 -08:00
Makefile Makefile: check manpages for syntax errors 2019-01-14 08:01:51 -08:00
nstat.8 iproute2 - Split up manual page installation 2012-04-12 09:47:19 -07:00
rdma-dev.8 rdma: Add man page for rdma dev set netns command 2019-05-31 15:10:33 -07:00
rdma-link.8 rdma: man page update for link add/delete 2019-04-03 12:04:33 -07:00
rdma-resource.8 rdma: update man pages 2018-05-18 09:20:01 -07:00
rdma-system.8 rdma: Add man pages for rdma system commands 2019-05-31 15:10:31 -07:00
rdma.8 rdma: Add man pages for rdma system commands 2019-05-31 15:10:31 -07:00
routef.8 iproute2 - Split up manual page installation 2012-04-12 09:47:19 -07:00
routel.8 man: routel/routef: don't mention filesystem paths 2017-12-30 09:43:47 -08:00
rtacct.8 man: rtacct.8: Fix nstat options 2018-08-16 10:25:02 -07:00
rtmon.8 man8: scrub trailing whitespace 2015-11-23 15:41:37 -08:00
rtpr.8 man: rtpr: Rename s/bash/shell/ 2018-12-18 10:52:35 -08:00
rtstat.8 iproute2 - Split up manual page installation 2012-04-12 09:47:19 -07:00
ss.8 ss: add option to print socket information on one line 2019-05-02 16:06:06 -07:00
tc-actions.8 actions: update the man page to describe the "since" time filter 2017-08-04 13:16:51 -07:00
tc-basic.8 tc: add a man page for basic filter 2015-10-23 15:37:26 -07:00
tc-bfifo.8 man8: scrub trailing whitespace 2015-11-23 15:41:37 -08:00
tc-bpf.8 Update tc-bpf.8 man page examples 2019-04-26 14:05:47 -07:00
tc-cake.8 q_cake: Add support for setting the fwmark option 2019-04-05 15:01:31 -07:00
tc-cbq-details.8 man8: scrub trailing whitespace 2015-11-23 15:41:37 -08:00
tc-cbq.8 man8: scrub trailing whitespace 2015-11-23 15:41:37 -08:00
tc-cbs.8 man: Fix typos on tc-cbs 2018-07-07 09:57:45 -07:00
tc-cgroup.8 tc: add a man page for cgroup filter 2015-10-23 15:37:26 -07:00
tc-choke.8 docs: make spacing consistent 2015-04-07 08:41:36 -07:00
tc-codel.8 tc: Add missing documentation for codel and fq_codel parameters 2018-03-13 18:05:35 -07:00
tc-connmark.8 tc: connmark, pedit: Rename BRANCH to CONTROL 2016-03-27 10:34:42 -07:00
tc-csum.8 man: tc-csum.8: Fix inconsistency in example description 2017-11-29 10:14:51 -08:00
tc-ctinfo.8 tc: add support for action act_ctinfo 2019-06-10 10:24:38 -07:00
tc-drr.8 man8: scrub trailing whitespace 2015-11-23 15:41:37 -08:00
tc-ematch.8 tc: add em_ipt ematch for calling xtables matches from tc matching context 2018-02-27 09:43:16 -08:00
tc-etf.8 man: Add initial manpage for tc-etf(8) 2018-07-11 17:50:53 -07:00
tc-flow.8 man/man8/tc-flow.8: minor corrections 2016-07-25 08:19:25 -07:00
tc-flower.8 tc: flower: Classify packets based port ranges 2018-12-03 16:02:58 -08:00
tc-fq_codel.8 tc: Add missing documentation for codel and fq_codel parameters 2018-03-13 18:05:35 -07:00
tc-fq.8 man: tc: update man page for fq packet scheduler 2018-11-25 09:40:36 -08:00
tc-fw.8 tc: add a man page for fw filter 2015-10-23 15:37:26 -07:00
tc-hfsc.8 iproute2: unmangle netdev/my emails in man pages (hfsc, stab) 2016-07-06 21:07:23 -07:00
tc-htb.8 man8: scrub trailing whitespace 2015-11-23 15:41:37 -08:00
tc-ife.8 man: tc-ife: add default type note 2017-08-30 08:26:46 -07:00
tc-matchall.8 man: fix man page warnings 2017-04-04 14:46:34 -07:00
tc-mirred.8 tc: m_mirred: Add support for ingress redirect/mirror 2016-10-26 11:20:47 -07:00
tc-mqprio.8 man: Change numtc to num_tc 2018-09-10 11:47:11 -07:00
tc-nat.8 man: Add a man page for the nat action 2016-03-04 15:27:51 -08:00
tc-netem.8 q_netem: slotting with non-uniform distribution 2018-08-30 11:08:19 -07:00
tc-pedit.8 tc/actions: introduce support for goto chain action 2017-05-22 13:31:51 -07:00
tc-pfifo_fast.8 man8: scrub trailing whitespace 2015-11-23 15:41:37 -08:00
tc-pfifo.8 iproute2 - Split up manual page installation 2012-04-12 09:47:19 -07:00
tc-pie.8 tc: pie: update man page 2019-03-29 14:26:00 -07:00
tc-police.8 tc/actions: introduce support for goto chain action 2017-05-22 13:31:51 -07:00
tc-prio.8 man8: scrub trailing whitespace 2015-11-23 15:41:37 -08:00
tc-red.8 man8: scrub trailing whitespace 2015-11-23 15:41:37 -08:00
tc-route.8 tc: add a man page for route filter 2015-10-23 15:37:26 -07:00
tc-sample.8 tc: add missing sample file 2017-02-07 11:53:24 -08:00
tc-sfb.8 docs: make spacing consistent 2015-04-07 08:41:36 -07:00
tc-sfq.8 man8: scrub trailing whitespace 2015-11-23 15:41:37 -08:00
tc-simple.8 tc-simple: Fix documentation 2017-08-03 16:02:44 -07:00
tc-skbedit.8 actions: skbedit add support for mod-ing skb pkt_type 2016-07-06 21:15:44 -07:00
tc-skbmod.8 man page: add page for skbmod action 2017-02-18 16:27:41 -08:00
tc-skbprio.8 Fix warning in tc-skbprio.8 manpage 2018-11-09 08:03:40 -08:00
tc-stab.8 iproute2: unmangle netdev/my emails in man pages (hfsc, stab) 2016-07-06 21:07:23 -07:00
tc-taprio.8 man: tc-taprio.8: fix syntax error 2019-01-14 08:01:51 -08:00
tc-tbf.8 man8: scrub trailing whitespace 2015-11-23 15:41:37 -08:00
tc-tcindex.8 tc: fix typo in tc-tcindex man page 2017-09-20 18:01:02 -07:00
tc-tunnel_key.8 tc: m_tunnel_key: Allow key-less tunnels 2019-01-22 16:04:07 +13:00
tc-u32.8 man: fix small formatting errors 2018-01-02 11:29:39 -08:00
tc-vlan.8 man: tc-vlan.8: Fix for incorrect example 2018-03-27 09:13:28 -07:00
tc-xt.8 man: Add a man page for the xt action 2016-03-04 15:27:51 -08:00
tc.8 tc: pie: update man page 2019-03-29 14:26:00 -07:00
tipc-bearer.8 tipc: add the ability to get UDP bearer options 2016-09-01 08:34:35 -07:00
tipc-link.8 tipc: add link broadcast man page 2019-03-26 16:09:21 -07:00
tipc-media.8 tipc: add peer remove functionality 2016-08-29 10:33:24 -07:00
tipc-nametable.8 tipc: JSON support for showing nametable 2018-06-13 20:45:38 -07:00
tipc-node.8 tipc: add peer remove functionality 2016-08-29 10:33:24 -07:00
tipc-peer.8 tipc: add peer remove functionality 2016-08-29 10:33:24 -07:00
tipc-socket.8 man: Syntax and warning fixes 2015-11-23 15:39:25 -08:00
tipc.8 tipc: JSON support for showing nametable 2018-06-13 20:45:38 -07:00