X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fdns%2Fdns.api;h=4045b8111c4d5035c3ee89c4fdfe9dac73f5450a;hb=9d42087;hp=55574458ddda9bb7a0ef6d727fb52dd8b16f4a9a;hpb=6545716c073c88ad86458620c6dbc59ba1cd00bb;p=vpp.git diff --git a/src/vnet/dns/dns.api b/src/vnet/dns/dns.api index 55574458ddd..4045b8111c4 100644 --- a/src/vnet/dns/dns.api +++ b/src/vnet/dns/dns.api @@ -13,7 +13,7 @@ * limitations under the License. */ -vl_api_version 1.0.0 +option version = "1.0.0"; /** \brief enable/disable name resolution @@ -52,9 +52,19 @@ autoreply define dns_name_server_add_del { define dns_resolve_name { u32 client_index; u32 context; - u8 name[128]; + u8 name[256]; }; +/** \brief DNS name resolution reply + + @param client_index - opaque cookie to identify the sender + @param context - sender context, to match reply w/ request + @param retval - return value, 0 => success + @param ip4_set - indicates that the ip4 address is valid + @param ip6_set - indicates that the ip6 address is valid + @param ip4_address - the ip4 name resolution reply + @param ip6_address - the ip6 name resolution reply +*/ define dns_resolve_name_reply { u32 context; i32 retval; @@ -64,3 +74,30 @@ define dns_resolve_name_reply { u8 ip6_address[16]; }; +/** \brief DNS IP -> name resolution request + + @param client_index - opaque cookie to identify the sender + @param context - sender context, to match reply w/ request + @param is_ip6 - set if the reverse-DNS request is an ip6 address + @param address - the address to map to a name +*/ +define dns_resolve_ip { + u32 client_index; + u32 context; + u8 is_ip6; + u8 address[16]; + }; + +/** \brief DNS ip->name resolution reply + + @param client_index - opaque cookie to identify the sender + @param context - sender context, to match reply w/ request + @param retval - return value, 0 => success + @param name - canonical name for the indicated IP address +*/ +define dns_resolve_ip_reply { + u32 context; + i32 retval; + u8 name[256]; +}; +