Module: kamailio Branch: master Commit: 1525b613357cbd1bcd5dbc3555603c57fa5dddcb URL: https://github.com/kamailio/kamailio/commit/1525b613357cbd1bcd5dbc3555603c57fa5dddcb
Author: Daniel-Constantin Mierla <mico...@gmail.com> Committer: Daniel-Constantin Mierla <mico...@gmail.com> Date: 2025-08-18T07:39:15+02:00 core: resolve - SR_DNS_MAX_QNO and SR_DNS_MAX_ANO can be defined via compiler options - compiler -D or makefile variable CC_EXTRA_OPTS - #4359 --- Modified: src/core/resolve.c --- Diff: https://github.com/kamailio/kamailio/commit/1525b613357cbd1bcd5dbc3555603c57fa5dddcb.diff Patch: https://github.com/kamailio/kamailio/commit/1525b613357cbd1bcd5dbc3555603c57fa5dddcb.patch --- diff --git a/src/core/resolve.c b/src/core/resolve.c index 269db1e7de4..3f320338290 100644 --- a/src/core/resolve.c +++ b/src/core/resolve.c @@ -39,7 +39,7 @@ * On alpine linux musl library it is also not defined. There is no * musl feature test macro, so we look for glibc instead. */ -#if(defined __GLIBC__ && __GLIBC__ == 2 && __GLIBC_MINOR__ < 25) \ +#if (defined __GLIBC__ && __GLIBC__ == 2 && __GLIBC_MINOR__ < 25) \ || !defined __GLIBC__ #ifndef T_OPT #define T_OPT ns_t_opt @@ -720,8 +720,12 @@ int match_search_list(const struct __res_state *res, char *name) } #endif +#ifndef SR_DNS_MAX_QNO #define SR_DNS_MAX_QNO 10 +#endif +#ifndef SR_DNS_MAX_ANO #define SR_DNS_MAX_ANO 100 +#endif /** gets the DNS records for name:type * returns a dyn. alloc'ed struct rdata linked list with the parsed responses _______________________________________________ Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org To unsubscribe send an email to sr-dev-le...@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!