X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fcontrib%2Fwireshark%2Fpacket-lnet.c;h=9fc4307b245e31fb33195761a6820c07c1dffd69;hp=3e14edad47b8ae5e519afbeebf7cd10a34365147;hb=afacbae9e3e8ce7ba4ff0ad9bd57899095ad7a46;hpb=397ebc93cef378e6d77450cdd095e2737b94f2f6;ds=sidebyside diff --git a/lustre/contrib/wireshark/packet-lnet.c b/lustre/contrib/wireshark/packet-lnet.c index 3e14eda..9fc4307 100644 --- a/lustre/contrib/wireshark/packet-lnet.c +++ b/lustre/contrib/wireshark/packet-lnet.c @@ -576,7 +576,7 @@ dissect_lnet(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) } static int -dissect_ib_lnet(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) +dissect_ib_lnet(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void*data) { /* We can tell if this is an LNet payload by looking at the first * 32-bit word for our magic number. */ @@ -833,7 +833,7 @@ dissect_lnet_message(tvbuff_t * tvb, packet_info *pinfo, proto_tree *tree) next_tvb = tvb_new_subset (tvb, offset, payload_length, payload_length); if(msg_type==LNET_MSG_PUT) - dissector_try_port(subdissector_table, tvb_get_letohl(tvb,LNET_PTL_INDEX_OFFSET_PUT), next_tvb, pinfo, tree); + dissector_try_uint(subdissector_table, tvb_get_letohl(tvb,LNET_PTL_INDEX_OFFSET_PUT), next_tvb, pinfo, tree); } @@ -999,9 +999,9 @@ proto_reg_handoff_lnet(void) lnet_prefs_initialized = TRUE; } else - dissector_delete("tcp.port",global_lnet_tcp_port, lnet_handle); + dissector_delete_uint("tcp.port", global_lnet_tcp_port, lnet_handle); lnet_tcp_port = global_lnet_tcp_port; - dissector_add("tcp.port", lnet_tcp_port, lnet_handle); + dissector_add_uint("tcp.port", lnet_tcp_port, lnet_handle); }