Rewriting PPP stack, preparing for IPv6 support

This commit is contained in:
Evengard committed 2018-03-15 12:49:18 +03:00
1 parent 863f87fac1
commit 9fff38de2b
7 files changed
+2565 -1879

No files matched your search

+4
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)
{
+4 -4
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;
}
+1 -1
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
};