X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fip%2Fip_types.api;h=4c685670d5e7dc066246030b4a8bfc5281d7722d;hb=b538dd868;hp=e418ed3a1c6bca3208b999261144a5ebf4b012ae;hpb=d0df49f26eabf2f534b567f3370e50c4e804aeea;p=vpp.git diff --git a/src/vnet/ip/ip_types.api b/src/vnet/ip/ip_types.api index e418ed3a1c6..4c685670d5e 100644 --- a/src/vnet/ip/ip_types.api +++ b/src/vnet/ip/ip_types.api @@ -14,19 +14,21 @@ * limitations under the License. */ -typedef ip4_address { - u8 address[4]; -}; - -typedef ip6_address { - u8 address[16]; -}; +typedef u8 ip4_address[4]; +typedef u8 ip6_address[16]; enum address_family { ADDRESS_IP4 = 0, ADDRESS_IP6, }; +enum ip_proto { + IP_API_PROTO_TCP = 6, + IP_API_PROTO_UDP = 17, + IP_API_PROTO_EIGRP = 88, + IP_API_PROTO_OSPF = 89, +}; + union address_union { vl_api_ip4_address_t ip4; vl_api_ip6_address_t ip6; @@ -48,3 +50,13 @@ typedef mprefix { vl_api_address_union_t grp_address; vl_api_address_union_t src_address; }; + +typedef ip6_prefix { + vl_api_ip6_address_t prefix; + u8 len; +}; + +typedef ip4_prefix { + vl_api_ip4_address_t prefix; + u8 len; +};