Date: Fri, 14 May 2004 00:42:37 +0200 From: Thomas Moestl <t.moestl@tu-bs.de> To: Mike Hogsett <hogsett@csl.sri.com> Cc: freebsd-sparc64@freebsd.org Subject: Re: 5.2.1p6, Sparc64 && ypwhich Message-ID: <20040513224237.GC982@timesink.dyndns.org> In-Reply-To: <200405131620.i4DGKHxp029525@beast.csl.sri.com> References: <200405131620.i4DGKHxp029525@beast.csl.sri.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <rpcsvc/yp_prot.h>, taken from the NetBSD version and the rpcgen-generated definitions)? - Thomas -- Thomas Moestl <t.moestl@tu-bs.de> http://www.tu-bs.de/~y0015675/ <tmm@FreeBSD.org> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040513224237.GC982>