From owner-freebsd-sparc64@FreeBSD.ORG Thu May 13 15:42:44 2004 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9260D16A4CE for ; Thu, 13 May 2004 15:42:44 -0700 (PDT) Received: from mail.gmx.net (mail.gmx.de [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 38DA743D1F for ; Thu, 13 May 2004 15:42:43 -0700 (PDT) (envelope-from tmoestl@gmx.net) Received: (qmail 25236 invoked by uid 65534); 13 May 2004 22:42:41 -0000 Received: from p50906F90.dip.t-dialin.net (EHLO timesink.dyndns.org) (80.144.111.144) by mail.gmx.net (mp012) with SMTP; 14 May 2004 00:42:41 +0200 X-Authenticated: #5374206 Received: by abel (Postfix, from userid 1001) id C05986B7; Fri, 14 May 2004 00:42:38 +0200 (CEST) Date: Fri, 14 May 2004 00:42:37 +0200 From: Thomas Moestl To: Mike Hogsett Message-ID: <20040513224237.GC982@timesink.dyndns.org> References: <200405131620.i4DGKHxp029525@beast.csl.sri.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="RASg3xLB4tUQ4RcS" Content-Disposition: inline In-Reply-To: <200405131620.i4DGKHxp029525@beast.csl.sri.com> User-Agent: Mutt/1.5.6i cc: freebsd-sparc64@freebsd.org Subject: Re: 5.2.1p6, Sparc64 && ypwhich X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 May 2004 22:42:44 -0000 --RASg3xLB4tUQ4RcS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, 2004/05/13 at 09:20:17 -0700, Mike Hogsett wrote: > This is odd... > > rr-spamd-3# ypwhich > 3.253.7.253 > > Which doesn't really look odd unless you realize that my NIS servers are > certainly not at that address! > > Despite this ypbind does appear to be working corrrectly. Can you please test the attached patch (it corrects some types in , taken from the NetBSD version and the rpcgen-generated definitions)? - Thomas -- Thomas Moestl http://www.tu-bs.de/~y0015675/ http://people.FreeBSD.org/~tmm/ "I've got to start listening to those quiet, nagging doubts." -- Calvin and Hobbes --RASg3xLB4tUQ4RcS Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="ypprot.diff" Index: include/rpcsvc/yp_prot.h =================================================================== RCS file: /vol/d/ncvs/src/include/rpcsvc/yp_prot.h,v retrieving revision 1.11 diff -u -r1.11 yp_prot.h --- include/rpcsvc/yp_prot.h 6 Feb 2002 13:30:24 -0000 1.11 +++ include/rpcsvc/yp_prot.h 13 May 2004 22:05:44 -0000 @@ -100,7 +100,7 @@ struct ypmap_parms { char *domain; char *map; - u_long ordernum; + u_int ordernum; char *owner; }; @@ -117,9 +117,9 @@ struct ypreq_xfr { struct ypmap_parms map_parms; - u_long transid; - u_long proto; - u_short port; + u_int transid; + u_int proto; + u_int port; }; #define ypxfr_domain map_parms.domain #define ypxfr_map map_parms.map @@ -127,24 +127,24 @@ #define ypxfr_owner map_parms.owner struct ypresp_val { - u_long status; + u_int status; datum valdat; }; struct ypresp_key_val { - u_long status; + u_int status; datum keydat; datum valdat; }; struct ypresp_master { - u_long status; + u_int status; char *master; }; struct ypresp_order { - u_long status; - u_long ordernum; + u_int status; + u_int ordernum; }; struct ypmaplist { @@ -153,7 +153,7 @@ }; struct ypresp_maplist { - u_long status; + u_int status; struct ypmaplist *list; }; @@ -245,7 +245,7 @@ struct ypbind_resp { enum ypbind_resptype ypbind_status; union { - u_long ypbind_error; + u_int ypbind_error; struct ypbind_binding ypbind_bindinfo; } ypbind_respbody; }; @@ -261,7 +261,7 @@ struct ypbind_setdom { char ypsetdom_domain[YPMAXDOMAIN + 1]; struct ypbind_binding ypsetdom_binding; - u_short ypsetdom_vers; + u_int ypsetdom_vers; }; #define ypsetdom_addr ypsetdom_binding.ypbind_binding_addr #define ypsetdom_port ypsetdom_binding.ypbind_binding_port @@ -286,8 +286,8 @@ #define YPPUSHPROC_XFRRESP ((u_long)1) struct yppushresp_xfr { - u_long transid; - u_long status; + u_int transid; + u_int status; }; /* yppush status value in yppushresp_xfr.status */ --RASg3xLB4tUQ4RcS--