1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-09-13 07:13:00 +03:00

Merge pull request #1432 from domosekai/route

Mayaqua/TcpIp.c: Fix building DHCP static routes in new format
This commit is contained in:
Ilya Shipitsin 2021-07-14 17:41:01 +05:00 committed by GitHub
commit ddf9e48c10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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