packet-gsm_sim wireshark

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/simtrace@lists.osmocom.org/.

K2 keytwo at gmail.com
Tue May 10 09:55:22 UTC 2011


It is assumed in the dissector that the TERMINAL PROFILE has a len of 17,
which is not the case with the SIM i'm currently using.
I fixed it replacing with:

case 0x10: /* TERMINAL PROFILE */
                offset += DATA_OFFS;
                if(p3 >= 1)
                  proto_tree_add_bitmask(tree, tvb, offset++, hf_tprof_b1,
ett_tprof_b1, tprof_b1_fields, FALSE);
                if(p3 >= 2)
                  proto_tree_add_bitmask(tree, tvb, offset++, hf_tprof_b2,
ett_tprof_b2, tprof_b2_fields, FALSE);
                if(p3 >= 3)
                  proto_tree_add_bitmask(tree, tvb, offset++, hf_tprof_b3,
ett_tprof_b3, tprof_b3_fields, FALSE);
                if(p3 >= 4)
                  proto_tree_add_bitmask(tree, tvb, offset++, hf_tprof_b4,
ett_tprof_b4, tprof_b4_fields, FALSE);
                if(p3 >= 5)
                  proto_tree_add_bitmask(tree, tvb, offset++, hf_tprof_b5,
ett_tprof_b5, tprof_b5_fields, FALSE);
                if(p3 >= 6)
                  proto_tree_add_bitmask(tree, tvb, offset++, hf_tprof_b6,
ett_tprof_b6, tprof_b6_fields, FALSE);
                if(p3 >= 7)
                  proto_tree_add_bitmask(tree, tvb, offset++, hf_tprof_b7,
ett_tprof_b7, tprof_b7_fields, FALSE);
                if(p3 >= 8)
                  proto_tree_add_bitmask(tree, tvb, offset++, hf_tprof_b8,
ett_tprof_b8, tprof_b8_fields, FALSE);
                if(p3 >= 9)
                  proto_tree_add_bitmask(tree, tvb, offset++, hf_tprof_b9,
ett_tprof_b9, tprof_b9_fields, FALSE);
                if(p3 >= 10)
                  proto_tree_add_bitmask(tree, tvb, offset++, hf_tprof_b10,
ett_tprof_b10, tprof_b10_fields, FALSE);
                if(p3 >= 11)
                  proto_tree_add_bitmask(tree, tvb, offset++, hf_tprof_b11,
ett_tprof_b11, tprof_b11_fields, FALSE);
                if(p3 >= 12)
                  proto_tree_add_bitmask(tree, tvb, offset++, hf_tprof_b12,
ett_tprof_b12, tprof_b12_fields, FALSE);
                if(p3 >= 13)
                  proto_tree_add_bitmask(tree, tvb, offset++, hf_tprof_b13,
ett_tprof_b13, tprof_b13_fields, FALSE);
                if(p3 >= 14)
                  proto_tree_add_bitmask(tree, tvb, offset++, hf_tprof_b14,
ett_tprof_b14, tprof_b14_fields, FALSE);
                if(p3 >= 15)
                  proto_tree_add_bitmask(tree, tvb, offset++, hf_tprof_b15,
ett_tprof_b15, tprof_b15_fields, FALSE);
                if(p3 >= 16)
                  proto_tree_add_bitmask(tree, tvb, offset++, hf_tprof_b16,
ett_tprof_b16, tprof_b16_fields, FALSE);
                if(p3 >= 17)
                  proto_tree_add_bitmask(tree, tvb, offset++, hf_tprof_b17,
ett_tprof_b17, tprof_b17_fields, FALSE);
                /* FIXME */
                break;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/simtrace/attachments/20110510/4cce98b5/attachment.htm>


More information about the simtrace mailing list