X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fmatch.h;h=ee01acdf7e2b08ae238b3da3efd90bda8e440c44;hb=4d197ebbf6b6e8b26bb836b39c53c4101a0f2e14;hp=6e87a096d480117c80669aee42328b1e228a623d;hpb=94639963bf275a41e42277116205da0e9b457580;p=sliver-openvswitch.git diff --git a/lib/match.h b/lib/match.h index 6e87a096d..ee01acdf7 100644 --- a/lib/match.h +++ b/lib/match.h @@ -88,6 +88,8 @@ void match_set_tp_src(struct match *, ovs_be16); void match_set_tp_src_masked(struct match *, ovs_be16 port, ovs_be16 mask); void match_set_tp_dst(struct match *, ovs_be16); void match_set_tp_dst_masked(struct match *, ovs_be16 port, ovs_be16 mask); +void match_set_tcp_flags(struct match *, ovs_be16); +void match_set_tcp_flags_masked(struct match *, ovs_be16 flags, ovs_be16 mask); void match_set_nw_proto(struct match *, uint8_t); void match_set_nw_src(struct match *, ovs_be32); void match_set_nw_src_masked(struct match *, ovs_be32 ip, ovs_be32 mask); @@ -157,6 +159,9 @@ uint32_t minimatch_hash(const struct minimatch *, uint32_t basis); bool minimatch_matches_flow(const struct minimatch *, const struct flow *); +uint32_t minimatch_hash_range(const struct minimatch *, + uint8_t start, uint8_t end, uint32_t *basis); + void minimatch_format(const struct minimatch *, struct ds *, unsigned int priority); char *minimatch_to_string(const struct minimatch *, unsigned int priority);