aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-infiniband.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-infiniband.c')
-rw-r--r--epan/dissectors/packet-infiniband.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/epan/dissectors/packet-infiniband.c b/epan/dissectors/packet-infiniband.c
index 420a3df990..d4025426a8 100644
--- a/epan/dissectors/packet-infiniband.c
+++ b/epan/dissectors/packet-infiniband.c
@@ -8047,12 +8047,16 @@ void proto_reg_handoff_infiniband(void)
{
dissector_delete_uint("udp.port", prev_rroce_udp_port, rroce_handle);
}
- /*we are saving the previous value of rroce udp port so we will be able to remove the dissector
+ /* We are saving the previous value of rroce udp port so we will be able to remove the dissector
* the next time user pref is updated and we get called back to proto_reg_handoff_infiniband.
- "Auto" preference not used because port isn't for infiniband protocol itself */
+ * "Auto" preference not used because port isn't for the Infiniband protocol itself.
+ */
prev_rroce_udp_port = pref_rroce_udp_port;
dissector_add_uint("udp.port", pref_rroce_udp_port, rroce_handle);
+ /* RROCE over IPv4 isn't standardized but it's been seen in the wild */
+ dissector_add_for_decode_as("ip.proto", rroce_handle);
+
dissector_add_uint("wtap_encap", WTAP_ENCAP_INFINIBAND, ib_handle);
heur_dissector_add("infiniband.payload", dissect_mellanox_eoib, "Mellanox EoIB", "mellanox_eoib", proto_mellanox_eoib, HEURISTIC_ENABLE);