From owner-freebsd-emulation Mon Jan 22 10:30:22 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from palrel1.hp.com (palrel1.hp.com [156.153.255.242]) by hub.freebsd.org (Postfix) with ESMTP id A9D2237B401 for ; Mon, 22 Jan 2001 10:30:02 -0800 (PST) Received: from adlmail.cup.hp.com (adlmail.cup.hp.com [15.0.100.30]) by palrel1.hp.com (Postfix) with ESMTP id AFC1D7A6; Mon, 22 Jan 2001 10:30:01 -0800 (PST) Received: from cup.hp.com (gauss.cup.hp.com [15.28.97.152]) by adlmail.cup.hp.com (8.9.3 (PHNE_18546)/8.9.3 SMKit7.02) with ESMTP id KAA08412; Mon, 22 Jan 2001 10:29:57 -0800 (PST) Message-ID: <3A6C7C25.A6101656@cup.hp.com> Date: Mon, 22 Jan 2001 10:29:57 -0800 From: Marcel Moolenaar Organization: Hewlett-Packard X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Martin Blapp Cc: freebsd-emulation@FreeBSD.ORG Subject: Re: Staroffice Network Problem (still unsolved) References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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