diff options
author | Paul Blakey <paulb@mellanox.com> | 2017-08-07 18:19:07 +0300 |
---|---|---|
committer | Joe Stringer <joe@ovn.org> | 2017-08-11 11:43:40 -0700 |
commit | c489ad67e416a34c5e60ddc962612820197b423b (patch) | |
tree | 5b6744f23190ee7462d786c178e5ab37ca9db94e /include | |
parent | 0b4b5203d12e8a97e594129bd0c72978eead5fe6 (diff) | |
download | openvswitch-c489ad67e416a34c5e60ddc962612820197b423b.tar.gz |
match: Add helper function to set nw_ttl with mask
Add help function match_set_nw_ttl_masked()
Will be used later to set ttl value.
Signed-off-by: Paul Blakey <paulb@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Acked-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: Joe Stringer <joe@ovn.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/openvswitch/match.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/openvswitch/match.h b/include/openvswitch/match.h index a8ed8b3b4..61a67de2c 100644 --- a/include/openvswitch/match.h +++ b/include/openvswitch/match.h @@ -180,7 +180,8 @@ void match_set_nw_dst(struct match *, ovs_be32); void match_set_nw_dst_masked(struct match *, ovs_be32 ip, ovs_be32 mask); void match_set_nw_dscp(struct match *, uint8_t); void match_set_nw_ecn(struct match *, uint8_t); -void match_set_nw_ttl(struct match *, uint8_t); +void match_set_nw_ttl(struct match *, uint8_t nw_ttl); +void match_set_nw_ttl_masked(struct match *, uint8_t nw_ttl, uint8_t mask); void match_set_nw_frag(struct match *, uint8_t nw_frag); void match_set_nw_frag_masked(struct match *, uint8_t nw_frag, uint8_t mask); void match_set_icmp_type(struct match *, uint8_t); |