This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: nonstandard SA_LEN() macro
- To: Arkadiusz Miskiewicz <misiek at pld dot ORG dot PL>
- Subject: Re: nonstandard SA_LEN() macro
- From: Roland McGrath <roland at frob dot com>
- Date: Fri, 26 Jan 2001 17:33:00 -0500 (EST)
- Cc: libc-alpha at sources dot redhat dot com
> In one of ipng bsd api drafts there was SA_LEN() macro but rfc2553
> removes it. Unfortunately it still lives in bits/sockaddr.h and
> is used in glibc functions. IMO it should be moved from bits/sockaddr.h
> to some private glibc header to prevent programmers from using it since
> it's nonstandard.
Something to realize is that programs never really need to set the sa_len
member to anything. On the 4.4BSD-derived systems that have sa_len, it is
set by the kernel in returned sockaddrs, but never examined in a sockaddr
coming from the user.