+
+manual_print typedef prefix {
+ vl_api_address_t address;
+ u8 len;
+};
+
+typedef mprefix {
+ vl_api_address_family_t af;
+ u16 grp_address_length;
+ vl_api_address_union_t grp_address;
+ vl_api_address_union_t src_address;
+};
+
+manual_print typedef ip6_prefix {
+ vl_api_ip6_address_t address;
+ u8 len;
+};
+
+manual_print typedef ip4_prefix {
+ vl_api_ip4_address_t address;
+ u8 len;
+};
+
+/** \brief
+ *
+ * The vl_api_[ip4|ip6]_address_with_prefix_t types are used as a type to denote
+ * both an IP address and a prefix. I.e. in CIDR notation
+ * '192.168.10.1/24' the address is 192.168.10.1 and the network
+ * prefix is 192.168.10.0/24.
+ *
+ * If only an address is needed use: vl_api_address_t types and if
+ * only a network prefix is needed (i.e. no hosts bits), then use the
+ * vl_api_prefix_t types.
+ *
+ **/
+
+manual_print typedef vl_api_prefix_t address_with_prefix;
+manual_print typedef vl_api_ip4_prefix_t ip4_address_with_prefix;
+manual_print typedef vl_api_ip6_prefix_t ip6_address_with_prefix;
+
+/** \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] */
+};