return EXIT_FAILURE;
}
/* Initialize the worker. */
- ret = worker_init(the_args->forks);
+ ret = worker_init();
if (ret != 0) {
kr_log_error(SYSTEM, "failed to initialize worker: %s\n", kr_strerror(ret));
return EXIT_FAILURE;
* is retrieved.
*
* Protocol layer:
- * - An implementation of a particular protocol. A layer transforms data
- * within the resolver to conform to a particular protocol, e.g. UDP, TCP,
- * TLS, HTTP, QUIC, etc.
+ * - An implementation of a particular protocol. A layer transforms payloads
+ * to conform to a particular protocol, e.g. UDP, TCP, TLS, HTTP, QUIC, etc.
+ * While transforming a payload, a layer may also modify metadata - e.g. the
+ * UDP and TCP layers in the Unwrap direction implement the PROXYv2 protocol,
+ * using which they retrieve the IP address of the actual originating client
+ * and store it in the appropriate struct.
*
* Protolayer:
* - Same as 'Protocol layer'.
/** Create and initialize the worker.
* \return error code (ENOMEM) */
-int worker_init();
+int worker_init(void);
/** Destroy the worker (free memory). */
-void worker_deinit();
+void worker_deinit(void);
/**
* End current DNS/TCP session, this disassociates pending tasks from this session