#include <stdatomic.h>
#include "adns.h"
+#include "devtools.h"
#include "logger.h"
#include "xalloc.h"
if(time(NULL) < item->deadline) {
logger(mesh, MESHLINK_DEBUG, "Resolving %s port %s", item->host, item->serv);
+ devtool_adns_resolve_probe();
int result = getaddrinfo(item->host, item->serv, NULL, &item->ai);
if(result) {
struct adns_blocking_info *info = data;
logger(info->mesh, MESHLINK_DEBUG, "Resolving %s port %s", info->host, info->serv);
+ devtool_adns_resolve_probe();
if(getaddrinfo(info->host, info->serv, NULL, &info->ai)) {
info->ai = NULL;
#include "devtools.h"
-static void trybind_nop_probe(void) {
+static void nop_probe(void) {
return;
}
return;
}
-void (*devtool_trybind_probe)(void) = trybind_nop_probe;
+void (*devtool_trybind_probe)(void) = nop_probe;
void (*devtool_keyrotate_probe)(int stage) = keyrotate_nop_probe;
void (*devtool_set_inviter_commits_first)(bool inviter_commited_first) = inviter_commits_first_nop_probe;
+void (*devtool_adns_resolve_probe)(void) = nop_probe;
/* Return an array of edges in the current network graph.
* Data captures the current state and will not be updated.
*/
extern void (*devtool_keyrotate_probe)(int stage);
+/// Debug function pointer variable for asynchronous DNS resolving
+extern void (*devtool_adns_resolve_probe)(void);
+
/// Debug function pointer variable for asserting inviter/invitee committing sequence
/** This function pointer variable is a userspace tracepoint or debugger callback which
* invokes either after inviter writing invitees host file into the disk