Fix documentation to adhere to RFC 5952

Update the text representations of IPv6 addresses.
This commit is contained in:
Goetz Goerisch
2026-01-06 16:10:37 +01:00
parent b0b634558b
commit adb0374a4d
8 changed files with 16 additions and 16 deletions
+1 -1
View File
@@ -283,7 +283,7 @@ net_test(void)
unit_assert(strcmp(astr, "1.2.3.0") == 0);
unit_assert(ntohs(((struct sockaddr_in*)&a)->sin_port)==53);
res = netblockstrtoaddr("2001:DB8:33:44::/64", 53,
res = netblockstrtoaddr("2001:db8:33:44::/64", 53,
&a, &alen, &net);
unit_assert(res!=0 && net == 64);
addr_to_str(&a, alen, astr, sizeof(astr));