From: wenxu Date: Wed, 20 Jan 2021 02:52:12 +0000 (+0800) Subject: tc: flower: add tc conntrack inv ct_state support X-Git-Tag: v5.12.0~26^2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c94fd71b340ddf95177b90e2d0be67bcca3eefe3;p=thirdparty%2Fiproute2.git tc: flower: add tc conntrack inv ct_state support Matches on conntrack inv ct_state. Signed-off-by: wenxu Signed-off-by: David Ahern --- diff --git a/man/man8/tc-flower.8 b/man/man8/tc-flower.8 index 1a76b375b..226d1cc65 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 1fe0ef420..85c1043a7 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)