Re: sa_len and sin_len

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Thu Jan 06 2000 - 08:32:33 EST


> But when porting applications from BSD to Linux, how to circumvent this
> problem?
> In linux: /usr/include/bits/sockaddr.h:
> #define SA_LEN(_x)
>
> But it seems that this is not usable when trying to convert something
> like ifrp->ifr_addr.sa_len , and how about sin_len?

We have no notion of sa_len. Linux is compatible with the traditional socket interface
not with the 4.4BSD extensions. POSIX 1003.1g draft 6.5 says sa_len is optional. We
opt not to have it

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.rutgers.edu



This archive was generated by hypermail 2b29 : Fri Jan 07 2000 - 21:00:13 EST