1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2025-07-07 08:14:58 +03:00

Rewriting PPP stack, preparing for IPv6 support

This commit is contained in:
Evengard
2018-03-13 17:10:22 +03:00
parent 863f87fac1
commit 9fff38de2b
7 changed files with 2565 additions and 1879 deletions

View File

@ -491,7 +491,11 @@ void InitMayaqua(bool memcheck, bool debug, int argc, char **argv)
}
g_memcheck = memcheck;
#ifdef DEBUG
g_debug = true;
#else
g_debug = debug;
#endif
cmdline = NULL;
if (dot_net_mode == false)
{

View File

@ -7707,9 +7707,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)
@ -7732,7 +7732,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

@ -184,7 +184,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
};