1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-12-26 01:59:53 +03:00

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)
This commit is contained in:
domosekai 2021-07-14 04:45:37 +00:00
parent b531d8e234
commit 1bb01e55e5

View File

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