aboutsummaryrefslogtreecommitdiffstats
path: root/packet-bootparams.c
diff options
context:
space:
mode:
Diffstat (limited to 'packet-bootparams.c')
-rw-r--r--packet-bootparams.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/packet-bootparams.c b/packet-bootparams.c
index 7ae6c8f33b..93b687a94d 100644
--- a/packet-bootparams.c
+++ b/packet-bootparams.c
@@ -1,7 +1,7 @@
/* packet-bootparams.c
* Routines for bootparams dissection
*
- * $Id: packet-bootparams.c,v 1.11 2000/05/31 05:06:55 guy Exp $
+ * $Id: packet-bootparams.c,v 1.12 2000/08/13 14:08:04 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -58,6 +58,9 @@ int dissect_bp_address(const u_char *pd, int offset, frame_data *fd,
guint32 type;
guint32 ipaddr;
+ if (!proto_is_protocol_enabled(proto_bootparams))
+ return offset;
+
/* get the address type */
if ( !BYTES_ARE_IN_FRAME(offset, 1)) return offset;
type = pntohl(&pd[offset]); /* type of address */
@@ -89,6 +92,9 @@ ZZZZZZZZZZZZZZZZZZZ Check type:
int dissect_getfile_call(const u_char *pd, int offset, frame_data *fd,
proto_tree *tree)
{
+ if (!proto_is_protocol_enabled(proto_bootparams))
+ return offset;
+
if ( tree )
{
offset = dissect_rpc_string(pd,offset,fd,tree,hf_bootparams_host,NULL);
@@ -102,6 +108,9 @@ int dissect_getfile_call(const u_char *pd, int offset, frame_data *fd,
int dissect_getfile_reply(const u_char *pd, int offset, frame_data *fd,
proto_tree *tree)
{
+ if (!proto_is_protocol_enabled(proto_bootparams))
+ return offset;
+
if ( tree )
{
offset = dissect_rpc_string(pd,offset,fd,tree,hf_bootparams_host,NULL);
@@ -116,6 +125,9 @@ int dissect_getfile_reply(const u_char *pd, int offset, frame_data *fd,
int dissect_whoami_call(const u_char *pd, int offset, frame_data *fd,
proto_tree *tree)
{
+ if (!proto_is_protocol_enabled(proto_bootparams))
+ return offset;
+
if ( tree )
{
offset = dissect_bp_address(pd,offset,fd,tree,hf_bootparams_hostaddr);
@@ -128,6 +140,9 @@ int dissect_whoami_call(const u_char *pd, int offset, frame_data *fd,
int dissect_whoami_reply(const u_char *pd, int offset, frame_data *fd,
proto_tree *tree)
{
+ if (!proto_is_protocol_enabled(proto_bootparams))
+ return offset;
+
if ( tree )
{
offset = dissect_rpc_string(pd,offset,fd,tree,hf_bootparams_host,NULL);