aboutsummaryrefslogtreecommitdiffstats
path: root/packet-mount.c
diff options
context:
space:
mode:
authorUwe Girlich <Uwe.Girlich@philosys.de>2000-08-14 11:36:04 +0000
committerUwe Girlich <Uwe.Girlich@philosys.de>2000-08-14 11:36:04 +0000
commitc6097bf6844db5a033cef96e64406eedd6a0b997 (patch)
treeabffe6d9456bffa54afba6f671b4e8bf07ab343d /packet-mount.c
parent364ec7fa0535398c16f9a14ba3cb392b08461123 (diff)
Reversed the latest changes for protocol enable/disable in RPC sub-dissectors.
The RPC layer itself handles all this stuff. svn path=/trunk/; revision=2271
Diffstat (limited to 'packet-mount.c')
-rw-r--r--packet-mount.c42
1 files changed, 2 insertions, 40 deletions
diff --git a/packet-mount.c b/packet-mount.c
index 7a5596ab17..8915de0fba 100644
--- a/packet-mount.c
+++ b/packet-mount.c
@@ -1,7 +1,7 @@
/* packet-mount.c
* Routines for mount dissection
*
- * $Id: packet-mount.c,v 1.16 2000/08/13 14:08:29 deniel Exp $
+ * $Id: packet-mount.c,v 1.17 2000/08/14 11:36:03 girlich Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -83,9 +83,6 @@ dissect_fhstatus(const u_char *pd, int offset, frame_data *fd, proto_tree *tree)
{
guint32 status;
- if (!proto_is_protocol_enabled(proto_mount))
- return offset;
-
if (!BYTES_ARE_IN_FRAME(offset,4)) return offset;
status = EXTRACT_UINT(pd, offset+0);
if (tree) {
@@ -110,10 +107,6 @@ static int
dissect_mount_dirpath_call(const u_char *pd, int offset, frame_data *fd,
proto_tree *tree)
{
-
- if (!proto_is_protocol_enabled(proto_mount))
- return offset;
-
if ( tree )
{
offset = dissect_rpc_string(pd,offset,fd,tree,hf_mount_path,NULL);
@@ -128,10 +121,6 @@ static int
dissect_mount_mnt_reply(const u_char *pd, int offset, frame_data *fd,
proto_tree *tree)
{
-
- if (!proto_is_protocol_enabled(proto_mount))
- return offset;
-
offset = dissect_fhstatus(pd, offset, fd, tree);
return offset;
@@ -149,9 +138,6 @@ dissect_mountlist(const u_char *pd, int offset, frame_data *fd, proto_tree *tree
char* hostname;
char* directory;
- if (!proto_is_protocol_enabled(proto_mount))
- return offset;
-
if (tree) {
mountlist_item = proto_tree_add_item(tree, hf_mount_mountlist, NullTVB,
offset+0, END_OF_FRAME, FALSE);
@@ -181,10 +167,6 @@ static int
dissect_mount_dump_reply(const u_char *pd, int offset, frame_data *fd,
proto_tree *tree)
{
-
- if (!proto_is_protocol_enabled(proto_mount))
- return offset;
-
offset = dissect_rpc_list(pd,offset,fd,tree,dissect_mountlist);
return offset;
@@ -196,10 +178,6 @@ dissect_mount_dump_reply(const u_char *pd, int offset, frame_data *fd,
static int
dissect_group(const u_char *pd, int offset, frame_data *fd, proto_tree *tree)
{
-
- if (!proto_is_protocol_enabled(proto_mount))
- return offset;
-
offset = dissect_rpc_string(pd, offset, fd, tree, hf_mount_groups_group,NULL);
return offset;
@@ -219,9 +197,6 @@ dissect_exportlist(const u_char *pd, int offset, frame_data *fd, proto_tree *tre
proto_item* groups_tree = NULL;
char* directory;
- if (!proto_is_protocol_enabled(proto_mount))
- return offset;
-
if (tree) {
exportlist_item = proto_tree_add_item(tree, hf_mount_exportlist, NullTVB,
offset+0, END_OF_FRAME, FALSE);
@@ -266,10 +241,6 @@ static int
dissect_mount_export_reply(const u_char *pd, int offset, frame_data *fd,
proto_tree *tree)
{
-
- if (!proto_is_protocol_enabled(proto_mount))
- return offset;
-
offset = dissect_rpc_list(pd,offset,fd,tree,dissect_exportlist);
return offset;
@@ -347,9 +318,6 @@ dissect_mount_pathconf_reply(const u_char *pd, int offset, frame_data *fd,
proto_item *ti;
proto_tree *mask_tree;
- if (!proto_is_protocol_enabled(proto_mount))
- return offset;
-
/*
* Extract the mask first, so we know which other fields the
* server was able to return to us.
@@ -538,9 +506,6 @@ dissect_mountstat3(const u_char *pd, int offset, frame_data *fd, proto_tree *tre
{
guint32 mountstat3;
- if (!proto_is_protocol_enabled(proto_mount))
- return offset;
-
if (!BYTES_ARE_IN_FRAME(offset,4)) return offset;
mountstat3 = EXTRACT_UINT(pd, offset+0);
@@ -563,10 +528,7 @@ dissect_mount3_mnt_reply(const u_char *pd, int offset, frame_data *fd,
guint32 auth_flavors;
guint32 auth_flavor;
guint32 auth_flavor_i;
-
- if (!proto_is_protocol_enabled(proto_mount))
- return offset;
-
+
offset = dissect_mountstat3(pd, offset, fd, tree, hf_mount_status, &status);
switch (status) {
case 0: