]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
- The ai_addrlen of a struct addrinfo used to be a size_t, per
authorHajimu UMEMOTO <ume@FreeBSD.org>
Sun, 15 May 2005 20:15:15 +0000 (20:15 +0000)
committerHajimu UMEMOTO <ume@FreeBSD.org>
Sun, 15 May 2005 20:15:15 +0000 (20:15 +0000)
commit036ae3dd790971f07f3cf41e19e087973d0de986
tree309b5291b90b8bac584d010fde9db8ed4db9a767
parentd001b3ba20c2f2be531a04b9fc5041fb7c2e5c25
- The ai_addrlen of a struct addrinfo used to be a size_t, per
  RFC 2553.  In XNS5.2, and subsequently in POSIX-2001 and RFC
  3493, it was changed to a socklen_t.  And, the n_net of a
  struct netent used to be an unsigned long integer.  In XNS5,
  and subsequently in POSIX-2001, it was changed to an uint32_t.
  To accomodate for this while preserving ABI compatibility with
  the old interface, we need to prepend or append 32 bits of
  padding, depending on the (LP64) architecture's endianness.
- Correct 1st argument of getnetbyaddr() to uint32_t on 32
  bit arch.  Stay as is on 64 bit arch for ABI backward
  compatibility for now.

Reviewed by: das, peter
MFC after: 2 weeks
include/netdb.h
lib/libc/net/getaddrinfo.c
lib/libc/net/getnetbydns.c
lib/libc/net/getnetbyht.c
lib/libc/net/getnetbynis.c
lib/libc/net/getnetnamadr.c
lib/libc/net/netdb_private.h