From owner-freebsd-questions@FreeBSD.ORG Sun Jan 23 12:58:35 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7C56216A4CE; Sun, 23 Jan 2005 12:58:35 +0000 (GMT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 02EA143D41; Sun, 23 Jan 2005 12:58:35 +0000 (GMT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.13.1/8.13.1) with ESMTP id j0NCw9QK046625; Sun, 23 Jan 2005 07:58:10 -0500 (EST) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)j0NCw9hT046622; Sun, 23 Jan 2005 12:58:09 GMT (envelope-from robert@fledge.watson.org) Date: Sun, 23 Jan 2005 12:58:09 +0000 (GMT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Boris Popov In-Reply-To: <20050113080714.GH13517@vertex.kz> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: FreeBSD Questions Subject: Re: RELENG_4 IPX commit broke net/mars_nwe? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Jan 2005 12:58:35 -0000 On Thu, 13 Jan 2005, Boris Popov wrote: > On Wed, Jan 12, 2005 at 08:50:02PM +0300, Igor B. Bykhalo wrote: > > > > Looks like the follwoing commit broke net/mars_nwe port > > on my RELENG_4 file server box: > > Yes, it seems to be. Mars_nwe have different idea about > added macro: > > # define sipx_node sipx_addr.x_host.c_host > # define sipx_network sipx_addr.x_net.c_net > # define ipx_netlong(iaddr) (((union ipx_net_u *)(&((iaddr).x_net)))->long_e) I've backed out the change, and wonder if the correct variation would be the change I merged, with the addition of __packed, which would make the above work on architectures with strong alignment requirements? Robert N M Watson > > > > > Edit src/sys/netipx/ipx.h > > Add delta 1.15.2.1 2005.01.02.13.00.51 rwatson > > > > > > =================================================================== > > RCS file: /usr/local/www/cvsroot/FreeBSD/src/sys/netipx/ipx.h,v > > retrieving revision 1.15 > > retrieving revision 1.15.2.1 > > diff -u -p -r1.15 -r1.15.2.1 > > --- src/sys/netipx/ipx.h 1999/08/28 18:21:52 1.15 > > +++ src/sys/netipx/ipx.h 2005/01/02 13:00:51 1.15.2.1 > > @@ -33,7 +33,7 @@ > > * > > * @(#)ipx.h > > * > > - * $FreeBSD: /usr/local/www/cvsroot/FreeBSD/src/sys/netipx/ipx.h,v 1.15 1999/08/28 18:21:52 jhay Exp $ > > + * $FreeBSD: /usr/local/www/cvsroot/FreeBSD/src/sys/netipx/ipx.h,v 1.15.2.1 2005/01/02 13:00:51 rwatson Exp $ > > */ > > > > #ifndef _NETIPX_IPX_H_ > > @@ -108,6 +108,7 @@ union ipx_host { > > union ipx_net { > > u_char c_net[4]; > > u_short s_net[2]; > > + u_int u_net; > > }; > > > > union ipx_net_u { > > @@ -131,6 +132,8 @@ struct sockaddr_ipx { > > char sipx_zero[2]; > > }; > > #define sipx_port sipx_addr.x_port > > +#define sipx_network sipx_addr.x_net.u_net > > +#define sipx_node sipx_addr.x_host.c_host > > > > /* > > * Definitions for IPX Internetwork Packet Exchange Protocol > > > > -- > Boris Popov > http://rbp.euro.ru >