This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: nonstandard SA_LEN() macro


> 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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]