Date: Thu, 5 Apr 2001 21:56:04 +0200 (CEST) From: bg@sics.se To: FreeBSD-gnats-submit@freebsd.org Cc: bg@sics.se Subject: misc/26373: rpc.statd won't accept SM_NOTIFY call Message-ID: <200104051956.f35Ju4i06084@bg.sics.se>
next in thread | raw e-mail | index | archive | help
>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<SM_MAXSTRLEN>;
int state;
opaque priv[16]; /* stored private information */
+};
+
+struct stat_chge {
+ string mon_name<SM_MAXSTRLEN>;
+ 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104051956.f35Ju4i06084>
