Re: 64-bit fun with cache.c
Bruce Guenter <[email protected]>
| Newsgroups | gmane.network.djbdns |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Jan 22, 2009 at 08:20:35PM -0600, Mark Johnson wrote: > Has anybody successfully hacked cache.c for 64-bit operation? I'm > screwing around with this now: This modification won't work as is for caches larger than 4GB. The offsets stored in the hash table are 4 bytes, and so will break where they cross a 4GB boundary. Those links (see line 207) will need to be increased to 8 bytes as well. Technically, the key and data sizes should be increased to 8 bytes as well, but I don't think this is relevant to DNS. In fact, they could probably be reduced to 2 bytes, as each response section in DNS is limited to 64kB. However, I'm not clear what exactly dnscache stores in the cache, and if there could be records larger than 64kB for gargantuan DNS responses. -- Bruce Guenter <[email protected]> http://untroubled.org/
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iD8DBQFJejvi6W+y3GmZgOgRAqxwAJ0cyJTX7OZqNi3VADTPZI7WWCJVvQCffEtk ejKFynoHzVlcRt5D3aWW26s= =EP0q -----END PGP SIGNATURE-----