tc: flower: add tc conntrack inv ct_state support

Matches on conntrack inv ct_state.

Signed-off-by: wenxu <wenxu@ucloud.cn>
Signed-off-by: David Ahern <dsahern@kernel.org>
This commit is contained in:
wenxu 2021-01-20 10:52:12 +08:00 committed by David Ahern
parent c81a173f6b
commit c94fd71b34
2 changed files with 3 additions and 0 deletions

View 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

View 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)