DEV9: Clang format DHCP_Server.cpp

This commit is contained in:
TheLastRar 2021-05-21 14:37:33 +01:00 committed by lightningterror
parent 91c2f62c9e
commit a35edc95cf
1 changed files with 4 additions and 2 deletions

View File

@ -356,10 +356,12 @@ namespace InternalServers
Console.Error("DHCP: RouterIP missmatch"); Console.Error("DHCP: RouterIP missmatch");
break; break;
case 6: case 6:
// clang-format off
if (((((DHCPopDNS*)dhcp.options[i])->dnsServers.size() == 0 && dns1.integer == 0) || if (((((DHCPopDNS*)dhcp.options[i])->dnsServers.size() == 0 && dns1.integer == 0) ||
(((DHCPopDNS*)dhcp.options[i])->dnsServers.size() == 1 && dns1.integer != 0 && dns2.integer == 0) || (((DHCPopDNS*)dhcp.options[i])->dnsServers.size() == 1 && dns1.integer != 0 && dns2.integer == 0) ||
(((DHCPopDNS*)dhcp.options[i])->dnsServers.size() == 2 && dns2.integer != 0)) == false) (((DHCPopDNS*)dhcp.options[i])->dnsServers.size() == 2 && dns2.integer != 0)) == false)
Console.Error("DHCP: DNS count missmatch"); Console.Error("DHCP: DNS count missmatch");
// clang-format on
if ((((DHCPopDNS*)dhcp.options[i])->dnsServers.size() > 0 && dns1 != ((DHCPopDNS*)dhcp.options[i])->dnsServers[0]) || if ((((DHCPopDNS*)dhcp.options[i])->dnsServers.size() > 0 && dns1 != ((DHCPopDNS*)dhcp.options[i])->dnsServers[0]) ||
(((DHCPopDNS*)dhcp.options[i])->dnsServers.size() > 1 && dns2 != ((DHCPopDNS*)dhcp.options[i])->dnsServers[1])) (((DHCPopDNS*)dhcp.options[i])->dnsServers.size() > 1 && dns2 != ((DHCPopDNS*)dhcp.options[i])->dnsServers[1]))
@ -390,8 +392,8 @@ namespace InternalServers
case 57: case 57:
maxMs = ((DHCPopMMSGS*)(dhcp.options[i]))->maxMessageSize; maxMs = ((DHCPopMMSGS*)(dhcp.options[i]))->maxMessageSize;
break; break;
case 60: //ClassID case 60: //ClassID
case 61: //ClientID case 61: //ClientID
case 255: //End case 255: //End
break; break;
default: default: