Date: Sun, 23 Jan 2005 12:58:09 +0000 (GMT) From: Robert Watson <rwatson@FreeBSD.org> To: Boris Popov <bp@FreeBSD.org> Cc: FreeBSD Questions <freebsd-questions@FreeBSD.org> Subject: Re: RELENG_4 IPX commit broke net/mars_nwe? Message-ID: <Pine.NEB.3.96L.1050123125722.46157D-100000@fledge.watson.org> In-Reply-To: <20050113080714.GH13517@vertex.kz>
index | next in thread | previous in thread | raw e-mail
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
>
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.96L.1050123125722.46157D-100000>
