aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vnet/dns/dns.c3
-rw-r--r--src/vnet/dns/dns.h1
-rw-r--r--src/vnet/dns/reply_node.c2
-rw-r--r--src/vnet/dns/resolver_process.c2
4 files changed, 3 insertions, 5 deletions
diff --git a/src/vnet/dns/dns.c b/src/vnet/dns/dns.c
index 471728b8bb7..3285bedc903 100644
--- a/src/vnet/dns/dns.c
+++ b/src/vnet/dns/dns.c
@@ -650,7 +650,8 @@ vnet_send_dns_request (dns_main_t * dm, dns_cache_entry_t * ep)
out:
- vlib_process_signal_event_mt (dm->vlib_main, dns_resolver_node.index,
+ vlib_process_signal_event_mt (dm->vlib_main,
+ dm->resolver_process_node_index,
DNS_RESOLVER_EVENT_PENDING, 0);
}
diff --git a/src/vnet/dns/dns.h b/src/vnet/dns/dns.h
index 494ac672096..e6944de0ca9 100644
--- a/src/vnet/dns/dns.h
+++ b/src/vnet/dns/dns.h
@@ -127,7 +127,6 @@ extern dns_main_t dns_main;
extern vlib_node_registration_t dns46_reply_node;
extern vlib_node_registration_t dns4_request_node;
extern vlib_node_registration_t dns6_request_node;
-extern vlib_node_registration_t dns_resolver_node;
#define foreach_dns46_request_error \
_(NONE, "No error") \
diff --git a/src/vnet/dns/reply_node.c b/src/vnet/dns/reply_node.c
index 81ce8f480d0..77d54c84019 100644
--- a/src/vnet/dns/reply_node.c
+++ b/src/vnet/dns/reply_node.c
@@ -171,7 +171,7 @@ dns46_reply_node_fn (vlib_main_t * vm,
/*
* Deal with everything in process ctx on the main thread
*/
- vlib_process_signal_event_mt (vm, dns_resolver_node.index,
+ vlib_process_signal_event_mt (vm, dm->resolver_process_node_index,
DNS_RESOLVER_EVENT_RESOLVED,
(uword) resp0);
error0 = DNS46_REPLY_ERROR_PROCESSED;
diff --git a/src/vnet/dns/resolver_process.c b/src/vnet/dns/resolver_process.c
index cba659266c9..220a4907963 100644
--- a/src/vnet/dns/resolver_process.c
+++ b/src/vnet/dns/resolver_process.c
@@ -38,8 +38,6 @@
#include <vlibapi/api_helper_macros.h>
-vlib_node_registration_t dns_resolver_node;
-
extern int
vnet_dns_response_to_reply (u8 * response,
vl_api_dns_resolve_name_reply_t * rmp,