X-Git-Url: https://gerrit.fd.io/r/gitweb?p=vpp.git;a=blobdiff_plain;f=src%2Fvnet%2Fip%2Fip_types.api;h=af8f6231285eec21b4a69f634b03de47c28829c9;hp=13c6a4aab287fde966f934bff9cd54fb4e54164c;hb=515eed425;hpb=e6e09a4acef2c38bc31e89c05bd1f40f1829debb 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] */ +};