mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-27 07:34:20 +00:00
Bug 825492: Fix IPv6 DNS lookups on Windows. r=sworkman
This commit is contained in:
parent
515d9293b7
commit
a71361bf3d
@ -47,9 +47,18 @@ namespace mozilla {
|
||||
namespace net {
|
||||
|
||||
// Required buffer size for text form of an IP address.
|
||||
// Includes space for null termination.
|
||||
// Includes space for null termination. We make our own contants
|
||||
// because we don't want higher-level code depending on things
|
||||
// like INET6_ADDRSTRLEN and having to include the associated
|
||||
// platform-specific headers.
|
||||
#ifdef XP_WIN
|
||||
// Windows requires longer buffers for some reason.
|
||||
const int kIPv4CStrBufSize = 22;
|
||||
const int kIPv6CStrBufSize = 65;
|
||||
#else
|
||||
const int kIPv4CStrBufSize = 16;
|
||||
const int kIPv6CStrBufSize = 46;
|
||||
#endif
|
||||
|
||||
// This was all created at a time in which we were using NSPR for host
|
||||
// resolution and we were propagating NSPR types like "PRAddrInfo" and
|
||||
|
Loading…
x
Reference in New Issue
Block a user