Module: kamailio
Branch: master
Commit: b2ac541e934bba5758c7af4e59091da24bc96ca6
URL: 
https://github.com/kamailio/kamailio/commit/b2ac541e934bba5758c7af4e59091da24bc96ca6

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2025-06-30T08:19:55+02:00

core: formatted the list of dns error messages

---

Modified: src/core/dns_cache.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/b2ac541e934bba5758c7af4e59091da24bc96ca6.diff
Patch: 
https://github.com/kamailio/kamailio/commit/b2ac541e934bba5758c7af4e59091da24bc96ca6.patch

---

diff --git a/src/core/dns_cache.c b/src/core/dns_cache.c
index fbc5e83f27c..6c5f8c38e1b 100644
--- a/src/core/dns_cache.c
+++ b/src/core/dns_cache.c
@@ -120,14 +120,24 @@ static atomic_t *dns_servers_up = NULL;
 #endif
 
 
-static const char *dns_str_errors[] = {"no error",
-               "no more records", /* not an error, but and end condition */
-               "unknown error", "internal error", "bad SRV entry",
-               "unresolvable SRV request", "bad A or AAAA entry",
-               "unresolvable A or AAAA request", "invalid ip in A or AAAA 
record",
-               "blocklisted ip", "name too long ", /* try again with a shorter 
name */
-               "ip AF mismatch",                                       /* 
address family mismatch */
-               "unresolvable NAPTR request", "bug - critical error"};
+/* clang-format off */
+static const char *dns_str_errors[] = {
+       "no error",
+       "no more records", /* not an error, but and end condition */
+       "unknown error",
+       "internal error",
+       "bad SRV entry",
+       "unresolvable SRV request",
+       "bad A or AAAA entry",
+       "unresolvable A or AAAA request",
+       "invalid ip in A or AAAA record",
+       "blocklisted ip",
+       "name too long ", /* try again with a shorter name */
+       "ip AF mismatch", /* address family mismatch */
+       "unresolvable NAPTR request",
+       "bug - critical error"
+};
+/* clang-format on */
 
 
 void dns_set_local_ttl(int ttl)

_______________________________________________
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!

Reply via email to