Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 May 2005 20:15:15 +0000 (UTC)
From:      Hajimu UMEMOTO <ume@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/include netdb.h src/lib/libc/net getaddrinfo.c getnetbydns.c getnetbyht.c getnetbynis.c getnetnamadr.c netdb_private.h
Message-ID:  <200505152015.j4FKFGsI021150@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
ume         2005-05-15 20:15:15 UTC

  FreeBSD src repository

  Modified files:
    include              netdb.h 
    lib/libc/net         getaddrinfo.c getnetbydns.c getnetbyht.c 
                         getnetbynis.c getnetnamadr.c 
                         netdb_private.h 
  Log:
  - 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
  
  Revision  Changes    Path
  1.36      +46 -5     src/include/netdb.h
  1.69      +4 -1      src/lib/libc/net/getaddrinfo.c
  1.30      +12 -8     src/lib/libc/net/getnetbydns.c
  1.15      +5 -2      src/lib/libc/net/getnetbyht.c
  1.18      +7 -4      src/lib/libc/net/getnetbynis.c
  1.20      +8 -3      src/lib/libc/net/getnetnamadr.c
  1.9       +1 -7      src/lib/libc/net/netdb_private.h



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200505152015.j4FKFGsI021150>