summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-hpsw.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-hpsw.c')
-rw-r--r--epan/dissectors/packet-hpsw.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/epan/dissectors/packet-hpsw.c b/epan/dissectors/packet-hpsw.c
index f7fd0e37bc..6411be91cc 100644
--- a/epan/dissectors/packet-hpsw.c
+++ b/epan/dissectors/packet-hpsw.c
@@ -224,8 +224,8 @@ dissect_hpsw_tlv(tvbuff_t *tvb, packet_info *pinfo, int offset, int length,
}
}
-static void
-dissect_hpsw(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
+static int
+dissect_hpsw(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_)
{
proto_tree *hp_tree;
proto_tree *tlv_tree;
@@ -273,6 +273,7 @@ dissect_hpsw(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
offset += length;
}
+ return tvb_captured_length(tvb);
}
void
@@ -358,7 +359,7 @@ proto_register_hpsw(void)
expert_hpsw = expert_register_protocol(proto_hpsw);
expert_register_field_array(expert_hpsw, ei, array_length(ei));
- register_dissector("hpsw", dissect_hpsw, proto_hpsw);
+ new_register_dissector("hpsw", dissect_hpsw, proto_hpsw);
}
void