nonstandard SA_LEN() macro
Roland McGrath
roland@frob.com
Fri Jan 26 14:33:00 GMT 2001
> 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.
More information about the Libc-alpha
mailing list