]> git.proxmox.com Git - mirror_iproute2.git/commit - tc/tc_util.c
tc: Introduce tc ct action
authorPaul Blakey <paulb@mellanox.com>
Thu, 11 Jul 2019 08:14:26 +0000 (11:14 +0300)
committerDavid Ahern <dsahern@gmail.com>
Thu, 18 Jul 2019 22:41:02 +0000 (15:41 -0700)
commitc8a494314c400eb023d7555933ba8ab40345519b
treea6f0af16c8f54ba93bc266c125c894aca88f93e6
parentf47081befffc50a5eef734d0a6654b59047e7808
tc: Introduce tc ct action

New tc action to send packets to conntrack module, commit
them, and set a zone, labels, mark, and nat on the connection.

It can also clear the packet's conntrack state by using clear.

Usage:
   ct clear
   ct commit [force] [zone] [mark] [label] [nat]
   ct [nat] [zone]

Signed-off-by: Paul Blakey <paulb@mellanox.com>
Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: Yossi Kuperman <yossiku@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Acked-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
tc/Makefile
tc/m_ct.c [new file with mode: 0644]
tc/tc_util.c
tc/tc_util.h