diff options
author | Jorge Mora <jmora1300@gmail.com> | 2022-04-05 14:19:00 -0600 |
---|---|---|
committer | A Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2022-04-06 18:55:54 +0000 |
commit | 63c1b032c86da5d1b0792f4386ea1759ba2e9b8b (patch) | |
tree | f120bd066ece404982fdde8905f4e19cc375d98f | |
parent | c30a41752887574370e3f6a00bfb8c3a4da071e9 (diff) |
IWARP_DDP_RDMAP: fix Terminate layer name mapping
-rw-r--r-- | epan/dissectors/packet-iwarp-ddp-rdmap.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/epan/dissectors/packet-iwarp-ddp-rdmap.c b/epan/dissectors/packet-iwarp-ddp-rdmap.c index 376e3bf0e5..9f65eb7260 100644 --- a/epan/dissectors/packet-iwarp-ddp-rdmap.c +++ b/epan/dissectors/packet-iwarp-ddp-rdmap.c @@ -77,8 +77,9 @@ void proto_register_iwarp_ddp_rdmap(void); #define IWARP_TERM_RES 0x1FFF #define IWARP_LAYER_RDMA 0x00 -#define IWARP_LAYER_DDP 0x10 -#define IWARP_LAYER_LLP 0x20 +#define IWARP_LAYER_DDP 0x01 +#define IWARP_LAYER_LLP 0x02 + #define IWARP_ETYPE_DDP_TAGGED 0x01 #define IWARP_ETYPE_DDP_UNTAGGED 0x02 @@ -366,7 +367,7 @@ dissect_iwarp_rdmap(tvbuff_t *tvb, proto_tree *rdma_tree, guint32 offset, proto_tree_add_item(term_ctrl_field_tree, hf_iwarp_rdma_term_layer, tvb, offset, 1, ENC_BIG_ENDIAN); - switch (layer) { + switch (layer >> 4) { case IWARP_LAYER_RDMA: proto_tree_add_item(term_ctrl_field_tree, hf_iwarp_rdma_term_etype_rdma, tvb, offset, 1, |