diff options
Diffstat (limited to 'epan/dissectors/packet-ipnet.c')
-rw-r--r-- | epan/dissectors/packet-ipnet.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/epan/dissectors/packet-ipnet.c b/epan/dissectors/packet-ipnet.c index 88769310ce..34a48847a7 100644 --- a/epan/dissectors/packet-ipnet.c +++ b/epan/dissectors/packet-ipnet.c @@ -57,8 +57,8 @@ static const value_string htype_vals[] = { { 0, NULL } }; -static void -dissect_ipnet(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) +static int +dissect_ipnet(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_) { proto_tree *fh_tree; proto_item *ti; @@ -100,6 +100,7 @@ dissect_ipnet(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) default: break; } + return tvb_captured_length(tvb); } void @@ -150,7 +151,7 @@ proto_reg_handoff_ipnet(void) ip_handle = find_dissector("ip"); ipv6_handle = find_dissector("ipv6"); - ipnet_handle = create_dissector_handle(dissect_ipnet, proto_ipnet); + ipnet_handle = new_create_dissector_handle(dissect_ipnet, proto_ipnet); dissector_add_uint("wtap_encap", WTAP_ENCAP_IPNET, ipnet_handle); } |