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:
parent
c81a173f6b
commit
c94fd71b34
|
|
@ -387,6 +387,8 @@ new - New connection.
|
||||||
.TP
|
.TP
|
||||||
est - Established connection.
|
est - Established connection.
|
||||||
.TP
|
.TP
|
||||||
|
inv - The state is invalid. The packet couldn't be associated to a connection.
|
||||||
|
.TP
|
||||||
Example: +trk+est
|
Example: +trk+est
|
||||||
.RE
|
.RE
|
||||||
.TP
|
.TP
|
||||||
|
|
|
||||||
|
|
@ -345,6 +345,7 @@ static struct flower_ct_states {
|
||||||
{ "trk", TCA_FLOWER_KEY_CT_FLAGS_TRACKED },
|
{ "trk", TCA_FLOWER_KEY_CT_FLAGS_TRACKED },
|
||||||
{ "new", TCA_FLOWER_KEY_CT_FLAGS_NEW },
|
{ "new", TCA_FLOWER_KEY_CT_FLAGS_NEW },
|
||||||
{ "est", TCA_FLOWER_KEY_CT_FLAGS_ESTABLISHED },
|
{ "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)
|
static int flower_parse_ct_state(char *str, struct nlmsghdr *n)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue