aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dtn.c
diff options
context:
space:
mode:
authorMartin Mathieson <martin.mathieson@keysight.com>2020-04-01 22:54:43 +0100
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2020-04-02 04:37:32 +0000
commitc68b7cb74a1cd619169e6cdd089ccb50a0b9431a (patch)
treee7d168972bb5e7c169cfcfaa33ff6c7b2294e07b /epan/dissectors/packet-dtn.c
parent3398c2898dcc95c83ab026d62d8a08290ad3cb0b (diff)
DTN: Fix dissection of the Bundle Refusal Reason.
Spotted by ENABLE_CHECK_FILTER check. 0 1 2 3 4 5 6 7 +-+-+-+-+-+-+-+-+ | 0x3 | RCode | +-+-+-+-+-+-+-+-+ Change-Id: I6bf66b13ee3c8e7b59c4c463c7ccebf6db27f497 Reviewed-on: https://code.wireshark.org/review/36664 Petri-Dish: Martin Mathieson <martin.r.mathieson@googlemail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-dtn.c')
-rw-r--r--epan/dissectors/packet-dtn.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/dissectors/packet-dtn.c b/epan/dissectors/packet-dtn.c
index 1b01c770b9..bfbb4bae37 100644
--- a/epan/dissectors/packet-dtn.c
+++ b/epan/dissectors/packet-dtn.c
@@ -350,10 +350,10 @@ static const value_string packet_type_vals[] = {
/* Refuse-Bundle Reason-Code Flags as per RFC-7242: Section-5.4 */
static const value_string refuse_bundle_reason_code[] = {
- {((TCP_REFUSE_BUNDLE_REASON_UNKNOWN>>4) & 0x0F), "Reason for refusal is unknown"},
- {((TCP_REFUSE_BUNDLE_REASON_RX_COMPLETE>>4) & 0x0F), "Complete Bundle Received"},
- {((TCP_REFUSE_BUNDLE_REASON_RX_EXHAUSTED>>4) & 0x0F), "Receiver's resources exhausted"},
- {((TCP_REFUSE_BUNDLE_REASON_RX_RETRANSMIT>>4) & 0x0F), "Receiver expects re-transmission of bundle"},
+ {TCP_REFUSE_BUNDLE_REASON_UNKNOWN, "Reason for refusal is unknown"},
+ {TCP_REFUSE_BUNDLE_REASON_RX_COMPLETE, "Complete Bundle Received"},
+ {TCP_REFUSE_BUNDLE_REASON_RX_EXHAUSTED, "Receiver's resources exhausted"},
+ {TCP_REFUSE_BUNDLE_REASON_RX_RETRANSMIT, "Receiver expects re-transmission of bundle"},
{0, NULL}
};
@@ -3202,7 +3202,7 @@ proto_register_bundle(void)
},
{&hf_dtn_refuse_bundle_reason_code,
{"Reason-Code", "tcpcl.refuse.reason_code",
- FT_UINT8, BASE_DEC, VALS(refuse_bundle_reason_code), 0xF0, NULL, HFILL}
+ FT_UINT8, BASE_DEC, VALS(refuse_bundle_reason_code), 0x0F, NULL, HFILL}
},
{&hf_tcp_convergence_data_procflags,
{"TCP Convergence Data Flags", "tcpcl.data.proc.flag",