lkml.org 
[lkml]   [2007]   [Sep]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: follow-up: discrepancy with POSIX
    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Andi Kleen wrote:
    >> But the spec calls for a "null address" to be used and that's in my
    >> understanding something different from using AF_UNSPEC.
    >
    > memset(&sockaddr, 0, sizeof(sockaddr)) should give you AF_UNSPEC

    But the spec calls for <quote>null address for the protocol</quote>.

    That means the family for the null address is the same as the family of
    the socket.

    - --
    ➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.7 (GNU/Linux)

    iD8DBQFG8WCO2ijCOnn/RHQRAgtsAJ9qTFVj5QQbVG/hUflxo/6uPOfl4QCdHSX8
    wi2GX7B0pht8VDaswYLqdpM=
    =sMSg
    -----END PGP SIGNATURE-----
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2007-09-19 19:51    [W:0.020 / U:400.024 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site