aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2014-05-22 21:05:54 +0200
committerPascal Quantin <pascal.quantin@gmail.com>2014-05-22 19:08:26 +0000
commitb762dd0b586e19eea19cb4386b5aa0cf61adc64c (patch)
tree5f4e295b1a6b94ccd76b8d2d36869c0a474e96f9
parenta60c661ddaea3228e08dc72e83b69cd353a4b754 (diff)
GSM SIM: fix a typo and update obsolete API calls
Change-Id: Iccd51dde155e9aaed23eb753c27ae29c8cee94cd Reviewed-on: https://code.wireshark.org/review/1725 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
-rw-r--r--epan/dissectors/packet-gsm_sim.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/dissectors/packet-gsm_sim.c b/epan/dissectors/packet-gsm_sim.c
index 54177cd432..a8f5897307 100644
--- a/epan/dissectors/packet-gsm_sim.c
+++ b/epan/dissectors/packet-gsm_sim.c
@@ -1022,7 +1022,7 @@ static const value_string sw_vals[] = {
{ 0x9810, "In contradiction with invalidation status" },
{ 0x9840, "Unsuccessful CHV verification, no attempt left / CHV blocked" },
{ 0x9850, "Increase cannot be performed, max value reached" },
- { 0x6b00, "Incorrect paramaeter P1 or P2" },
+ { 0x6b00, "Incorrect parameter P1 or P2" },
/* Section 10.2.1.3 of TS 102 221 */
{ 0x6200, "Warning: No information given, state of volatile memory unchanged" },
{ 0x6281, "Warning: Part of returned data may be corrupted" },
@@ -1103,7 +1103,7 @@ dissect_bertlv(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
unsigned int pos = 0;
- while (pos < tvb_length(tvb)) {
+ while (pos < tvb_reported_length(tvb)) {
guint8 tag;
guint32 len;
tvbuff_t *subtvb;
@@ -1354,7 +1354,7 @@ dissect_rsp_apdu_tvb(tvbuff_t *tvb, gint offset, packet_info *pinfo, proto_tree
{
guint16 sw;
proto_item *ti;
- guint tvb_len = tvb_length(tvb);
+ guint tvb_len = tvb_reported_length(tvb);
if (tree && !sim_tree) {
ti = proto_tree_add_item(tree, proto_gsm_sim, tvb, 0, -1, ENC_NA);
@@ -1396,7 +1396,7 @@ dissect_cmd_apdu_tvb(tvbuff_t *tvb, gint offset, packet_info *pinfo, proto_tree
proto_item *ti;
proto_tree *sim_tree = NULL;
gint rc = -1;
- guint tvb_len = tvb_length(tvb);
+ guint tvb_len = tvb_reported_length(tvb);
cla = tvb_get_guint8(tvb, offset);
ins = tvb_get_guint8(tvb, offset+1);
@@ -1424,7 +1424,7 @@ dissect_cmd_apdu_tvb(tvbuff_t *tvb, gint offset, packet_info *pinfo, proto_tree
proto_tree_add_item(sim_tree, hf_apdu_p1, tvb, offset+0, 1, ENC_BIG_ENDIAN);
proto_tree_add_item(sim_tree, hf_apdu_p2, tvb, offset+1, 1, ENC_BIG_ENDIAN);
proto_tree_add_item(sim_tree, hf_apdu_p3, tvb, offset+2, 1, ENC_BIG_ENDIAN);
- if (p3 && (p3 <= tvb_length_remaining(tvb, offset+3))) {
+ if (p3 && (p3 <= tvb_reported_length_remaining(tvb, offset+3))) {
proto_tree_add_item(sim_tree, hf_apdu_data, tvb, offset+3, p3, ENC_NA);
}
}