]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
tc: flower: add tc conntrack inv ct_state support
authorwenxu <wenxu@ucloud.cn>
Wed, 20 Jan 2021 02:52:12 +0000 (10:52 +0800)
committerDavid Ahern <dsahern@kernel.org>
Sat, 23 Jan 2021 18:16:35 +0000 (18:16 +0000)
Matches on conntrack inv ct_state.

Signed-off-by: wenxu <wenxu@ucloud.cn>
Signed-off-by: David Ahern <dsahern@kernel.org>
man/man8/tc-flower.8
tc/f_flower.c

index 1a76b375bed858f67e5f415909d3a7a7dd720d5f..226d1cc656311eeb5583eacf22f912e804feac70 100644 (file)
@@ -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
index 1fe0ef420d7068c4fcd28063ca6b2b4da903cf39..85c1043a72be4d4e61b753c4f6084a8c5a5e6941 100644 (file)
@@ -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)