aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-vtp.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-vtp.c')
-rw-r--r--epan/dissectors/packet-vtp.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/epan/dissectors/packet-vtp.c b/epan/dissectors/packet-vtp.c
index 10f5a835b8..d7fffa8719 100644
--- a/epan/dissectors/packet-vtp.c
+++ b/epan/dissectors/packet-vtp.c
@@ -136,8 +136,8 @@ set_vtp_info_col(tvbuff_t *tvb, packet_info *pinfo)
}
}
-static void
-dissect_vtp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
+static int
+dissect_vtp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_)
{
proto_item *ti;
proto_tree *vtp_tree = NULL, *vtp_pruning_tree = NULL;
@@ -264,6 +264,7 @@ dissect_vtp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
break;
}
+ return tvb_captured_length(tvb);
}
#define VLAN_SUSPENDED 0x01
@@ -678,7 +679,7 @@ proto_reg_handoff_vtp(void)
{
dissector_handle_t vtp_handle;
- vtp_handle = create_dissector_handle(dissect_vtp, proto_vtp);
+ vtp_handle = new_create_dissector_handle(dissect_vtp, proto_vtp);
dissector_add_uint("llc.cisco_pid", 0x2003, vtp_handle);
}