Re: proposed changes to getnameinfo() implementation

2002-02-27 Thread Rob Braun
On Thursday, Feb 2002 at 15:7:44 Hajimu UMEMOTO wrote: > > RFC2553 defines two types of struct sockaddr, one has sa_len and the > other doesn't has it. Though we *BSD has sa_len, non-BSD doesn't have > it. Regardless of sa_len, the size of the structure is already known by the value of sa

proposed changes to getnameinfo() implementation

2002-02-27 Thread Rob Braun
getnameinfo() takes a struct sockaddr pointer, and a length parameter for the amount of memory pointed to by the struct sockaddr pointer. The current FreeBSD implementation of getnameinfo() does 2 problematic checks against the length parameter. First, it makes sure the length parameter is equ