1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2025-07-07 00:04:57 +03:00

Merge pull request #1072 from Evengard/ppp-ipv6

Rewriting the PPP stack
This commit is contained in:
Ilya Shipitsin
2020-04-02 20:29:51 +05:00
committed by GitHub
5 changed files with 2573 additions and 1860 deletions

View File

@ -7315,9 +7315,9 @@ void SetIP6(IP *ip, UCHAR *value)
Zero(ip, sizeof(IP));
ip->addr[0] = 223;
ip->addr[1] = 255;
ip->addr[2] = 255;
ip->addr[0] = 192;
ip->addr[1] = 0;
ip->addr[2] = 2;
ip->addr[3] = 254;
if (value != NULL)
@ -7340,7 +7340,7 @@ bool IsIP6(IP *ip)
return false;
}
if (ip->addr[0] == 223 && ip->addr[1] == 255 && ip->addr[2] == 255 && ip->addr[3] == 254)
if (ip->addr[0] == 192 && ip->addr[1] == 0 && ip->addr[2] == 2 && ip->addr[3] == 254)
{
return true;
}

View File

@ -78,7 +78,7 @@ struct DYN_VALUE
// IP address
struct IP
{
UCHAR addr[4]; // IPv4 address, (meaning that 223.255.255.254 = IPv6)
UCHAR addr[4]; // IPv4 address, (meaning that 192.0.2.254 = IPv6)
UCHAR ipv6_addr[16]; // IPv6 address
UINT ipv6_scope_id; // IPv6 scope ID
};