2 * Routines for mount dissection
4 * $Id: packet-mount.c,v 1.16 2000/08/13 14:08:29 deniel 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 (!proto_is_protocol_enabled(proto_mount))
89 if (!BYTES_ARE_IN_FRAME(offset,4)) return offset;
90 status = EXTRACT_UINT(pd, offset+0);
92 proto_tree_add_uint(tree, hf_mount_status, NullTVB, offset, 4, status);
98 offset = dissect_fhandle(pd,offset,fd,tree,"fhandle");
110 dissect_mount_dirpath_call(const u_char *pd, int offset, frame_data *fd,
114 if (!proto_is_protocol_enabled(proto_mount))
119 offset = dissect_rpc_string(pd,offset,fd,tree,hf_mount_path,NULL);
126 /* RFC 1094, Page 25,26 */
128 dissect_mount_mnt_reply(const u_char *pd, int offset, frame_data *fd,
132 if (!proto_is_protocol_enabled(proto_mount))
135 offset = dissect_fhstatus(pd, offset, fd, tree);
141 /* RFC 1094, Page 26 */
142 /* RFC 1813, Page 110 */
144 dissect_mountlist(const u_char *pd, int offset, frame_data *fd, proto_tree *tree)
146 proto_item* mountlist_item = NULL;
147 proto_tree* mountlist_tree = NULL;
148 int old_offset = offset;
152 if (!proto_is_protocol_enabled(proto_mount))
156 mountlist_item = proto_tree_add_item(tree, hf_mount_mountlist, NullTVB,
157 offset+0, END_OF_FRAME, FALSE);
159 mountlist_tree = proto_item_add_subtree(mountlist_item, ett_mount_mountlist);
162 offset = dissect_rpc_string(pd, offset, fd, mountlist_tree, hf_mount_mountlist_hostname,&hostname);
163 offset = dissect_rpc_string(pd, offset, fd, mountlist_tree, hf_mount_mountlist_directory,&directory);
165 if (mountlist_item) {
166 /* now we have a nicer string */
167 proto_item_set_text(mountlist_item, "Mount List Entry: %s:%s", hostname, directory);
168 /* now we know, that mountlist is shorter */
169 proto_item_set_len(mountlist_item, offset - old_offset);
178 /* RFC 1094, Page 26 */
179 /* RFC 1813, Page 110 */
181 dissect_mount_dump_reply(const u_char *pd, int offset, frame_data *fd,
185 if (!proto_is_protocol_enabled(proto_mount))
188 offset = dissect_rpc_list(pd,offset,fd,tree,dissect_mountlist);
194 /* RFC 1094, Page 26 */
195 /* RFC 1813, Page 110 */
197 dissect_group(const u_char *pd, int offset, frame_data *fd, proto_tree *tree)
200 if (!proto_is_protocol_enabled(proto_mount))
203 offset = dissect_rpc_string(pd, offset, fd, tree, hf_mount_groups_group,NULL);
209 /* RFC 1094, Page 26 */
210 /* RFC 1813, Page 113 */
212 dissect_exportlist(const u_char *pd, int offset, frame_data *fd, proto_tree *tree)
214 proto_item* exportlist_item = NULL;
215 proto_tree* exportlist_tree = NULL;
216 int old_offset = offset;
218 proto_item* groups_item = NULL;
219 proto_item* groups_tree = NULL;
222 if (!proto_is_protocol_enabled(proto_mount))
226 exportlist_item = proto_tree_add_item(tree, hf_mount_exportlist, NullTVB,
227 offset+0, END_OF_FRAME, FALSE);
229 exportlist_tree = proto_item_add_subtree(exportlist_item, ett_mount_exportlist);
232 offset = dissect_rpc_string(pd, offset, fd, exportlist_tree, hf_mount_exportlist_directory,&directory);
233 groups_offset = offset;
235 groups_item = proto_tree_add_item(exportlist_tree, hf_mount_groups, NullTVB,
236 offset+0, END_OF_FRAME, FALSE);
238 groups_tree = proto_item_add_subtree(groups_item, ett_mount_groups);
240 offset = dissect_rpc_list(pd,offset,fd,groups_tree,dissect_group);
242 /* mark empty lists */
243 if (offset - groups_offset == 4) {
244 proto_item_set_text(groups_item, "Groups: empty");
247 /* now we know, that groups is shorter */
248 proto_item_set_len(groups_item, offset - groups_offset);
251 if (exportlist_item) {
252 /* now we have a nicer string */
253 proto_item_set_text(exportlist_item, "Export List Entry: %s", directory);
254 /* now we know, that exportlist is shorter */
255 proto_item_set_len(exportlist_item, offset - old_offset);
263 /* RFC 1094, Page 26 */
264 /* RFC 1813, Page 113 */
266 dissect_mount_export_reply(const u_char *pd, int offset, frame_data *fd,
270 if (!proto_is_protocol_enabled(proto_mount))
273 offset = dissect_rpc_list(pd,offset,fd,tree,dissect_exportlist);
279 #define OFFS_MASK 32 /* offset of the "pc_mask" field */
281 #define PC_ERROR_ALL 0x0001
282 #define PC_ERROR_LINK_MAX 0x0002
283 #define PC_ERROR_MAX_CANON 0x0004
284 #define PC_ERROR_MAX_INPUT 0x0008
285 #define PC_ERROR_NAME_MAX 0x0010
286 #define PC_ERROR_PATH_MAX 0x0020
287 #define PC_ERROR_PIPE_BUF 0x0040
288 #define PC_CHOWN_RESTRICTED 0x0080
289 #define PC_NO_TRUNC 0x0100
290 #define PC_ERROR_VDISABLE 0x0200
292 static const true_false_string tos_error_all = {
294 "Some or all info valid"
297 static const true_false_string tos_error_link_max = {
302 static const true_false_string tos_error_max_canon = {
307 static const true_false_string tos_error_max_input = {
312 static const true_false_string tos_error_name_max = {
317 static const true_false_string tos_error_path_max = {
322 static const true_false_string tos_error_pipe_buf = {
327 static const true_false_string tos_chown_restricted = {
328 "Only a privileged user can change the ownership of a file",
329 "Users may give away their own files"
332 static const true_false_string tos_no_trunc = {
333 "File names that are too long will get an error",
334 "File names that are too long will be truncated"
337 static const true_false_string tos_error_vdisable = {
343 dissect_mount_pathconf_reply(const u_char *pd, int offset, frame_data *fd,
348 proto_tree *mask_tree;
350 if (!proto_is_protocol_enabled(proto_mount))
354 * Extract the mask first, so we know which other fields the
355 * server was able to return to us.
357 if (!BYTES_ARE_IN_FRAME(offset + OFFS_MASK, 4))
359 pc_mask = EXTRACT_UINT(pd, offset+OFFS_MASK) & 0xFFFF;
361 if (!BYTES_ARE_IN_FRAME(offset + 0,4))
363 if (!(pc_mask & (PC_ERROR_LINK_MAX|PC_ERROR_ALL))) {
365 proto_tree_add_uint(tree,
366 hf_mount_pathconf_link_max, NullTVB, offset, 4,
367 EXTRACT_UINT(pd, offset+0));
372 if (!BYTES_ARE_IN_FRAME(offset,4))
374 if (!(pc_mask & (PC_ERROR_MAX_CANON|PC_ERROR_ALL))) {
376 proto_tree_add_uint(tree,
377 hf_mount_pathconf_max_canon, NullTVB, offset + 2, 2,
378 (EXTRACT_UINT(pd, offset+0)) & 0xFFFF);
384 if (!BYTES_ARE_IN_FRAME(offset,4))
386 if (!(pc_mask & (PC_ERROR_MAX_INPUT|PC_ERROR_ALL))) {
388 proto_tree_add_uint(tree,
389 hf_mount_pathconf_max_input, NullTVB, offset + 2, 2,
390 (EXTRACT_UINT(pd, offset+0)) & 0xFFFF);
395 if (!BYTES_ARE_IN_FRAME(offset,4))
397 if (!(pc_mask & (PC_ERROR_NAME_MAX|PC_ERROR_ALL))) {
399 proto_tree_add_uint(tree,
400 hf_mount_pathconf_name_max, NullTVB, offset + 2, 2,
401 (EXTRACT_UINT(pd, offset+0)) & 0xFFFF);
406 if (!BYTES_ARE_IN_FRAME(offset,4))
408 if (!(pc_mask & (PC_ERROR_PATH_MAX|PC_ERROR_ALL))) {
410 proto_tree_add_uint(tree,
411 hf_mount_pathconf_path_max, NullTVB, offset + 2, 2,
412 (EXTRACT_UINT(pd, offset+0)) & 0xFFFF);
417 if (!BYTES_ARE_IN_FRAME(offset,4))
419 if (!(pc_mask & (PC_ERROR_PIPE_BUF|PC_ERROR_ALL))) {
421 proto_tree_add_uint(tree,
422 hf_mount_pathconf_pipe_buf, NullTVB, offset + 2, 2,
423 (EXTRACT_UINT(pd, offset+0)) & 0xFFFF);
428 offset += 4; /* skip "pc_xxx" pad field */
430 if (!BYTES_ARE_IN_FRAME(offset,4))
432 if (!(pc_mask & (PC_ERROR_VDISABLE|PC_ERROR_ALL))) {
434 proto_tree_add_uint(tree,
435 hf_mount_pathconf_vdisable, NullTVB, offset + 3, 1,
436 (EXTRACT_UINT(pd, offset+0)) & 0xFF);
442 ti = proto_tree_add_uint(tree, hf_mount_pathconf_mask, NullTVB,
443 offset + 2, 2, pc_mask);
444 mask_tree = proto_item_add_subtree(ti, ett_mount_pathconf_mask);
445 proto_tree_add_boolean(mask_tree, hf_mount_pathconf_error_all, NullTVB,
446 offset + 2, 2, pc_mask);
447 proto_tree_add_boolean(mask_tree, hf_mount_pathconf_error_link_max, NullTVB,
448 offset + 2, 2, pc_mask);
449 proto_tree_add_boolean(mask_tree, hf_mount_pathconf_error_max_canon, NullTVB,
450 offset + 2, 2, pc_mask);
451 proto_tree_add_boolean(mask_tree, hf_mount_pathconf_error_max_input, NullTVB,
452 offset + 2, 2, pc_mask);
453 proto_tree_add_boolean(mask_tree, hf_mount_pathconf_error_name_max, NullTVB,
454 offset + 2, 2, pc_mask);
455 proto_tree_add_boolean(mask_tree, hf_mount_pathconf_error_path_max, NullTVB,
456 offset + 2, 2, pc_mask);
457 proto_tree_add_boolean(mask_tree, hf_mount_pathconf_error_pipe_buf, NullTVB,
458 offset + 2, 2, pc_mask);
459 proto_tree_add_boolean(mask_tree, hf_mount_pathconf_chown_restricted, NullTVB,
460 offset + 2, 2, pc_mask);
461 proto_tree_add_boolean(mask_tree, hf_mount_pathconf_no_trunc, NullTVB,
462 offset + 2, 2, pc_mask);
463 proto_tree_add_boolean(mask_tree, hf_mount_pathconf_error_vdisable, NullTVB,
464 offset + 2, 2, pc_mask);
470 /* proc number, "proc name", dissect_request, dissect_reply */
471 /* NULL as function pointer means: take the generic one. */
473 /* Mount protocol version 1, RFC 1094 */
474 static const vsff mount1_proc[] = {
475 { 0, "NULL", NULL, NULL },
476 { MOUNTPROC_MNT, "MNT",
477 dissect_mount_dirpath_call, dissect_mount_mnt_reply },
478 { MOUNTPROC_DUMP, "DUMP",
479 NULL, dissect_mount_dump_reply },
480 { MOUNTPROC_UMNT, "UMNT",
481 dissect_mount_dirpath_call, NULL },
482 { MOUNTPROC_UMNTALL, "UMNTALL",
484 { MOUNTPROC_EXPORT, "EXPORT",
485 NULL, dissect_mount_export_reply },
486 { MOUNTPROC_EXPORTALL, "EXPORTALL",
487 NULL, dissect_mount_export_reply },
488 { 0, NULL, NULL, NULL }
490 /* end of mount version 1 */
493 /* Mount protocol version 2, private communication from somebody at Sun;
494 mount V2 is V1 plus MOUNTPROC_PATHCONF to fetch information for the
495 POSIX "pathconf()" call. */
496 static const vsff mount2_proc[] = {
497 { 0, "NULL", NULL, NULL },
498 { MOUNTPROC_MNT, "MNT",
499 dissect_mount_dirpath_call, dissect_mount_mnt_reply },
500 { MOUNTPROC_DUMP, "DUMP",
501 NULL, dissect_mount_dump_reply },
502 { MOUNTPROC_UMNT, "UMNT",
503 dissect_mount_dirpath_call, NULL },
504 { MOUNTPROC_UMNTALL, "UMNTALL",
506 { MOUNTPROC_EXPORT, "EXPORT",
507 NULL, dissect_mount_export_reply },
508 { MOUNTPROC_EXPORTALL, "EXPORTALL",
509 NULL, dissect_mount_export_reply },
510 { MOUNTPROC_PATHCONF, "PATHCONF",
511 dissect_mount_dirpath_call, dissect_mount_pathconf_reply },
512 { 0, NULL, NULL, NULL }
514 /* end of mount version 2 */
517 /* RFC 1813, Page 107 */
518 static const value_string mount3_mountstat3[] =
524 { 13, "ERR_ACCESS" },
525 { 20, "ERR_NOTDIR" },
527 { 63, "ERR_NAMETOOLONG" },
528 { 10004, "ERR_NOTSUPP" },
529 { 10006, "ERR_SERVERFAULT" },
534 /* RFC 1813, Page 107 */
536 dissect_mountstat3(const u_char *pd, int offset, frame_data *fd, proto_tree *tree,
537 int hfindex, guint32* status)
541 if (!proto_is_protocol_enabled(proto_mount))
544 if (!BYTES_ARE_IN_FRAME(offset,4)) return offset;
545 mountstat3 = EXTRACT_UINT(pd, offset+0);
548 proto_tree_add_uint(tree, hfindex, NullTVB, offset, 4, mountstat3);
552 *status = mountstat3;
557 /* RFC 1831, Page 109 */
559 dissect_mount3_mnt_reply(const u_char *pd, int offset, frame_data *fd,
563 guint32 auth_flavors;
565 guint32 auth_flavor_i;
567 if (!proto_is_protocol_enabled(proto_mount))
570 offset = dissect_mountstat3(pd, offset, fd, tree, hf_mount_status, &status);
573 offset = dissect_nfs_fh3(pd,offset,fd,tree,"fhandle");
574 if (!BYTES_ARE_IN_FRAME(offset,4)) return offset;
575 auth_flavors = EXTRACT_UINT(pd,offset+0);
576 proto_tree_add_uint(tree,hf_mount_flavors, NullTVB,
577 offset, 4, auth_flavors);
579 for (auth_flavor_i = 0 ; auth_flavor_i < hf_mount_flavors ; auth_flavor_i++) {
580 if (!BYTES_ARE_IN_FRAME(offset,4)) return offset;
581 auth_flavor = EXTRACT_UINT(pd,offset+0);
582 proto_tree_add_uint(tree,hf_mount_flavor, NullTVB,
583 offset, 4, auth_flavor);
595 /* Mount protocol version 3, RFC 1813 */
596 static const vsff mount3_proc[] = {
597 { 0, "NULL", NULL, NULL },
598 { MOUNTPROC_MNT, "MNT",
599 dissect_mount_dirpath_call, dissect_mount3_mnt_reply },
600 { MOUNTPROC_DUMP, "DUMP",
601 NULL, dissect_mount_dump_reply },
602 { MOUNTPROC_UMNT, "UMNT",
603 dissect_mount_dirpath_call, NULL },
604 { MOUNTPROC_UMNTALL, "UMNTALL",
606 { MOUNTPROC_EXPORT, "EXPORT",
607 NULL, dissect_mount_export_reply },
608 { 0, NULL, NULL, NULL }
610 /* end of Mount protocol version 3 */
614 proto_register_mount(void)
616 static hf_register_info hf[] = {
618 "Path", "mount.path", FT_STRING, BASE_DEC,
620 { &hf_mount_status, {
621 "Status", "mount.status", FT_UINT32, BASE_DEC,
622 VALS(mount3_mountstat3), 0, "Status" }},
623 { &hf_mount_mountlist_hostname, {
624 "Hostname", "mount.dump.hostname", FT_STRING, BASE_DEC,
625 NULL, 0, "Hostname" }},
626 { &hf_mount_mountlist_directory, {
627 "Directory", "mount.dump.directory", FT_STRING, BASE_DEC,
628 NULL, 0, "Directory" }},
629 { &hf_mount_mountlist, {
630 "Mount List Entry", "mount.dump.entry", FT_NONE, 0,
631 NULL, 0, "Mount List Entry" }},
632 { &hf_mount_groups_group, {
633 "Group", "mount.export.group", FT_STRING, BASE_DEC,
635 { &hf_mount_groups, {
636 "Groups", "mount.export.groups", FT_NONE, 0,
637 NULL, 0, "Groups" }},
638 { &hf_mount_exportlist_directory, {
639 "Directory", "mount.export.directory", FT_STRING, BASE_DEC,
640 NULL, 0, "Directory" }},
641 { &hf_mount_exportlist, {
642 "Export List Entry", "mount.export.entry", FT_NONE, 0,
643 NULL, 0, "Export List Entry" }},
644 { &hf_mount_pathconf_link_max, {
645 "Maximum number of links to a file", "mount.pathconf.link_max",
647 NULL, 0, "Maximum number of links allowed to a file" }},
648 { &hf_mount_pathconf_max_canon, {
649 "Maximum terminal input line length", "mount.pathconf.max_canon",
651 NULL, 0, "Max tty input line length" }},
652 { &hf_mount_pathconf_max_input, {
653 "Terminal input buffer size", "mount.pathconf.max_input",
655 NULL, 0, "Terminal input buffer size" }},
656 { &hf_mount_pathconf_name_max, {
657 "Maximum file name length", "mount.pathconf.name_max",
659 NULL, 0, "Maximum file name length" }},
660 { &hf_mount_pathconf_path_max, {
661 "Maximum path name length", "mount.pathconf.path_max",
663 NULL, 0, "Maximum path name length" }},
664 { &hf_mount_pathconf_pipe_buf, {
665 "Pipe buffer size", "mount.pathconf.pipe_buf",
667 NULL, 0, "Maximum amount of data that can be written atomically to a pipe" }},
668 { &hf_mount_pathconf_vdisable, {
669 "VDISABLE character", "mount.pathconf.vdisable_char",
671 NULL, 0, "Character value to disable a terminal special character" }},
672 { &hf_mount_pathconf_mask, {
673 "Reply error/status bits", "mount.pathconf.mask",
675 NULL, 0, "Bit mask with error and status bits" }},
676 { &hf_mount_pathconf_error_all, {
677 "ERROR_ALL", "mount.pathconf.mask.error_all",
678 FT_BOOLEAN, 16, TFS(&tos_error_all),
680 { &hf_mount_pathconf_error_link_max, {
681 "ERROR_LINK_MAX", "mount.pathconf.mask.error_link_max",
682 FT_BOOLEAN, 16, TFS(&tos_error_link_max),
683 PC_ERROR_LINK_MAX, "" }},
684 { &hf_mount_pathconf_error_max_canon, {
685 "ERROR_MAX_CANON", "mount.pathconf.mask.error_max_canon",
686 FT_BOOLEAN, 16, TFS(&tos_error_max_canon),
687 PC_ERROR_MAX_CANON, "" }},
688 { &hf_mount_pathconf_error_max_input, {
689 "ERROR_MAX_INPUT", "mount.pathconf.mask.error_max_input",
690 FT_BOOLEAN, 16, TFS(&tos_error_max_input),
691 PC_ERROR_MAX_INPUT, "" }},
692 { &hf_mount_pathconf_error_name_max, {
693 "ERROR_NAME_MAX", "mount.pathconf.mask.error_name_max",
694 FT_BOOLEAN, 16, TFS(&tos_error_name_max),
695 PC_ERROR_NAME_MAX, "" }},
696 { &hf_mount_pathconf_error_path_max, {
697 "ERROR_PATH_MAX", "mount.pathconf.mask.error_path_max",
698 FT_BOOLEAN, 16, TFS(&tos_error_path_max),
699 PC_ERROR_PATH_MAX, "" }},
700 { &hf_mount_pathconf_error_pipe_buf, {
701 "ERROR_PIPE_BUF", "mount.pathconf.mask.error_pipe_buf",
702 FT_BOOLEAN, 16, TFS(&tos_error_pipe_buf),
703 PC_ERROR_PIPE_BUF, "" }},
704 { &hf_mount_pathconf_chown_restricted, {
705 "CHOWN_RESTRICTED", "mount.pathconf.mask.chown_restricted",
706 FT_BOOLEAN, 16, TFS(&tos_chown_restricted),
707 PC_CHOWN_RESTRICTED, "" }},
708 { &hf_mount_pathconf_no_trunc, {
709 "NO_TRUNC", "mount.pathconf.mask.no_trunc",
710 FT_BOOLEAN, 16, TFS(&tos_no_trunc),
712 { &hf_mount_pathconf_error_vdisable, {
713 "ERROR_VDISABLE", "mount.pathconf.mask.error_vdisable",
714 FT_BOOLEAN, 16, TFS(&tos_error_vdisable),
715 PC_ERROR_VDISABLE, "" }},
716 { &hf_mount_flavors, {
717 "Flavors", "mount.flavors", FT_UINT32, BASE_DEC,
718 NULL, 0, "Flavors" }},
719 { &hf_mount_flavor, {
720 "Flavor", "mount.flavor", FT_UINT32, BASE_DEC,
721 VALS(rpc_auth_flavor), 0, "Flavor" }},
723 static gint *ett[] = {
725 &ett_mount_mountlist,
727 &ett_mount_exportlist,
728 &ett_mount_pathconf_mask,
731 proto_mount = proto_register_protocol("Mount Service", "mount");
732 proto_register_field_array(proto_mount, hf, array_length(hf));
733 proto_register_subtree_array(ett, array_length(ett));
737 proto_reg_handoff_mount(void)
739 /* Register the protocol as RPC */
740 rpc_init_prog(proto_mount, MOUNT_PROGRAM, ett_mount);
741 /* Register the procedure tables */
742 rpc_init_proc_table(MOUNT_PROGRAM, 1, mount1_proc);
743 rpc_init_proc_table(MOUNT_PROGRAM, 2, mount2_proc);
744 rpc_init_proc_table(MOUNT_PROGRAM, 3, mount3_proc);