From 1bb01e55e578c47b75ea521962941aea947f770c Mon Sep 17 00:00:00 2001 From: domosekai <54519668+domosekai@users.noreply.github.com> Date: Wed, 14 Jul 2021 04:45:37 +0000 Subject: [PATCH] Mayaqua/TcpIp.c: Fix building DHCP static routes in new format Fixes: 1708998 (Change IP structure so that IPv4 addresses are stored in RFC3493 format) --- src/Mayaqua/TcpIp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mayaqua/TcpIp.c b/src/Mayaqua/TcpIp.c index c98f3f69..7c3abddb 100644 --- a/src/Mayaqua/TcpIp.c +++ b/src/Mayaqua/TcpIp.c @@ -3846,7 +3846,7 @@ BUF *DhcpBuildClasslessRouteData(DHCP_CLASSLESS_ROUTE_TABLE *t) // Number of significant octets data_len = (r->SubnetMaskLen + 7) / 8; Zero(tmp, sizeof(tmp)); - Copy(tmp, &r->Network, data_len); + Copy(tmp, IPV4(r->Network.address), data_len); WriteBuf(b, tmp, data_len); // Gateway