aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/dns
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/dns')
-rw-r--r--src/plugins/dns/dns.api8
-rw-r--r--src/plugins/dns/dns.c53
2 files changed, 4 insertions, 57 deletions
diff --git a/src/plugins/dns/dns.api b/src/plugins/dns/dns.api
index 866ed8abae3..17ab5244388 100644
--- a/src/plugins/dns/dns.api
+++ b/src/plugins/dns/dns.api
@@ -21,7 +21,7 @@ option version = "1.0.0";
@param context - sender context, to match reply w/ request
@param is_enable - 1 = enable, 0 = disable
*/
-autoreply manual_print define dns_enable_disable {
+autoreply define dns_enable_disable {
u32 client_index;
u32 context;
u8 enable;
@@ -36,7 +36,7 @@ autoreply manual_print define dns_enable_disable {
@param is_add - add = 1, delete = 0
@param server_address - server ip address
*/
-autoreply manual_print define dns_name_server_add_del {
+autoreply define dns_name_server_add_del {
u32 client_index;
u32 context;
u8 is_ip6;
@@ -51,7 +51,7 @@ autoreply manual_print define dns_name_server_add_del {
@param context - sender context, to match reply w/ request
@param name - the name to resolve
*/
-manual_print define dns_resolve_name {
+define dns_resolve_name {
u32 client_index;
u32 context;
u8 name[256];
@@ -84,7 +84,7 @@ define dns_resolve_name_reply {
@param is_ip6 - set if the reverse-DNS request is an ip6 address
@param address - the address to map to a name
*/
-manual_print define dns_resolve_ip {
+define dns_resolve_ip {
u32 client_index;
u32 context;
u8 is_ip6;
diff --git a/src/plugins/dns/dns.c b/src/plugins/dns/dns.c
index 045f4d616a3..de1862dd52c 100644
--- a/src/plugins/dns/dns.c
+++ b/src/plugins/dns/dns.c
@@ -2992,59 +2992,6 @@ found_src_address:
}
}
-static void *vl_api_dns_enable_disable_t_print
- (vl_api_dns_enable_disable_t * mp, void *handle)
-{
- u8 *s;
-
- s = format (0, "SCRIPT: dns_enable_disable ");
- s = format (s, "%s ", mp->enable ? "enable" : "disable");
-
- FINISH;
-}
-
-static void *vl_api_dns_name_server_add_del_t_print
- (vl_api_dns_name_server_add_del_t * mp, void *handle)
-{
- u8 *s;
-
- s = format (0, "SCRIPT: dns_name_server_add_del ");
- if (mp->is_ip6)
- s = format (s, "%U ", format_ip6_address,
- (ip6_address_t *) mp->server_address);
- else
- s = format (s, "%U ", format_ip4_address,
- (ip4_address_t *) mp->server_address);
-
- if (mp->is_add == 0)
- s = format (s, "del ");
-
- FINISH;
-}
-
-static void *vl_api_dns_resolve_name_t_print
- (vl_api_dns_resolve_name_t * mp, void *handle)
-{
- u8 *s;
-
- s = format (0, "SCRIPT: dns_resolve_name ");
- s = format (s, "%s ", mp->name);
- FINISH;
-}
-
-static void *vl_api_dns_resolve_ip_t_print
- (vl_api_dns_resolve_ip_t * mp, void *handle)
-{
- u8 *s;
-
- s = format (0, "SCRIPT: dns_resolve_ip ");
- if (mp->is_ip6)
- s = format (s, "%U ", format_ip6_address, mp->address);
- else
- s = format (s, "%U ", format_ip4_address, mp->address);
- FINISH;
-}
-
#include <dns/dns.api.c>
static clib_error_t *
dns_init (vlib_main_t * vm)