@@ -248,14 +248,14 @@ unsigned long hash; OFHashInit(&hash); OFHashAddHash(&hash, _name.hash); - OFHashAdd(&hash, _DNSClass >> 8); - OFHashAdd(&hash, _DNSClass); - OFHashAdd(&hash, _recordType >> 8); - OFHashAdd(&hash, _recordType); + OFHashAddByte(&hash, _DNSClass >> 8); + OFHashAddByte(&hash, _DNSClass); + OFHashAddByte(&hash, _recordType >> 8); + OFHashAddByte(&hash, _recordType); OFHashAddHash(&hash, OFSocketAddressHash(&_address)); OFHashFinalize(&hash); return hash; @@ -333,14 +333,14 @@ unsigned long hash; OFHashInit(&hash); OFHashAddHash(&hash, _name.hash); - OFHashAdd(&hash, _DNSClass >> 8); - OFHashAdd(&hash, _DNSClass); - OFHashAdd(&hash, _recordType >> 8); - OFHashAdd(&hash, _recordType); + OFHashAddByte(&hash, _DNSClass >> 8); + OFHashAddByte(&hash, _DNSClass); + OFHashAddByte(&hash, _recordType >> 8); + OFHashAddByte(&hash, _recordType); OFHashAddHash(&hash, OFSocketAddressHash(&_address)); OFHashFinalize(&hash); return hash; @@ -428,14 +428,14 @@ unsigned long hash; OFHashInit(&hash); OFHashAddHash(&hash, _name.hash); - OFHashAdd(&hash, _DNSClass >> 8); - OFHashAdd(&hash, _DNSClass); - OFHashAdd(&hash, _recordType >> 8); - OFHashAdd(&hash, _recordType); + OFHashAddByte(&hash, _DNSClass >> 8); + OFHashAddByte(&hash, _DNSClass); + OFHashAddByte(&hash, _recordType >> 8); + OFHashAddByte(&hash, _recordType); OFHashAddHash(&hash, _alias.hash); OFHashFinalize(&hash); return hash; @@ -530,14 +530,14 @@ unsigned long hash; OFHashInit(&hash); OFHashAddHash(&hash, _name.hash); - OFHashAdd(&hash, _DNSClass >> 8); - OFHashAdd(&hash, _DNSClass); - OFHashAdd(&hash, _recordType >> 8); - OFHashAdd(&hash, _recordType); + OFHashAddByte(&hash, _DNSClass >> 8); + OFHashAddByte(&hash, _DNSClass); + OFHashAddByte(&hash, _recordType >> 8); + OFHashAddByte(&hash, _recordType); OFHashAddHash(&hash, _CPU.hash); OFHashAddHash(&hash, _OS.hash); OFHashFinalize(&hash); @@ -634,16 +634,16 @@ unsigned long hash; OFHashInit(&hash); OFHashAddHash(&hash, _name.hash); - OFHashAdd(&hash, _DNSClass >> 8); - OFHashAdd(&hash, _DNSClass); - OFHashAdd(&hash, _recordType >> 8); - OFHashAdd(&hash, _recordType); - OFHashAdd(&hash, _preference >> 8); - OFHashAdd(&hash, _preference); + OFHashAddByte(&hash, _DNSClass >> 8); + OFHashAddByte(&hash, _DNSClass); + OFHashAddByte(&hash, _recordType >> 8); + OFHashAddByte(&hash, _recordType); + OFHashAddByte(&hash, _preference >> 8); + OFHashAddByte(&hash, _preference); OFHashAddHash(&hash, _mailExchange.hash); OFHashFinalize(&hash); return hash; @@ -735,14 +735,14 @@ unsigned long hash; OFHashInit(&hash); OFHashAddHash(&hash, _name.hash); - OFHashAdd(&hash, _DNSClass >> 8); - OFHashAdd(&hash, _DNSClass); - OFHashAdd(&hash, _recordType >> 8); - OFHashAdd(&hash, _recordType); + OFHashAddByte(&hash, _DNSClass >> 8); + OFHashAddByte(&hash, _DNSClass); + OFHashAddByte(&hash, _recordType >> 8); + OFHashAddByte(&hash, _recordType); OFHashAddHash(&hash, _authoritativeHost.hash); OFHashFinalize(&hash); return hash; @@ -833,14 +833,14 @@ unsigned long hash; OFHashInit(&hash); OFHashAddHash(&hash, _name.hash); - OFHashAdd(&hash, _DNSClass >> 8); - OFHashAdd(&hash, _DNSClass); - OFHashAdd(&hash, _recordType >> 8); - OFHashAdd(&hash, _recordType); + OFHashAddByte(&hash, _DNSClass >> 8); + OFHashAddByte(&hash, _DNSClass); + OFHashAddByte(&hash, _recordType >> 8); + OFHashAddByte(&hash, _recordType); OFHashAddHash(&hash, _domainName.hash); OFHashFinalize(&hash); return hash; @@ -938,14 +938,14 @@ unsigned long hash; OFHashInit(&hash); OFHashAddHash(&hash, _name.hash); - OFHashAdd(&hash, _DNSClass >> 8); - OFHashAdd(&hash, _DNSClass); - OFHashAdd(&hash, _recordType >> 8); - OFHashAdd(&hash, _recordType); + OFHashAddByte(&hash, _DNSClass >> 8); + OFHashAddByte(&hash, _DNSClass); + OFHashAddByte(&hash, _recordType >> 8); + OFHashAddByte(&hash, _recordType); OFHashAddHash(&hash, _mailbox.hash); OFHashAddHash(&hash, _TXTDomainName.hash); OFHashFinalize(&hash); @@ -1074,36 +1074,36 @@ unsigned long hash; OFHashInit(&hash); OFHashAddHash(&hash, _name.hash); - OFHashAdd(&hash, _DNSClass >> 8); - OFHashAdd(&hash, _DNSClass); - OFHashAdd(&hash, _recordType >> 8); - OFHashAdd(&hash, _recordType); + OFHashAddByte(&hash, _DNSClass >> 8); + OFHashAddByte(&hash, _DNSClass); + OFHashAddByte(&hash, _recordType >> 8); + OFHashAddByte(&hash, _recordType); OFHashAddHash(&hash, _primaryNameServer.hash); OFHashAddHash(&hash, _responsiblePerson.hash); - OFHashAdd(&hash, _serialNumber >> 24); - OFHashAdd(&hash, _serialNumber >> 16); - OFHashAdd(&hash, _serialNumber >> 8); - OFHashAdd(&hash, _serialNumber); - OFHashAdd(&hash, _refreshInterval >> 24); - OFHashAdd(&hash, _refreshInterval >> 16); - OFHashAdd(&hash, _refreshInterval >> 8); - OFHashAdd(&hash, _refreshInterval); - OFHashAdd(&hash, _retryInterval >> 24); - OFHashAdd(&hash, _retryInterval >> 16); - OFHashAdd(&hash, _retryInterval >> 8); - OFHashAdd(&hash, _retryInterval); - OFHashAdd(&hash, _expirationInterval >> 24); - OFHashAdd(&hash, _expirationInterval >> 16); - OFHashAdd(&hash, _expirationInterval >> 8); - OFHashAdd(&hash, _expirationInterval); - OFHashAdd(&hash, _minTTL >> 24); - OFHashAdd(&hash, _minTTL >> 16); - OFHashAdd(&hash, _minTTL >> 8); - OFHashAdd(&hash, _minTTL); + OFHashAddByte(&hash, _serialNumber >> 24); + OFHashAddByte(&hash, _serialNumber >> 16); + OFHashAddByte(&hash, _serialNumber >> 8); + OFHashAddByte(&hash, _serialNumber); + OFHashAddByte(&hash, _refreshInterval >> 24); + OFHashAddByte(&hash, _refreshInterval >> 16); + OFHashAddByte(&hash, _refreshInterval >> 8); + OFHashAddByte(&hash, _refreshInterval); + OFHashAddByte(&hash, _retryInterval >> 24); + OFHashAddByte(&hash, _retryInterval >> 16); + OFHashAddByte(&hash, _retryInterval >> 8); + OFHashAddByte(&hash, _retryInterval); + OFHashAddByte(&hash, _expirationInterval >> 24); + OFHashAddByte(&hash, _expirationInterval >> 16); + OFHashAddByte(&hash, _expirationInterval >> 8); + OFHashAddByte(&hash, _expirationInterval); + OFHashAddByte(&hash, _minTTL >> 24); + OFHashAddByte(&hash, _minTTL >> 16); + OFHashAddByte(&hash, _minTTL >> 8); + OFHashAddByte(&hash, _minTTL); OFHashFinalize(&hash); return hash; } @@ -1215,21 +1215,21 @@ unsigned long hash; OFHashInit(&hash); OFHashAddHash(&hash, _name.hash); - OFHashAdd(&hash, _DNSClass >> 8); - OFHashAdd(&hash, _DNSClass); - OFHashAdd(&hash, _recordType >> 8); - OFHashAdd(&hash, _recordType); - OFHashAdd(&hash, _priority >> 8); - OFHashAdd(&hash, _priority); - OFHashAdd(&hash, _weight >> 8); - OFHashAdd(&hash, _weight); + OFHashAddByte(&hash, _DNSClass >> 8); + OFHashAddByte(&hash, _DNSClass); + OFHashAddByte(&hash, _recordType >> 8); + OFHashAddByte(&hash, _recordType); + OFHashAddByte(&hash, _priority >> 8); + OFHashAddByte(&hash, _priority); + OFHashAddByte(&hash, _weight >> 8); + OFHashAddByte(&hash, _weight); OFHashAddHash(&hash, _target.hash); - OFHashAdd(&hash, _port >> 8); - OFHashAdd(&hash, _port); + OFHashAddByte(&hash, _port >> 8); + OFHashAddByte(&hash, _port); OFHashFinalize(&hash); return hash; } @@ -1320,14 +1320,14 @@ unsigned long hash; OFHashInit(&hash); OFHashAddHash(&hash, _name.hash); - OFHashAdd(&hash, _DNSClass >> 8); - OFHashAdd(&hash, _DNSClass); - OFHashAdd(&hash, _recordType >> 8); - OFHashAdd(&hash, _recordType); + OFHashAddByte(&hash, _DNSClass >> 8); + OFHashAddByte(&hash, _DNSClass); + OFHashAddByte(&hash, _recordType >> 8); + OFHashAddByte(&hash, _recordType); OFHashAddHash(&hash, _textStrings.hash); OFHashFinalize(&hash); return hash;