2 * NSM definitions from:
3 * Protocols for Interworking: XNFS, Version 3W
4 * http://pubs.opengroup.org/onlinepubs/9629799/chap11.htm
6 * Symbols then massaged to avoid too much namespace pollution
7 * and to bring more inline with convention in nlm.
11 * This defines the maximum length of the string
12 * identifying the caller.
14 const NSM_MAXSTRLEN = 1024;
17 NSM_STAT_SUCC = 0, /* NSM agrees to monitor. */
18 NSM_STAT_FAIL = 1 /* NSM cannot monitor. */
22 string my_name<NSM_MAXSTRLEN>; /* hostname */
23 int my_prog; /* RPC program number */
24 int my_vers; /* program version number */
25 int my_proc; /* procedure number */
29 string mon_name<NSM_MAXSTRLEN>; /* name of the host to be monitored */
30 struct nsm_my_id my_id;
38 struct NSM1_STATargs {
39 string mon_name<NSM_MAXSTRLEN>;
48 struct nsm_mon_id mon_id;
49 opaque priv[16]; /* private information */
52 struct NSM1_UNMONres {
53 int state; /* state number of NSM */
56 struct NSM1_UNMONargs {
57 struct nsm_mon_id mon_id;
60 struct NSM1_UNMONALLres {
61 int state; /* state number of NSM */
64 struct NSM1_UNMONALLargs {
65 struct nsm_my_id my_id;
68 struct NSM1_NOTIFYargs {
69 string mon_name<NSM_MAXSTRLEN>;
74 * Protocol description for the NSM program.
78 void NSM1_NULL(void) = 0;
79 struct NSM1_STATres NSM1_STAT(struct NSM1_STATargs) = 1;
80 struct NSM1_MONres NSM1_MON(struct NSM1_MONargs) = 2;
81 struct NSM1_UNMONres NSM1_UNMON(struct NSM1_UNMONargs) = 3;
82 struct NSM1_UNMONALLres NSM1_UNMON_ALL(struct NSM1_UNMONALLargs) = 4;
83 void NSM1_SIMU_CRASH(void) = 5;
84 void NSM1_NOTIFY(struct NSM1_NOTIFYargs) = 6;