Date: Mon, 22 Jan 2001 10:29:57 -0800 From: Marcel Moolenaar <marcel@cup.hp.com> To: Martin Blapp <mb@imp.ch> Cc: freebsd-emulation@FreeBSD.ORG Subject: Re: Staroffice Network Problem (still unsolved) Message-ID: <3A6C7C25.A6101656@cup.hp.com> References: <Pine.BSF.4.21.0101202026470.5360-100000@levais.imp.ch>
next in thread | previous in thread | raw e-mail | index | archive | help
Martin Blapp wrote:
>
> I've included now also the return values :
There's a discrepancy between a FreeBSD and a Linux struct sockaddr.
FreeBSD:
struct sockaddr {
u_char sa_len; /* total length */
sa_family_t sa_family; /* address family */
char sa_data[14]; /* actually longer; address
value */
};
Linux:
struct sockaddr {
sa_family_t sa_family; /* address family, AF_xxx
*/
char sa_data[14]; /* 14 bytes of protocol address
*/
};
I'm not sure this is properly handled. You might want to check. I
encountered this when I wanted to reimplement the Linux socket syscalls
to work without COMPAT_43...
--
Marcel Moolenaar
mail: marcel@cup.hp.com / marcel@FreeBSD.org
tel: (408) 447-4222
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-emulation" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A6C7C25.A6101656>
