summaryrefslogtreecommitdiff
path: root/contrib/unbound/libunbound/libworker.c
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2020-08-24 18:14:04 +0000
committerCy Schubert <cy@FreeBSD.org>2020-08-24 18:14:04 +0000
commit25039b37d3883b8fdae50475cbea41a255a08ee2 (patch)
tree107a2df1bfda36ef3220a93fff6212e0c354ed36 /contrib/unbound/libunbound/libworker.c
parent0a5eb308d3006e2f386620f7266b6593b300b987 (diff)
parent7973006f41cdaf144441d1a39f9f075053435e2f (diff)
downloadsrc-test2-25039b37d3883b8fdae50475cbea41a255a08ee2.tar.gz
src-test2-25039b37d3883b8fdae50475cbea41a255a08ee2.zip
Notes
Diffstat (limited to 'contrib/unbound/libunbound/libworker.c')
-rw-r--r--contrib/unbound/libunbound/libworker.c28
1 files changed, 26 insertions, 2 deletions
diff --git a/contrib/unbound/libunbound/libworker.c b/contrib/unbound/libunbound/libworker.c
index 6cb97ff1fd4a..44b8d790561f 100644
--- a/contrib/unbound/libunbound/libworker.c
+++ b/contrib/unbound/libunbound/libworker.c
@@ -74,6 +74,14 @@
#include "sldns/sbuffer.h"
#include "sldns/str2wire.h"
+#ifdef HAVE_TARGETCONDITIONALS_H
+#include <TargetConditionals.h>
+#endif
+
+#if defined(TARGET_OS_TV) || defined(TARGET_OS_WATCH)
+#undef HAVE_FORK
+#endif
+
/** handle new query command for bg worker */
static void handle_newq(struct libworker* w, uint8_t* buf, uint32_t len);
@@ -225,12 +233,12 @@ libworker_setup(struct ub_ctx* ctx, int is_bg, struct ub_event_base* eb)
w->back = outside_network_create(w->base, cfg->msg_buffer_size,
(size_t)cfg->outgoing_num_ports, cfg->out_ifs,
cfg->num_out_ifs, cfg->do_ip4, cfg->do_ip6,
- cfg->do_tcp?cfg->outgoing_num_tcp:0,
+ cfg->do_tcp?cfg->outgoing_num_tcp:0, cfg->ip_dscp,
w->env->infra_cache, w->env->rnd, cfg->use_caps_bits_for_id,
ports, numports, cfg->unwanted_threshold,
cfg->outgoing_tcp_mss, &libworker_alloc_cleanup, w,
cfg->do_udp || cfg->udp_upstream_without_downstream, w->sslctx,
- cfg->delay_close, NULL);
+ cfg->delay_close, cfg->tls_use_sni, NULL);
w->env->outnet = w->back;
if(!w->is_bg || w->is_bg_thread) {
lock_basic_unlock(&ctx->cfglock);
@@ -1047,3 +1055,19 @@ wsvc_cron_cb(void* ATTR_UNUSED(arg))
log_assert(0);
}
#endif /* UB_ON_WINDOWS */
+
+#ifdef USE_DNSTAP
+void dtio_tap_callback(int ATTR_UNUSED(fd), short ATTR_UNUSED(ev),
+ void* ATTR_UNUSED(arg))
+{
+ log_assert(0);
+}
+#endif
+
+#ifdef USE_DNSTAP
+void dtio_mainfdcallback(int ATTR_UNUSED(fd), short ATTR_UNUSED(ev),
+ void* ATTR_UNUSED(arg))
+{
+ log_assert(0);
+}
+#endif