mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-07-12 02:34:59 +03:00
Change IP structure so that IPv4 addresses are stored in RFC3493 format
In addition to saving 4 bytes for each instantiation, this change makes IP-related operations faster and clearer. https://tools.ietf.org/html/rfc3493.html#section-3.7
This commit is contained in:
@ -2916,7 +2916,7 @@ int OvsCompareSessionList(void *p1, void *p2)
|
||||
return 0;
|
||||
}
|
||||
|
||||
i = CmpIpAddr(&s1->Protocol, &s2->Protocol);
|
||||
i = Cmp(&s1->Protocol, &s2->Protocol, sizeof(s1->Protocol));
|
||||
if (i != 0)
|
||||
{
|
||||
return i;
|
||||
|
Reference in New Issue
Block a user