aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-iso7816.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-01-23 19:40:51 -0800
committerGuy Harris <guy@alum.mit.edu>2016-01-24 03:41:28 +0000
commitbc5a0374bfd162d08834f5f7503bebd33d8ec943 (patch)
tree6d5be93a3e35c6eb144ce6d2b1d95650b5cbbd86 /epan/dissectors/packet-iso7816.c
parentbaea677290f84d4e30e86194c79bafef0fdc1ad2 (diff)
Add the packet number to the packet_info structure, and use it.
That removes most of the uses of the frame number field in the frame_data structure. Change-Id: Ie22e4533e87f8360d7c0a61ca6ffb796cc233f22 Reviewed-on: https://code.wireshark.org/review/13509 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/packet-iso7816.c')
-rw-r--r--epan/dissectors/packet-iso7816.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/epan/dissectors/packet-iso7816.c b/epan/dissectors/packet-iso7816.c
index 2d88c9b00d..ce9362e735 100644
--- a/epan/dissectors/packet-iso7816.c
+++ b/epan/dissectors/packet-iso7816.c
@@ -569,8 +569,8 @@ dissect_iso7816_cmd_apdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
if (PINFO_FD_VISITED(pinfo)) {
iso7816_trans = (iso7816_transaction_t *)wmem_tree_lookup32(
- transactions, PINFO_FD_NUM(pinfo));
- if (iso7816_trans && iso7816_trans->cmd_frame==PINFO_FD_NUM(pinfo) &&
+ transactions, pinfo->num);
+ if (iso7816_trans && iso7816_trans->cmd_frame==pinfo->num &&
iso7816_trans->resp_frame!=0) {
trans_ti = proto_tree_add_uint_format(tree, hf_iso7816_resp_in,
NULL, 0, 0, iso7816_trans->resp_frame,
@@ -581,7 +581,7 @@ dissect_iso7816_cmd_apdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
else {
if (transactions) {
iso7816_trans = wmem_new(wmem_file_scope(), iso7816_transaction_t);
- iso7816_trans->cmd_frame = PINFO_FD_NUM(pinfo);
+ iso7816_trans->cmd_frame = pinfo->num;
iso7816_trans->resp_frame = 0;
iso7816_trans->cmd_ins = INS_INVALID;
@@ -654,14 +654,14 @@ dissect_iso7816_resp_apdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
/* receive the largest key that is less than or equal to our frame
number */
iso7816_trans = (iso7816_transaction_t *)wmem_tree_lookup32_le(
- transactions, PINFO_FD_NUM(pinfo));
+ transactions, pinfo->num);
if (iso7816_trans) {
if (iso7816_trans->resp_frame==0) {
/* there's a pending request, this packet is the response */
- iso7816_trans->resp_frame = PINFO_FD_NUM(pinfo);
+ iso7816_trans->resp_frame = pinfo->num;
}
- if (iso7816_trans->resp_frame== PINFO_FD_NUM(pinfo)) {
+ if (iso7816_trans->resp_frame== pinfo->num) {
/* we found the request that corresponds to our response */
cmd_ins_str = val_to_str_const(iso7816_trans->cmd_ins,
iso7816_ins, "Unknown instruction");