diff options
author | Paul Vinciguerra <pvinci@vinciconsulting.com> | 2019-07-27 10:35:07 -0400 |
---|---|---|
committer | Andrew Yourtchenko <ayourtch@gmail.com> | 2019-07-31 19:33:52 +0000 |
commit | 515eed42583a52d4783ff4906afa01244899e030 (patch) | |
tree | b89fe82bfad9598a8e7383b8d1f3eae1ec94cea0 /src/vnet | |
parent | e6e09a4acef2c38bc31e89c05bd1f40f1829debb (diff) |
api: add prefix matcher typedef
There is a need to be able to specifiy whether a prefix in
a request is to match exactly or if more specific
prefixes are also desired.
Todo: Uncomment defaults, once supported in vppapigen.
Type: feature
Change-Id: I74fdef0e89e3aefda822c7c0a477e22479297a90
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'src/vnet')
-rw-r--r-- | src/vnet/ip/ip_types.api | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/vnet/ip/ip_types.api b/src/vnet/ip/ip_types.api index 13c6a4aab28..af8f6231285 100644 --- a/src/vnet/ip/ip_types.api +++ b/src/vnet/ip/ip_types.api @@ -106,3 +106,14 @@ typedef ip4_prefix { vl_api_ip4_address_t address; u8 len; }; + +/** \brief A context for matching prefixes against. (Think ip prefix list.) + The meaning (exact match / want subnets) of an unset matcher is left to the implementer. + @param le - le mut be <= to prefix.len. Default: 255 (not set). + @param ge - ge must be greater than le and <= max_size of prefix. Default: 255 (not set). + +*/ +typedef prefix_matcher { + u8 le; /* [default=255] */ + u8 ge; /* [default=255] */ +}; |