Module: kamailio
Branch: master
Commit: d1947cd86a04b6bbdbc08fb3d8db086f347a6de7
URL:
https://github.com/kamailio/kamailio/commit/d1947cd86a04b6bbdbc08fb3d8db086…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-10-19T12:46:51+02:00
core: ipv6 hex digit style set to lowercase compacted format
- ipv6_hex_style set to "c"
- be more conformant with rfc5952
---
Modified: src/core/ip_addr.c
---
Diff:
https://github.com/kamailio/kamailio/commit/d1947cd86a04b6bbdbc08fb3d8db086…
Patch:
https://github.com/kamailio/kamailio/commit/d1947cd86a04b6bbdbc08fb3d8db086…
---
diff --git a/src/core/ip_addr.c b/src/core/ip_addr.c
index 50c8d07c0b..cb07a3e60d 100644
--- a/src/core/ip_addr.c
+++ b/src/core/ip_addr.c
@@ -37,7 +37,13 @@
#include "resolve.h"
#include "trim.h"
-str ksr_ipv6_hex_style = str_init("A");
+/**
+ * ipv6 style for string representation
+ * - A: uppercase expanded format
+ * - a: lowercase expanded format
+ * - c: lowercase compacted format
+ */
+str ksr_ipv6_hex_style = str_init("c");
/* inits a struct sockaddr_union from a struct hostent, an address index in