Open Bug 411251 Opened 17 years ago Updated 2 years ago

Provide a constant equivalent to INET6_ADDRSTRLEN

Categories

(NSPR :: NSPR, enhancement)

enhancement

Tracking

(Not tracked)

People

(Reporter: KaiE, Unassigned)

Details

Recently I made the same mistake twice, resulting in a red tinderbox.

The constant INET6_ADDRSTRLEN is not defined on Windows.
I require this constant to allocate a buffer of sufficient size for a call to PR_NetAddrToString.

I propose that NSPR defines its own symbol that we can use instead of INET6_ADDRSTRLEN.


Once fixed, we should remove the 
  #ifndef INET6_ADDRSTRLEN
  #define INET6_ADDRSTRLEN 46
  #endif
blocks that are currently being used in 
  mozilla/security/nss/lib/certdb/certdb.c
and
  mozilla/security/manager/ssl/src/nsNSSCertHelper.h
Severity: normal → enhancement
Version: other → 4.6

The bug assignee is inactive on Bugzilla, so the assignee is being reset.

Assignee: wtc → nobody
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.