X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fip%2Fip_types.api;h=d9ad893412d41c1deacdc9551de909a8ed4dcef9;hb=33a58171e;hp=13c6a4aab287fde966f934bff9cd54fb4e54164c;hpb=038e1dfbdfd0bd785852c364011da0a1d828093e;p=vpp.git diff --git a/src/vnet/ip/ip_types.api b/src/vnet/ip/ip_types.api index 13c6a4aab28..d9ad893412d 100644 --- a/src/vnet/ip/ip_types.api +++ b/src/vnet/ip/ip_types.api @@ -14,8 +14,9 @@ * limitations under the License. */ -typedef u8 ip4_address[4]; -typedef u8 ip6_address[16]; +option version = "3.0.0"; +manual_print typedef u8 ip4_address[4]; +manual_print typedef u8 ip6_address[16]; enum address_family { ADDRESS_IP4 = 0, @@ -80,12 +81,12 @@ union address_union { vl_api_ip6_address_t ip6; }; -typedef address { +manual_print typedef address { vl_api_address_family_t af; vl_api_address_union_t un; }; -typedef prefix { +manual_print typedef prefix { vl_api_address_t address; u8 len; }; @@ -97,12 +98,23 @@ typedef mprefix { vl_api_address_union_t src_address; }; -typedef ip6_prefix { +manual_print typedef ip6_prefix { vl_api_ip6_address_t address; u8 len; }; -typedef ip4_prefix { +manual_print 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] */ +};