Browse code

core: ipv6 hex digit style set to lowercase compacted format

- ipv6_hex_style set to "c"
- be more conformant with rfc5952

Daniel-Constantin Mierla authored on 19/10/2020 10:44:13
Showing 1 changed files
... ...
@@ -37,7 +37,13 @@
37 37
 #include "resolve.h"
38 38
 #include "trim.h"
39 39
 
40
-str ksr_ipv6_hex_style = str_init("A");
40
+/**
41
+ * ipv6 style for string representation
42
+ * - A: uppercase expanded format
43
+ * - a: lowercase expanded format
44
+ * - c: lowercase compacted format
45
+ */
46
+str ksr_ipv6_hex_style = str_init("c");
41 47
 
42 48
 
43 49
 /* inits a struct sockaddr_union from a struct hostent, an address index in