From owner-freebsd-bugs Thu Apr 5 13: 0: 9 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 8283337B505 for ; Thu, 5 Apr 2001 13:00:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f35K01i93086; Thu, 5 Apr 2001 13:00:01 -0700 (PDT) (envelope-from gnats) Received: from bg.sics.se (bg.sics.se [193.10.66.124]) by hub.freebsd.org (Postfix) with ESMTP id 1028737B424 for ; Thu, 5 Apr 2001 12:56:05 -0700 (PDT) (envelope-from bg@bg.sics.se) Received: (from bg@localhost) by bg.sics.se (8.11.1/8.11.1) id f35Ju4i06084; Thu, 5 Apr 2001 21:56:04 +0200 (CEST) (envelope-from bg) Message-Id: <200104051956.f35Ju4i06084@bg.sics.se> Date: Thu, 5 Apr 2001 21:56:04 +0200 (CEST) From: bg@sics.se Reply-To: bg@sics.se To: FreeBSD-gnats-submit@freebsd.org Cc: bg@sics.se X-Send-Pr-Version: 3.2 Subject: misc/26373: rpc.statd won't accept SM_NOTIFY call Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 26373 >Category: misc >Synopsis: Rpc.statd implements the SM_NOTIFY call but does not accept it >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Apr 05 13:00:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Bjoern Groenvall >Release: FreeBSD 4.2-RELEASE i386 >Organization: SICS >Environment: FreeBSD NFS servers. >Description: Rpc.statd implements the SM_NOTIFY call but because of an outdated sm_inter.x file the daemon will not accept the call. Reception of the call is made by a routine generated from sm_inter.x. by rpcgen. >How-To-Repeat: Make a SunOS 5.x box call statd on your FreeBSD machine. >Fix: First sm_inter.x must be changed to include procedure #6, this also requires a type stat_chge. Remove the definition of stat_chge that was kludged into statd.h. --- sm_inter.x.ORIG Sat Aug 28 01:45:11 1999 +++ sm_inter.x Mon Mar 19 16:13:11 2001 @@ -63,6 +63,8 @@ void SM_SIMU_CRASH(void) = 5; + void SM_NOTIFY(struct stat_chge) = 6; + } = 1; } = 100024; @@ -119,4 +121,9 @@ string mon_name; int state; opaque priv[16]; /* stored private information */ +}; + +struct stat_chge { + string mon_name; + int state; }; --- statd.h.ORIG Mon Apr 1 07:36:06 1996 +++ statd.h Mon Mar 19 16:16:40 2001 @@ -35,20 +35,6 @@ #include "sm_inter.h" -/* These pieces are missing from the distributed sm_inter.x, which */ -/* omits the SM_NOTIFY procedure used between cooperating rpc.statd's */ - -#define SM_NOTIFY ((u_long)6) -extern void *sm_notify_1(); - -struct stat_chge -{ - char *mon_name; - int state; -}; -typedef struct stat_chge stat_chge; -bool_t xdr_stat_chge(); - /* ------------------------------------------------------------------------- */ /* Data structures for recording monitored hosts >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message