From c94fd71b340ddf95177b90e2d0be67bcca3eefe3 Mon Sep 17 00:00:00 2001 From: wenxu Date: Wed, 20 Jan 2021 10:52:12 +0800 Subject: [PATCH] tc: flower: add tc conntrack inv ct_state support Matches on conntrack inv ct_state. Signed-off-by: wenxu Signed-off-by: David Ahern --- man/man8/tc-flower.8 | 2 ++ tc/f_flower.c | 1 + 2 files changed, 3 insertions(+) diff --git a/man/man8/tc-flower.8 b/man/man8/tc-flower.8 index 1a76b375..226d1cc6 100644 --- a/man/man8/tc-flower.8 +++ b/man/man8/tc-flower.8 @@ -387,6 +387,8 @@ new - New connection. .TP est - Established connection. .TP +inv - The state is invalid. The packet couldn't be associated to a connection. +.TP Example: +trk+est .RE .TP diff --git a/tc/f_flower.c b/tc/f_flower.c index 1fe0ef42..85c1043a 100644 --- a/tc/f_flower.c +++ b/tc/f_flower.c @@ -345,6 +345,7 @@ static struct flower_ct_states { { "trk", TCA_FLOWER_KEY_CT_FLAGS_TRACKED }, { "new", TCA_FLOWER_KEY_CT_FLAGS_NEW }, { "est", TCA_FLOWER_KEY_CT_FLAGS_ESTABLISHED }, + { "inv", TCA_FLOWER_KEY_CT_FLAGS_INVALID }, }; static int flower_parse_ct_state(char *str, struct nlmsghdr *n) -- 2.39.5