aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-bt-dht.c
diff options
context:
space:
mode:
authorJohn Thacker <johnthacker@gmail.com>2021-10-09 09:05:54 -0400
committerWireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2021-10-10 11:31:06 +0000
commit35d09a7854059b223db428a0e9f136b54c253856 (patch)
treea86af60bd7e8f62b83281a22bb32be32bf06e2b8 /epan/dissectors/packet-bt-dht.c
parentfaf6fabfe350c4e1cdb4a38c620c977c77190d51 (diff)
BT-DHT, BT-uTP: Use conversation_set_dissector_from_frame_number
Since the UDP connection switches back and forth between DHT and uTP, use conversation_set_dissector_from_frame_number so that the dissector called by try_conversation_dissector in packet-udp.c doesn't change for a given frame based on the last packet clicked in the GUI. Split out a heuristic dissector from uTP so that conversation_set_dissector is only called from the heuristic dissector. This doesn't make a difference when the heuristics are accurate but might in some edge cases.
Diffstat (limited to 'epan/dissectors/packet-bt-dht.c')
-rw-r--r--epan/dissectors/packet-bt-dht.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-bt-dht.c b/epan/dissectors/packet-bt-dht.c
index b53f89f67a..b5d059a455 100644
--- a/epan/dissectors/packet-bt-dht.c
+++ b/epan/dissectors/packet-bt-dht.c
@@ -608,7 +608,7 @@ gboolean dissect_bt_dht_heur (tvbuff_t *tvb, packet_info *pinfo,
}
conversation = find_or_create_conversation(pinfo);
- conversation_set_dissector(conversation, bt_dht_handle);
+ conversation_set_dissector_from_frame_number(conversation, pinfo->num, bt_dht_handle);
dissect_bt_dht(tvb, pinfo, tree, NULL);
return TRUE;