aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-wlccp.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-wlccp.c')
-rw-r--r--epan/dissectors/packet-wlccp.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/epan/dissectors/packet-wlccp.c b/epan/dissectors/packet-wlccp.c
index b0bef0bcea..4297172c4b 100644
--- a/epan/dissectors/packet-wlccp.c
+++ b/epan/dissectors/packet-wlccp.c
@@ -689,8 +689,8 @@ static gint ett_framereport_elements_tree = -1;
/* Code to actually dissect the packets */
-static void
-dissect_wlccp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
+static int
+dissect_wlccp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_)
{
/* Set up structures needed to add the protocol subtree and manage it */
proto_item *ti;
@@ -708,12 +708,10 @@ dissect_wlccp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
if(tvb_get_guint8(tvb, 0) == 0xC1) /* Get the version number */
{
-
sap_id = tvb_get_guint8(tvb,1) & SAP_VALUE_MASK;
base_message_type=(tvb_get_guint8(tvb,6)) & MT_BASE_MSG_TYPE;
message_sub_type=(tvb_get_guint8(tvb, 6) & MT_SUBTYPE ) >> 6;
-
switch (sap_id)
{
@@ -1033,6 +1031,7 @@ dissect_wlccp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
} /* if tree */
+ return tvb_captured_length(tvb);
} /* dissect_wlccp */
@@ -4104,7 +4103,7 @@ proto_reg_handoff_wlccp(void)
{
dissector_handle_t wlccp_handle;
- wlccp_handle = create_dissector_handle(dissect_wlccp, proto_wlccp);
+ wlccp_handle = new_create_dissector_handle(dissect_wlccp, proto_wlccp);
dissector_add_uint("ethertype", ETHERTYPE_WLCCP, wlccp_handle);
dissector_add_uint("udp.port", WLCCP_UDP_PORT, wlccp_handle);