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 <hohcheebin@gmail.com>
This commit is contained in:
Nate Karstens 2023-05-10 09:58:30 -05:00
parent 70a730df64
commit c004029f77

View File

@ -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