aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-whois.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-whois.c')
-rw-r--r--epan/dissectors/packet-whois.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/dissectors/packet-whois.c b/epan/dissectors/packet-whois.c
index ee4d783a18..4913a820fa 100644
--- a/epan/dissectors/packet-whois.c
+++ b/epan/dissectors/packet-whois.c
@@ -85,7 +85,7 @@ dissect_whois(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
pinfo->desegment_offset = 0;
return -1;
} else {
- whois_trans->req_frame = pinfo->fd->num;
+ whois_trans->req_frame = pinfo->num;
whois_trans->req_time = pinfo->abs_ts;
}
} else {
@@ -95,7 +95,7 @@ dissect_whois(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
}
}
} else if (is_query && (whois_trans->req_frame == 0)) {
- whois_trans->req_frame = pinfo->fd->num;
+ whois_trans->req_frame = pinfo->num;
whois_trans->req_time = pinfo->abs_ts;
}
@@ -105,10 +105,10 @@ dissect_whois(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
* number, and if reassembly is turned off, whois_trans->rep_frame will
* be assigned to the first frame number of the response. This seems
* to match other protocols' behavior. The alternative is:
- * if (pinfo->fd->num > whois_trans->rep_frame)
+ * if (pinfo->num > whois_trans->rep_frame)
* which will give us the same frame number either way.
*/
- whois_trans->rep_frame = pinfo->fd->num;
+ whois_trans->rep_frame = pinfo->num;
}
ti = proto_tree_add_protocol_format(tree, proto_whois, tvb, 0, -1,
@@ -138,7 +138,7 @@ dissect_whois(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
tvb, 0, 0, whois_trans->req_frame);
PROTO_ITEM_SET_GENERATED(ti);
- if (pinfo->fd->num == whois_trans->rep_frame) {
+ if (pinfo->num == whois_trans->rep_frame) {
nstime_delta(&ns, &pinfo->abs_ts, &whois_trans->req_time);
ti = proto_tree_add_time(whois_tree, hf_whois_response_time, tvb, 0, 0, &ns);
PROTO_ITEM_SET_GENERATED(ti);