2 * Routines for mount dissection
4 * $Id: packet-mount.c,v 1.20 2001/01/28 03:39:48 guy Exp $
6 * Ethereal - Network traffic analyzer
7 * By Gerald Combs <gerald@zing.org>
8 * Copyright 1998 Gerald Combs
10 * Copied from packet-smb.c
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
32 #ifdef HAVE_SYS_TYPES_H
33 #include <sys/types.h>
37 #include "packet-rpc.h"
38 #include "packet-mount.h"
39 #include "packet-nfs.h"
42 static int proto_mount = -1;
43 static int hf_mount_path = -1;
44 static int hf_mount_status = -1;
45 static int hf_mount_mountlist_hostname = -1;
46 static int hf_mount_mountlist_directory = -1;
47 static int hf_mount_mountlist = -1;
48 static int hf_mount_groups_group = -1;
49 static int hf_mount_groups = -1;
50 static int hf_mount_exportlist_directory = -1;
51 static int hf_mount_exportlist = -1;
52 static int hf_mount_pathconf_link_max = -1;
53 static int hf_mount_pathconf_max_canon = -1;
54 static int hf_mount_pathconf_max_input = -1;
55 static int hf_mount_pathconf_name_max = -1;
56 static int hf_mount_pathconf_path_max = -1;
57 static int hf_mount_pathconf_pipe_buf = -1;
58 static int hf_mount_pathconf_vdisable = -1;
59 static int hf_mount_pathconf_mask = -1;
60 static int hf_mount_pathconf_error_all = -1;
61 static int hf_mount_pathconf_error_link_max = -1;
62 static int hf_mount_pathconf_error_max_canon = -1;
63 static int hf_mount_pathconf_error_max_input = -1;
64 static int hf_mount_pathconf_error_name_max = -1;
65 static int hf_mount_pathconf_error_path_max = -1;
66 static int hf_mount_pathconf_error_pipe_buf = -1;
67 static int hf_mount_pathconf_chown_restricted = -1;
68 static int hf_mount_pathconf_no_trunc = -1;
69 static int hf_mount_pathconf_error_vdisable = -1;
70 static int hf_mount_flavors = -1;
71 static int hf_mount_flavor = -1;
73 static gint ett_mount = -1;
74 static gint ett_mount_mountlist = -1;
75 static gint ett_mount_groups = -1;
76 static gint ett_mount_exportlist = -1;
77 static gint ett_mount_pathconf_mask = -1;
80 /* RFC 1094, Page 24 */
82 dissect_fhstatus(const u_char *pd, int offset, frame_data *fd, proto_tree *tree)
86 if (!BYTES_ARE_IN_FRAME(offset,4)) return offset;
87 status = EXTRACT_UINT(pd, offset+0);
89 proto_tree_add_uint(tree, hf_mount_status, NullTVB, offset, 4, status);
95 offset = old_dissect_fhandle(pd,offset,fd,tree,"fhandle");
107 dissect_mount_dirpath_call(const u_char *pd, int offset, frame_data *fd,
112 offset = dissect_rpc_string(pd,offset,fd,tree,hf_mount_path,NULL);
119 /* RFC 1094, Page 25,26 */
121 dissect_mount_mnt_reply(const u_char *pd, int offset, frame_data *fd,
124 offset = dissect_fhstatus(pd, offset, fd, tree);
130 /* RFC 1094, Page 26 */
131 /* RFC 1813, Page 110 */
133 dissect_mountlist(const u_char *pd, int offset, frame_data *fd, proto_tree *tree)
135 proto_item* mountlist_item = NULL;
136 proto_tree* mountlist_tree = NULL;
137 int old_offset = offset;
142 mountlist_item = proto_tree_add_item(tree, hf_mount_mountlist, NullTVB,
143 offset+0, END_OF_FRAME, FALSE);
145 mountlist_tree = proto_item_add_subtree(mountlist_item, ett_mount_mountlist);
148 offset = dissect_rpc_string(pd, offset, fd, mountlist_tree, hf_mount_mountlist_hostname,&hostname);
149 offset = dissect_rpc_string(pd, offset, fd, mountlist_tree, hf_mount_mountlist_directory,&directory);
151 if (mountlist_item) {
152 /* now we have a nicer string */
153 proto_item_set_text(mountlist_item, "Mount List Entry: %s:%s", hostname, directory);
154 /* now we know, that mountlist is shorter */
155 proto_item_set_len(mountlist_item, offset - old_offset);
164 /* RFC 1094, Page 26 */
165 /* RFC 1813, Page 110 */
167 dissect_mount_dump_reply(const u_char *pd, int offset, frame_data *fd,
170 offset = dissect_rpc_list(pd,offset,fd,tree,dissect_mountlist);
176 /* RFC 1094, Page 26 */
177 /* RFC 1813, Page 110 */
179 dissect_group(const u_char *pd, int offset, frame_data *fd, proto_tree *tree)
181 offset = dissect_rpc_string(pd, offset, fd, tree, hf_mount_groups_group,NULL);
187 /* RFC 1094, Page 26 */
188 /* RFC 1813, Page 113 */
190 dissect_exportlist(const u_char *pd, int offset, frame_data *fd, proto_tree *tree)
192 proto_item* exportlist_item = NULL;
193 proto_tree* exportlist_tree = NULL;
194 int old_offset = offset;
196 proto_item* groups_item = NULL;
197 proto_item* groups_tree = NULL;
201 exportlist_item = proto_tree_add_item(tree, hf_mount_exportlist, NullTVB,
202 offset+0, END_OF_FRAME, FALSE);
204 exportlist_tree = proto_item_add_subtree(exportlist_item, ett_mount_exportlist);
207 offset = dissect_rpc_string(pd, offset, fd, exportlist_tree, hf_mount_exportlist_directory,&directory);
208 groups_offset = offset;
210 groups_item = proto_tree_add_item(exportlist_tree, hf_mount_groups, NullTVB,
211 offset+0, END_OF_FRAME, FALSE);
213 groups_tree = proto_item_add_subtree(groups_item, ett_mount_groups);
215 offset = dissect_rpc_list(pd,offset,fd,groups_tree,dissect_group);
217 /* mark empty lists */
218 if (offset - groups_offset == 4) {
219 proto_item_set_text(groups_item, "Groups: empty");
222 /* now we know, that groups is shorter */
223 proto_item_set_len(groups_item, offset - groups_offset);
226 if (exportlist_item) {
227 /* now we have a nicer string */
228 proto_item_set_text(exportlist_item, "Export List Entry: %s", directory);
229 /* now we know, that exportlist is shorter */
230 proto_item_set_len(exportlist_item, offset - old_offset);
238 /* RFC 1094, Page 26 */
239 /* RFC 1813, Page 113 */
241 dissect_mount_export_reply(const u_char *pd, int offset, frame_data *fd,
244 offset = dissect_rpc_list(pd,offset,fd,tree,dissect_exportlist);
250 #define OFFS_MASK 32 /* offset of the "pc_mask" field */
252 #define PC_ERROR_ALL 0x0001
253 #define PC_ERROR_LINK_MAX 0x0002
254 #define PC_ERROR_MAX_CANON 0x0004
255 #define PC_ERROR_MAX_INPUT 0x0008
256 #define PC_ERROR_NAME_MAX 0x0010
257 #define PC_ERROR_PATH_MAX 0x0020
258 #define PC_ERROR_PIPE_BUF 0x0040
259 #define PC_CHOWN_RESTRICTED 0x0080
260 #define PC_NO_TRUNC 0x0100
261 #define PC_ERROR_VDISABLE 0x0200
263 static const true_false_string tos_error_all = {
265 "Some or all info valid"
268 static const true_false_string tos_error_link_max = {
273 static const true_false_string tos_error_max_canon = {
278 static const true_false_string tos_error_max_input = {
283 static const true_false_string tos_error_name_max = {
288 static const true_false_string tos_error_path_max = {
293 static const true_false_string tos_error_pipe_buf = {
298 static const true_false_string tos_chown_restricted = {
299 "Only a privileged user can change the ownership of a file",
300 "Users may give away their own files"
303 static const true_false_string tos_no_trunc = {
304 "File names that are too long will get an error",
305 "File names that are too long will be truncated"
308 static const true_false_string tos_error_vdisable = {
314 dissect_mount_pathconf_reply(const u_char *pd, int offset, frame_data *fd,
319 proto_tree *mask_tree;
322 * Extract the mask first, so we know which other fields the
323 * server was able to return to us.
325 if (!BYTES_ARE_IN_FRAME(offset + OFFS_MASK, 4))
327 pc_mask = EXTRACT_UINT(pd, offset+OFFS_MASK) & 0xFFFF;
329 if (!BYTES_ARE_IN_FRAME(offset + 0,4))
331 if (!(pc_mask & (PC_ERROR_LINK_MAX|PC_ERROR_ALL))) {
333 proto_tree_add_uint(tree,
334 hf_mount_pathconf_link_max, NullTVB, offset, 4,
335 EXTRACT_UINT(pd, offset+0));
340 if (!BYTES_ARE_IN_FRAME(offset,4))
342 if (!(pc_mask & (PC_ERROR_MAX_CANON|PC_ERROR_ALL))) {
344 proto_tree_add_uint(tree,
345 hf_mount_pathconf_max_canon, NullTVB, offset + 2, 2,
346 (EXTRACT_UINT(pd, offset+0)) & 0xFFFF);
352 if (!BYTES_ARE_IN_FRAME(offset,4))
354 if (!(pc_mask & (PC_ERROR_MAX_INPUT|PC_ERROR_ALL))) {
356 proto_tree_add_uint(tree,
357 hf_mount_pathconf_max_input, NullTVB, offset + 2, 2,
358 (EXTRACT_UINT(pd, offset+0)) & 0xFFFF);
363 if (!BYTES_ARE_IN_FRAME(offset,4))
365 if (!(pc_mask & (PC_ERROR_NAME_MAX|PC_ERROR_ALL))) {
367 proto_tree_add_uint(tree,
368 hf_mount_pathconf_name_max, NullTVB, offset + 2, 2,
369 (EXTRACT_UINT(pd, offset+0)) & 0xFFFF);
374 if (!BYTES_ARE_IN_FRAME(offset,4))
376 if (!(pc_mask & (PC_ERROR_PATH_MAX|PC_ERROR_ALL))) {
378 proto_tree_add_uint(tree,
379 hf_mount_pathconf_path_max, NullTVB, offset + 2, 2,
380 (EXTRACT_UINT(pd, offset+0)) & 0xFFFF);
385 if (!BYTES_ARE_IN_FRAME(offset,4))
387 if (!(pc_mask & (PC_ERROR_PIPE_BUF|PC_ERROR_ALL))) {
389 proto_tree_add_uint(tree,
390 hf_mount_pathconf_pipe_buf, NullTVB, offset + 2, 2,
391 (EXTRACT_UINT(pd, offset+0)) & 0xFFFF);
396 offset += 4; /* skip "pc_xxx" pad field */
398 if (!BYTES_ARE_IN_FRAME(offset,4))
400 if (!(pc_mask & (PC_ERROR_VDISABLE|PC_ERROR_ALL))) {
402 proto_tree_add_uint(tree,
403 hf_mount_pathconf_vdisable, NullTVB, offset + 3, 1,
404 (EXTRACT_UINT(pd, offset+0)) & 0xFF);
410 ti = proto_tree_add_uint(tree, hf_mount_pathconf_mask, NullTVB,
411 offset + 2, 2, pc_mask);
412 mask_tree = proto_item_add_subtree(ti, ett_mount_pathconf_mask);
413 proto_tree_add_boolean(mask_tree, hf_mount_pathconf_error_all, NullTVB,
414 offset + 2, 2, pc_mask);
415 proto_tree_add_boolean(mask_tree, hf_mount_pathconf_error_link_max, NullTVB,
416 offset + 2, 2, pc_mask);
417 proto_tree_add_boolean(mask_tree, hf_mount_pathconf_error_max_canon, NullTVB,
418 offset + 2, 2, pc_mask);
419 proto_tree_add_boolean(mask_tree, hf_mount_pathconf_error_max_input, NullTVB,
420 offset + 2, 2, pc_mask);
421 proto_tree_add_boolean(mask_tree, hf_mount_pathconf_error_name_max, NullTVB,
422 offset + 2, 2, pc_mask);
423 proto_tree_add_boolean(mask_tree, hf_mount_pathconf_error_path_max, NullTVB,
424 offset + 2, 2, pc_mask);
425 proto_tree_add_boolean(mask_tree, hf_mount_pathconf_error_pipe_buf, NullTVB,
426 offset + 2, 2, pc_mask);
427 proto_tree_add_boolean(mask_tree, hf_mount_pathconf_chown_restricted, NullTVB,
428 offset + 2, 2, pc_mask);
429 proto_tree_add_boolean(mask_tree, hf_mount_pathconf_no_trunc, NullTVB,
430 offset + 2, 2, pc_mask);
431 proto_tree_add_boolean(mask_tree, hf_mount_pathconf_error_vdisable, NullTVB,
432 offset + 2, 2, pc_mask);
438 /* proc number, "proc name", dissect_request, dissect_reply */
439 /* NULL as function pointer means: type of arguments is "void". */
441 /* Mount protocol version 1, RFC 1094 */
442 static const old_vsff mount1_proc[] = {
443 { 0, "NULL", NULL, NULL },
444 { MOUNTPROC_MNT, "MNT",
445 dissect_mount_dirpath_call, dissect_mount_mnt_reply },
446 { MOUNTPROC_DUMP, "DUMP",
447 NULL, dissect_mount_dump_reply },
448 { MOUNTPROC_UMNT, "UMNT",
449 dissect_mount_dirpath_call, NULL },
450 { MOUNTPROC_UMNTALL, "UMNTALL",
452 { MOUNTPROC_EXPORT, "EXPORT",
453 NULL, dissect_mount_export_reply },
454 { MOUNTPROC_EXPORTALL, "EXPORTALL",
455 NULL, dissect_mount_export_reply },
456 { 0, NULL, NULL, NULL }
458 /* end of mount version 1 */
461 /* Mount protocol version 2, private communication from somebody at Sun;
462 mount V2 is V1 plus MOUNTPROC_PATHCONF to fetch information for the
463 POSIX "pathconf()" call. */
464 static const old_vsff mount2_proc[] = {
465 { 0, "NULL", NULL, NULL },
466 { MOUNTPROC_MNT, "MNT",
467 dissect_mount_dirpath_call, dissect_mount_mnt_reply },
468 { MOUNTPROC_DUMP, "DUMP",
469 NULL, dissect_mount_dump_reply },
470 { MOUNTPROC_UMNT, "UMNT",
471 dissect_mount_dirpath_call, NULL },
472 { MOUNTPROC_UMNTALL, "UMNTALL",
474 { MOUNTPROC_EXPORT, "EXPORT",
475 NULL, dissect_mount_export_reply },
476 { MOUNTPROC_EXPORTALL, "EXPORTALL",
477 NULL, dissect_mount_export_reply },
478 { MOUNTPROC_PATHCONF, "PATHCONF",
479 dissect_mount_dirpath_call, dissect_mount_pathconf_reply },
480 { 0, NULL, NULL, NULL }
482 /* end of mount version 2 */
485 /* RFC 1813, Page 107 */
486 static const value_string mount3_mountstat3[] =
492 { 13, "ERR_ACCESS" },
493 { 20, "ERR_NOTDIR" },
495 { 63, "ERR_NAMETOOLONG" },
496 { 10004, "ERR_NOTSUPP" },
497 { 10006, "ERR_SERVERFAULT" },
502 /* RFC 1813, Page 107 */
504 dissect_mountstat3(const u_char *pd, int offset, frame_data *fd, proto_tree *tree,
505 int hfindex, guint32* status)
509 if (!BYTES_ARE_IN_FRAME(offset,4)) return offset;
510 mountstat3 = EXTRACT_UINT(pd, offset+0);
513 proto_tree_add_uint(tree, hfindex, NullTVB, offset, 4, mountstat3);
517 *status = mountstat3;
522 /* RFC 1831, Page 109 */
524 dissect_mount3_mnt_reply(const u_char *pd, int offset, frame_data *fd,
528 guint32 auth_flavors;
530 guint32 auth_flavor_i;
532 offset = dissect_mountstat3(pd, offset, fd, tree, hf_mount_status, &status);
535 offset = old_dissect_nfs_fh3(pd,offset,fd,tree,"fhandle");
536 if (!BYTES_ARE_IN_FRAME(offset,4)) return offset;
537 auth_flavors = EXTRACT_UINT(pd,offset+0);
538 proto_tree_add_uint(tree,hf_mount_flavors, NullTVB,
539 offset, 4, auth_flavors);
541 for (auth_flavor_i = 0 ; auth_flavor_i < hf_mount_flavors ; auth_flavor_i++) {
542 if (!BYTES_ARE_IN_FRAME(offset,4)) return offset;
543 auth_flavor = EXTRACT_UINT(pd,offset+0);
544 proto_tree_add_uint(tree,hf_mount_flavor, NullTVB,
545 offset, 4, auth_flavor);
557 /* Mount protocol version 3, RFC 1813 */
558 static const old_vsff mount3_proc[] = {
559 { 0, "NULL", NULL, NULL },
560 { MOUNTPROC_MNT, "MNT",
561 dissect_mount_dirpath_call, dissect_mount3_mnt_reply },
562 { MOUNTPROC_DUMP, "DUMP",
563 NULL, dissect_mount_dump_reply },
564 { MOUNTPROC_UMNT, "UMNT",
565 dissect_mount_dirpath_call, NULL },
566 { MOUNTPROC_UMNTALL, "UMNTALL",
568 { MOUNTPROC_EXPORT, "EXPORT",
569 NULL, dissect_mount_export_reply },
570 { 0, NULL, NULL, NULL }
572 /* end of Mount protocol version 3 */
576 proto_register_mount(void)
578 static hf_register_info hf[] = {
580 "Path", "mount.path", FT_STRING, BASE_DEC,
582 { &hf_mount_status, {
583 "Status", "mount.status", FT_UINT32, BASE_DEC,
584 VALS(mount3_mountstat3), 0, "Status" }},
585 { &hf_mount_mountlist_hostname, {
586 "Hostname", "mount.dump.hostname", FT_STRING, BASE_DEC,
587 NULL, 0, "Hostname" }},
588 { &hf_mount_mountlist_directory, {
589 "Directory", "mount.dump.directory", FT_STRING, BASE_DEC,
590 NULL, 0, "Directory" }},
591 { &hf_mount_mountlist, {
592 "Mount List Entry", "mount.dump.entry", FT_NONE, 0,
593 NULL, 0, "Mount List Entry" }},
594 { &hf_mount_groups_group, {
595 "Group", "mount.export.group", FT_STRING, BASE_DEC,
597 { &hf_mount_groups, {
598 "Groups", "mount.export.groups", FT_NONE, 0,
599 NULL, 0, "Groups" }},
600 { &hf_mount_exportlist_directory, {
601 "Directory", "mount.export.directory", FT_STRING, BASE_DEC,
602 NULL, 0, "Directory" }},
603 { &hf_mount_exportlist, {
604 "Export List Entry", "mount.export.entry", FT_NONE, 0,
605 NULL, 0, "Export List Entry" }},
606 { &hf_mount_pathconf_link_max, {
607 "Maximum number of links to a file", "mount.pathconf.link_max",
609 NULL, 0, "Maximum number of links allowed to a file" }},
610 { &hf_mount_pathconf_max_canon, {
611 "Maximum terminal input line length", "mount.pathconf.max_canon",
613 NULL, 0, "Max tty input line length" }},
614 { &hf_mount_pathconf_max_input, {
615 "Terminal input buffer size", "mount.pathconf.max_input",
617 NULL, 0, "Terminal input buffer size" }},
618 { &hf_mount_pathconf_name_max, {
619 "Maximum file name length", "mount.pathconf.name_max",
621 NULL, 0, "Maximum file name length" }},
622 { &hf_mount_pathconf_path_max, {
623 "Maximum path name length", "mount.pathconf.path_max",
625 NULL, 0, "Maximum path name length" }},
626 { &hf_mount_pathconf_pipe_buf, {
627 "Pipe buffer size", "mount.pathconf.pipe_buf",
629 NULL, 0, "Maximum amount of data that can be written atomically to a pipe" }},
630 { &hf_mount_pathconf_vdisable, {
631 "VDISABLE character", "mount.pathconf.vdisable_char",
633 NULL, 0, "Character value to disable a terminal special character" }},
634 { &hf_mount_pathconf_mask, {
635 "Reply error/status bits", "mount.pathconf.mask",
637 NULL, 0, "Bit mask with error and status bits" }},
638 { &hf_mount_pathconf_error_all, {
639 "ERROR_ALL", "mount.pathconf.mask.error_all",
640 FT_BOOLEAN, 16, TFS(&tos_error_all),
642 { &hf_mount_pathconf_error_link_max, {
643 "ERROR_LINK_MAX", "mount.pathconf.mask.error_link_max",
644 FT_BOOLEAN, 16, TFS(&tos_error_link_max),
645 PC_ERROR_LINK_MAX, "" }},
646 { &hf_mount_pathconf_error_max_canon, {
647 "ERROR_MAX_CANON", "mount.pathconf.mask.error_max_canon",
648 FT_BOOLEAN, 16, TFS(&tos_error_max_canon),
649 PC_ERROR_MAX_CANON, "" }},
650 { &hf_mount_pathconf_error_max_input, {
651 "ERROR_MAX_INPUT", "mount.pathconf.mask.error_max_input",
652 FT_BOOLEAN, 16, TFS(&tos_error_max_input),
653 PC_ERROR_MAX_INPUT, "" }},
654 { &hf_mount_pathconf_error_name_max, {
655 "ERROR_NAME_MAX", "mount.pathconf.mask.error_name_max",
656 FT_BOOLEAN, 16, TFS(&tos_error_name_max),
657 PC_ERROR_NAME_MAX, "" }},
658 { &hf_mount_pathconf_error_path_max, {
659 "ERROR_PATH_MAX", "mount.pathconf.mask.error_path_max",
660 FT_BOOLEAN, 16, TFS(&tos_error_path_max),
661 PC_ERROR_PATH_MAX, "" }},
662 { &hf_mount_pathconf_error_pipe_buf, {
663 "ERROR_PIPE_BUF", "mount.pathconf.mask.error_pipe_buf",
664 FT_BOOLEAN, 16, TFS(&tos_error_pipe_buf),
665 PC_ERROR_PIPE_BUF, "" }},
666 { &hf_mount_pathconf_chown_restricted, {
667 "CHOWN_RESTRICTED", "mount.pathconf.mask.chown_restricted",
668 FT_BOOLEAN, 16, TFS(&tos_chown_restricted),
669 PC_CHOWN_RESTRICTED, "" }},
670 { &hf_mount_pathconf_no_trunc, {
671 "NO_TRUNC", "mount.pathconf.mask.no_trunc",
672 FT_BOOLEAN, 16, TFS(&tos_no_trunc),
674 { &hf_mount_pathconf_error_vdisable, {
675 "ERROR_VDISABLE", "mount.pathconf.mask.error_vdisable",
676 FT_BOOLEAN, 16, TFS(&tos_error_vdisable),
677 PC_ERROR_VDISABLE, "" }},
678 { &hf_mount_flavors, {
679 "Flavors", "mount.flavors", FT_UINT32, BASE_DEC,
680 NULL, 0, "Flavors" }},
681 { &hf_mount_flavor, {
682 "Flavor", "mount.flavor", FT_UINT32, BASE_DEC,
683 VALS(rpc_auth_flavor), 0, "Flavor" }},
685 static gint *ett[] = {
687 &ett_mount_mountlist,
689 &ett_mount_exportlist,
690 &ett_mount_pathconf_mask,
693 proto_mount = proto_register_protocol("Mount Service", "MOUNT", "mount");
694 proto_register_field_array(proto_mount, hf, array_length(hf));
695 proto_register_subtree_array(ett, array_length(ett));
699 proto_reg_handoff_mount(void)
701 /* Register the protocol as RPC */
702 rpc_init_prog(proto_mount, MOUNT_PROGRAM, ett_mount);
703 /* Register the procedure tables */
704 old_rpc_init_proc_table(MOUNT_PROGRAM, 1, mount1_proc);
705 old_rpc_init_proc_table(MOUNT_PROGRAM, 2, mount2_proc);
706 old_rpc_init_proc_table(MOUNT_PROGRAM, 3, mount3_proc);