From c004029f7776fd1a147060c3de6e8a7a7f05b79b Mon Sep 17 00:00:00 2001 From: Nate Karstens Date: Wed, 10 May 2023 09:58:30 -0500 Subject: [PATCH] Render IPv6 addresses in lower case RFC5952 section 4.3 requires text representations of IPv6 addresses to use lower case. Co-authored-by: Chee Bin Hoh --- src/core/ipv6/ip6_addr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/ipv6/ip6_addr.c b/src/core/ipv6/ip6_addr.c index 6e0ac86b..d54d5cfb 100644 --- a/src/core/ipv6/ip6_addr.c +++ b/src/core/ipv6/ip6_addr.c @@ -57,7 +57,7 @@ /* used by IP6_ADDR_ANY(6) in ip6_addr.h */ const ip_addr_t ip6_addr_any = IPADDR6_INIT(0ul, 0ul, 0ul, 0ul); -#define lwip_xchar(i) ((char)((i) < 10 ? '0' + (i) : 'A' + (i) - 10)) +#define lwip_xchar(i) ((char)((i) < 10 ? '0' + (i) : 'a' + (i) - 10)) /** * Check whether "cp" is a valid ascii representation