Correct presentation of IMSI digits and highlight correct bytes.
authoretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 28 Feb 2005 20:48:23 +0000 (20:48 +0000)
committeretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 28 Feb 2005 20:48:23 +0000 (20:48 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13552 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-bssgp.c

index 4550e111c3fd93a8380a29615b2edeac74cdd45d..875516dd195f09a0fce0eb7f71cc522f431a3eed 100644 (file)
@@ -1251,11 +1251,11 @@ decode_mobile_identity(bssgp_ie_t *ie, build_info_t *bi, int ie_start_offset) {
     while (TRUE) {
       data = tvb_get_guint8(bi->tvb, bi->offset);
 
-      digits[i] = get_masked_guint8(data, BSSGP_MASK_LEFT_OCTET_HALF);
+      digits[i] = get_masked_guint8(data, BSSGP_MASK_RIGHT_OCTET_HALF);
       i++;
       if (i >= num_digits) break;
 
-      digits[i] = get_masked_guint8(data, BSSGP_MASK_RIGHT_OCTET_HALF);
+      digits[i] = get_masked_guint8(data, BSSGP_MASK_LEFT_OCTET_HALF);
       i++;
       if (i >= num_digits) break;
       bi->offset++;
@@ -1284,7 +1284,7 @@ decode_mobile_identity(bssgp_ie_t *ie, build_info_t *bi, int ie_start_offset) {
         break;
       }
          if (tf)
-                 proto_tree_add_string(tf, hf_id, bi->tvb, 0, num_digits, digits_str);
+                 proto_tree_add_string(tf, hf_id, bi->tvb, ie_start_offset + 2, ((num_digits/2)+1), digits_str);
 
     } 
     if (check_col(bi->pinfo->cinfo, COL_INFO)) {