*
* Copyright 2002, Jeff Morriss <jeff.morriss[AT]ulticom.com>
*
- * $Id: packet-sccp.c,v 1.3 2002/03/06 17:56:28 gram Exp $
+ * $Id: packet-sccp.c,v 1.6 2002/08/02 23:36:00 jmayer Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
#include <stdio.h>
#include <stdlib.h>
-#ifdef HAVE_SYS_TYPES_H
-# include <sys/types.h>
-#endif
-
-#ifdef HAVE_NETINET_IN_H
-# include <netinet/in.h>
-#endif
-
#include <string.h>
#include "epan/packet.h"
static void
-dissect_sccp_message(tvbuff_t *tvb, packet_info *pinfo, proto_item *sccp_item,
- proto_tree *sccp_tree, proto_tree *tree)
+dissect_sccp_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *sccp_tree,
+ proto_tree *tree)
{
guint8 message_type;
guint8 variable_pointer1 = 0, variable_pointer2 = 0, variable_pointer3 = 0;
static void
dissect_sccp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
- proto_item *sccp_item = NULL;
+ proto_item *sccp_item;
proto_tree *sccp_tree = NULL;
/* Make entry in the Protocol column on summary display */
necessary to generate protocol tree items. */
if (tree) {
/* create the sccp protocol tree */
- sccp_item = proto_tree_add_item(tree, proto_sccp, tvb, 0,
- tvb_length(tvb), FALSE);
+ sccp_item = proto_tree_add_item(tree, proto_sccp, tvb, 0, -1, FALSE);
sccp_tree = proto_item_add_subtree(sccp_item, ett_sccp);
}
/* dissect the message */
- dissect_sccp_message(tvb, pinfo, sccp_item, sccp_tree, tree);
+ dissect_sccp_message(tvb, pinfo, sccp_tree, tree);
}
/* Register the protocol with Ethereal */
&ett_sccp_calling_pc,
&ett_sccp_calling_gt,
&ett_sccp_sequencing_segmenting,
- &ett_sccp_segmentation
+ &ett_sccp_segmentation,
+ &ett_sccp_ansi_isni_routing_control,
};
/* Register the protocol name and description */
data_handle = find_dissector("data");
}
-