X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fip%2Fip_types.api;h=29bd8ad37f5f176c6e80e3bfdd7fb80f9edc44d6;hb=8c8acc027;hp=ec6b9d0024c2b7c55dc27e7071e0c39323658d46;hpb=2c2feab7d89239c92df4622c96e853230393deb9;p=vpp.git diff --git a/src/vnet/ip/ip_types.api b/src/vnet/ip/ip_types.api index ec6b9d0024c..29bd8ad37f5 100644 --- a/src/vnet/ip/ip_types.api +++ b/src/vnet/ip/ip_types.api @@ -1,3 +1,4 @@ +/* Hey Emacs use -*- mode: C -*- */ /* * Copyright (c) 2018 Cisco and/or its affiliates. * Licensed under the Apache License, Version 2.0 (the "License"); @@ -13,13 +14,8 @@ * 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, @@ -35,3 +31,25 @@ typedef address { vl_api_address_family_t af; vl_api_address_union_t un; }; + +typedef prefix { + vl_api_address_t address; + u8 address_length; +}; + +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; +}; + +typedef ip6_prefix { + vl_api_ip6_address_t prefix; + u8 len; +}; + +typedef ip4_prefix { + vl_api_ip4_address_t prefix; + u8 len; +};