diff --git a/src/isi-network.c b/src/isi-network.c index e7f54a5..ba61468 100644 --- a/src/isi-network.c +++ b/src/isi-network.c @@ -135,18 +135,148 @@ static const value_string isi_network_status_sub_id[] = { {0x43, "NET_TEST_WRAN_HO_PARAMS"}, {0x44, "NET_GSM_LCS_GPS_TIME_ASSIST_MEAS"}, {0x45, "NET_GSM_LCS_GPS_REF_TIME_UNC"}, + {0x46, "NET_GSM_CELL_INFO"}, + {0x47, "NET_WCDMA_CELL_INFO"}, {0x48, "NET_FULL_NITZ_NAME"}, {0x49, "NET_SHORT_NITZ_NAME"}, {0xE1, "NET_AVAIL_NETWORK_INFO_COMMON"}, + {0xE3, "NET_GSM_REG_NETWORK_INFO"}, {0xE7, "NET_OPER_NAME_INFO"}, {0x00, NULL} }; -static const value_string isi_network_cell_info_sub_id[] = { - {0x46, "NET_GSM_CELL_INFO"}, - {0x47, "NET_WCDMA_CELL_INFO"}, - {0x50, "NET_EPS_CELL_INFO"}, - {0x00, NULL} +static const value_string isi_network_success_code[] = { + {0x00, "NET_CAUSE_OK"}, + {0x01, "NET_CAUSE_COMMUNICATION_ERROR"}, + {0x02, "NET_CAUSE_INVALID_PARAMETER"}, + {0x03, "NET_CAUSE_NO_SIM"}, + {0x04, "NET_CAUSE_SIM_NOT_YET_READY"}, + {0x05, "NET_CAUSE_NET_NOT_FOUND"}, + {0x06, "NET_CAUSE_REQUEST_NOT_ALLOWED"}, + {0x07, "NET_CAUSE_CALL_ACTIVE"}, + {0x08, "NET_CAUSE_SERVER_BUSY"}, + {0x09, "NET_CAUSE_SECURITY_CODE_REQUIRED"}, + {0x0A, "NET_CAUSE_NOTHING_TO_CANCEL"}, + {0x0B, "NET_CAUSE_UNABLE_TO_CANCEL"}, + {0x0C, "NET_CAUSE_NETWORK_FORBIDDEN"}, + {0x0D, "NET_CAUSE_REQUEST_REJECTED"}, + {0x0E, "NET_CAUSE_CS_NOT_SUPPORTED"}, + {0x0F, "NET_CAUSE_PAR_INFO_NOT_AVAILABLE"}, + {0x10, "NET_CAUSE_NOT_DONE"}, + {0x11, "NET_CAUSE_NO_SELECTED_NETWORK"}, + {0x12, "NET_CAUSE_REQUEST_INTERRUPTED"}, + {0x14, "NET_CAUSE_TOO_BIG_INDEX"}, + {0x15, "NET_CAUSE_MEMORY_FULL"}, + {0x16, "NET_CAUSE_SERVICE_NOT_ALLOWED"}, + {0x17, "NET_CAUSE_NOT_SUPPORTED_IN_TECH"}, +}; + +static const value_string isi_network_search_mode[] = { + {0x00, "NET_MANUAL_SEARCH"}, + {0x01, "NET_NEW_SEARCH_START"}, + {0x02, "NET_NEW_SEARCH_NEXT"}, + {0x03, "NET_NEW_EXTENDED_SEARCH_START"}, +}; + +static const value_string isi_network_registration_status[] = { + {0x00, "NET_REG_STATUS_HOME"}, + {0x01, "NET_REG_STATUS_ROAM"}, + {0x02, "NET_REG_STATUS_ROAM_BLINK"}, + {0x03, "NET_REG_STATUS_NOSERV"}, + {0x04, "NET_REG_STATUS_NOSERV_SEARCHING"}, + {0x05, "NET_REG_STATUS_NOSERV_NOTSEARCHING"}, + {0x06, "NET_REG_STATUS_NOSERV_NOSIM"}, + {0x08, "NET_REG_STATUS_POWER_OFF"}, + {0x09, "NET_REG_STATUS_NSPS"}, + {0x0A, "NET_REG_STATUS_NSPS_NO_COVERAGE"}, + {0x0B, "NET_REG_STATUS_NOSERV_SIM_REJECTED_BY_NW"}, +}; + +static const value_string isi_network_selection_mode[] = { + {0x00, "NET_SELECT_MODE_UNKNOWN"}, + {0x01, "NET_SELECT_MODE_MANUAL"}, + {0x02, "NET_SELECT_MODE_AUTOMATIC"}, + {0x03, "NET_SELECT_MODE_USER_RESELECTION"}, + {0x04, "NET_SELECT_MODE_NO_SELECTION"}, +}; + +static const value_string isi_network_rat_name[] = { + {0x01, "NET_GSM_RAT"}, + {0x02, "NET_UMTS_RAT"}, +}; + +static const value_string isi_network_rat_type[] = { + {0x00, "NET_CURRENT_RAT"}, + {0x01, "NET_SUPPORTED_RATS"}, +}; + +static const value_string isi_network_ciphering_status[] = { + {0x00, "NET_CIPHERING_INDICATOR_OFF"}, + {0x01, "NET_CIPHERING_INDICATOR_ON"}, + {0x02, "NET_CIPHERING_NO_CONNECTION"}, +}; + +static const value_string isi_network_ciphering_key_status[] = { + {0x00, "NET_KEY_STATUS_UNKNOWN"}, + {0x01, "NET_KEY_STATUS_DERIVED"}, + {0x02, "NET_KEY_STATUS_NOT_DERIVED"}, +}; + +static const value_string isi_network_ciphering_context[] = { + {0x00, "NET_CONTEXT_UNKNOWN"}, + {0x01, "NET_CONTEXT_GSM"}, + {0x02, "NET_CONTEXT_UMTS"}, +}; + +static const value_string isi_network_cs_type[] = { + {0x00, "NET_CS_GSM"}, +}; + +static const value_string isi_network_cs_state[] = { + {0x00, "NET_CS_INACTIVE"}, + {0x01, "NET_CS_ACTIVE"}, +}; + +static const value_string isi_network_cs_operation[] = { + {0x00, "NET_CS_OP_MODE_NORMAL"}, + {0x01, "NET_CS_OP_MODE_GAN_ONLY"}, +}; + +static const value_string isi_network_measurement_type[] = { + {0x01, "NET_STRONGEST_RSSIS"}, + {0x02, "NET_CURRENT_CELL_RSSI"}, +}; + +static const value_string isi_network_type[] = { + {0x00, "NET_GSM_HOME_PLMN"}, + {0x01, "NET_GSM_PREFERRED_PLMN"}, + {0x02, "NET_GSM_FORBIDDEN_PLMN"}, + {0x03, "NET_GSM_OTHER_PLMN"}, + {0x04, "NET_GSM_NO_PLMN_AVAIL"}, +}; + +static const value_string isi_network_name_type[] = { + {0x00, "NET_HARDCODED_LATIN_OPER_NAME"}, + {0x01, "NET_HARDCODED_USC2_OPER_NAME"}, + {0x02, "NET_NITZ_SHORT_OPER_NAME"}, + {0x03, "NET_NITZ_FULL_OPER_NAME"}, + {0x06, "NET_CNTRY_INIT_MNC_OPER_NAME"}, + {0x07, "NET_MCC_NBR_MNC_NBR_OPER_NAME"}, + {0x08, "NET_SIM_OPER_NAME"}, + {0x09, "NET_EONS_SHORT_OPER_NAME"}, + {0x0A, "NET_EONS_FULL_OPER_NAME"}, + {0xFF, "NET_HIGHEST_PRIORITY_OPER_NAME"}, +}; + +static const value_string isi_network_gsm_band_info[] = { + {0x00, "NET_GSM_BAND_900_1800"}, + {0x01, "NET_GSM_BAND_850_1900"}, + {0x02, "NET_GSM_BAND_INFO_NOT_AVAIL"}, + {0x03, "NET_GSM_BAND_ALL_SUPPORTED_BANDS"}, + {0xB0, "NET_GSM_BAND_850_LOCKED"}, + {0xA0, "NET_GSM_BAND_900_LOCKED"}, + {0xA1, "NET_GSM_BAND_1800_LOCKED"}, + {0xB1, "NET_GSM_BAND_1900_LOCKED"}, }; static dissector_handle_t isi_network_handle; @@ -154,19 +284,51 @@ static void dissect_isi_network(tvbuff_t *tvb, packet_info *pinfo, proto_item *t static guint32 hf_isi_network_cmd = -1; static guint32 hf_isi_network_data_sub_pkgs = -1; -static guint32 hf_isi_network_status_sub_type = -1; -static guint32 hf_isi_network_status_sub_len = -1; +static guint32 hf_isi_network_data_sub_type = -1; +static guint32 hf_isi_network_data_sub_len = -1; static guint32 hf_isi_network_status_sub_lac = -1; static guint32 hf_isi_network_status_sub_cid = -1; static guint32 hf_isi_network_status_sub_msg = -1; static guint32 hf_isi_network_status_sub_msg_len = -1; -static guint32 hf_isi_network_cell_info_sub_type = -1; -static guint32 hf_isi_network_cell_info_sub_len = -1; -static guint32 hf_isi_network_cell_info_sub_operator = -1; +static guint32 hf_isi_network_gsm_band_info = -1; static guint32 hf_isi_network_gsm_band_900 = -1; static guint32 hf_isi_network_gsm_band_1800 = -1; static guint32 hf_isi_network_gsm_band_1900 = -1; static guint32 hf_isi_network_gsm_band_850 = -1; +static guint32 hf_isi_network_rat_type = -1; +static guint32 hf_isi_network_rat_name = -1; +static guint32 hf_isi_network_rat_info = -1; +static guint32 hf_isi_network_success_code = -1; +static guint32 hf_isi_network_uarfcn = -1; +static guint32 hf_isi_network_ciphering_status = -1; +static guint32 hf_isi_network_ciphering_key_status = -1; +static guint32 hf_isi_network_ciphering_context = -1; +static guint32 hf_isi_network_registration_status = -1; +static guint32 hf_isi_network_registration_protocol = -1; +static guint32 hf_isi_network_selection_mode = -1; +static guint32 hf_isi_network_search_mode = -1; +static guint32 hf_isi_network_cs_type = -1; +static guint32 hf_isi_network_cs_state = -1; +static guint32 hf_isi_network_cs_operation = -1; +static guint32 hf_isi_network_cs_services = -1; +static guint32 hf_isi_network_measurement_type = -1; +static guint32 hf_isi_network_rssi_bars = -1; +static guint32 hf_isi_network_rssi_db = -1; +static guint32 hf_isi_network_operator_code = -1; +static guint32 hf_isi_network_service_status = -1; +static guint32 hf_isi_network_type = -1; +static guint32 hf_isi_network_name_type = -1; +static guint32 hf_isi_network_country_initials = -1; +static guint32 hf_isi_network_gprs_support = -1; +static guint32 hf_isi_network_gprs_mode = -1; +static guint32 hf_isi_network_gprs_services = -1; +static guint32 hf_isi_network_egprs_support = -1; +static guint32 hf_isi_network_dtm_support = -1; +static guint32 hf_isi_network_current_rac = -1; +static guint32 hf_isi_network_hdspa_available = -1; +static guint32 hf_isi_network_hsupa_available = -1; + + static const int *gsm_band_fields[] = { &hf_isi_network_gsm_band_900, @@ -191,10 +353,8 @@ void proto_register_isi_network(void) { { "Command", "isi.network.cmd", FT_UINT8, BASE_HEX, isi_network_id, 0x0, "Command", HFILL }}, { &hf_isi_network_data_sub_pkgs, { "Number of Subpackets", "isi.network.pkgs", FT_UINT8, BASE_DEC, NULL, 0x0, "Number of Subpackets", HFILL }}, - { &hf_isi_network_status_sub_type, + { &hf_isi_network_data_sub_type, { "Subpacket Type", "isi.network.sub.type", FT_UINT8, BASE_HEX, isi_network_status_sub_id, 0x0, "Subpacket Type", HFILL }}, - { &hf_isi_network_status_sub_len, - { "Subpacket Length", "isi.network.sub.len", FT_UINT8, BASE_DEC, NULL, 0x0, "Subpacket Length", HFILL }}, { &hf_isi_network_status_sub_lac, { "Location Area Code (LAC)", "isi.network.sub.lac", FT_UINT16, BASE_HEX_DEC, NULL, 0x0, "Location Area Code (LAC)", HFILL }}, { &hf_isi_network_status_sub_cid, @@ -203,12 +363,10 @@ void proto_register_isi_network(void) { { "Message Length", "isi.network.sub.msg", FT_UINT16, BASE_DEC, NULL, 0x0, "Message Length", HFILL }}, { &hf_isi_network_status_sub_msg, { "Message", "isi.network.sub.msg", FT_STRING, BASE_NONE, NULL, 0x0, "Message", HFILL }}, - { &hf_isi_network_cell_info_sub_type, - { "Subpacket Type", "isi.network.sub.type", FT_UINT8, BASE_HEX, isi_network_cell_info_sub_id, 0x0, "Subpacket Type", HFILL }}, - { &hf_isi_network_cell_info_sub_len, - { "Subpacket Length", "isi.network.sub.len", FT_UINT8, BASE_DEC, NULL, 0x0, "Subpacket Length", HFILL }}, - { &hf_isi_network_cell_info_sub_operator, + { &hf_isi_network_operator_code, { "Operator Code", "isi.network.sub.operator", FT_UINT24, BASE_HEX, NULL, 0x0, "Operator Code", HFILL }}, + { &hf_isi_network_gsm_band_info, + { "GSM Band Info", "isi.network.gsm_band_info", FT_UINT8, BASE_HEX, isi_network_gsm_band_info, 0x0, "GSM Band Info", HFILL }}, { &hf_isi_network_gsm_band_900, { "900 Mhz Band", "isi.network.sub.gsm_band_900", FT_BOOLEAN, 32, NULL, 0x00000001, "", HFILL }}, { &hf_isi_network_gsm_band_1800, @@ -216,7 +374,69 @@ void proto_register_isi_network(void) { { &hf_isi_network_gsm_band_1900, { "1900 Mhz Band", "isi.network.sub.gsm_band_1900", FT_BOOLEAN, 32, NULL, 0x00000004, "", HFILL }}, { &hf_isi_network_gsm_band_850, - { "850 Mhz Band", "isi.network.sub.gsm_band_850", FT_BOOLEAN, 32, NULL, 0x00000008, "", HFILL }} + { "850 Mhz Band", "isi.network.sub.gsm_band_850", FT_BOOLEAN, 32, NULL, 0x00000008, "", HFILL }}, + { &hf_isi_network_rat_type, + { "RAT Type", "isi.network.rat.type", FT_UINT8, BASE_HEX, isi_network_rat_type, 0x0, "RAT Type", HFILL }}, + { &hf_isi_network_rat_name, + { "RAT Name", "isi.network.rat.name", FT_UINT8, BASE_HEX, isi_network_rat_name, 0x0, "RAT Name", HFILL }}, + { &hf_isi_network_success_code, + { "Success Code", "isi.network.success", FT_UINT8, BASE_HEX, isi_network_success_code, 0x0, "Success Code", HFILL }}, + { &hf_isi_network_rat_info, + { "Additional Info", "isi.network.rat.info", FT_STRING, BASE_NONE, NULL, 0x0, "Additional Info", HFILL }}, + { &hf_isi_network_uarfcn, + { "UARFCN", "isi.network.channel.uarfcn", FT_UINT16, BASE_DEC, NULL, 0x0, "UARFCN", HFILL }}, + { &hf_isi_network_ciphering_status, + { "Ciphering Status", "isi.network.cipher.status", FT_UINT8, BASE_HEX, isi_network_ciphering_status, 0x0, "Ciphering Status", HFILL }}, + { &hf_isi_network_ciphering_key_status, + { "Ciphering Key Status", "isi.network.cipher.keystatus", FT_UINT8, BASE_HEX, isi_network_ciphering_key_status, 0x0, "Ciphering Key Status", HFILL }}, + { &hf_isi_network_ciphering_context, + { "Ciphering Context", "isi.network.cipher.context", FT_UINT8, BASE_HEX, isi_network_ciphering_context, 0x0, "Ciphering Context", HFILL }}, + { &hf_isi_network_registration_status, + { "Registration Status", "isi.network.reg.status", FT_UINT8, BASE_HEX, isi_network_registration_status, 0x0, "Registration Status", HFILL }}, + { &hf_isi_network_registration_protocol, + { "Registration Protocol", "isi.network.reg.protocol", FT_UINT8, BASE_HEX, NULL, 0x0, "Registration Protocol", HFILL }}, + { &hf_isi_network_selection_mode, + { "Selection Mode", "isi.network.reg.selection_mode", FT_UINT8, BASE_HEX, isi_network_selection_mode, 0x0, "Selection Mode", HFILL }}, + { &hf_isi_network_search_mode, + { "Search Mode", "isi.network.modem.search_mode", FT_UINT8, BASE_HEX, isi_network_search_mode, 0x0, "Search Mode", HFILL }}, + { &hf_isi_network_cs_type, + { "CS Type", "isi.network.cs.type", FT_UINT8, BASE_HEX, isi_network_cs_type, 0x0, "CS Type", HFILL }}, + { &hf_isi_network_cs_state, + { "CS State", "isi.network.cs.state", FT_UINT8, BASE_HEX, isi_network_cs_state, 0x0, "CS State", HFILL }}, + { &hf_isi_network_cs_operation, + { "CS Operation", "isi.network.cs.operation", FT_UINT8, BASE_HEX, isi_network_cs_operation, 0x0, "CS Operation", HFILL }}, + { &hf_isi_network_measurement_type, + { "Measurement Type", "isi.network.measurement", FT_UINT8, BASE_HEX, isi_network_measurement_type, 0x0, "Measurement", HFILL }}, + { &hf_isi_network_rssi_bars, + { "Signal Strength (bars)", "isi.network.signal.bars", FT_UINT8, BASE_DEC, NULL, 0x0, "Signal Strength (Bars)", HFILL }}, + { &hf_isi_network_rssi_db, + { "Signal Strength (dB)", "isi.network.signal.db", FT_UINT8, BASE_DEC, NULL, 0x0, "Signal Strength (dB)", HFILL }}, + { &hf_isi_network_type, + { "Network Type", "isi.network.type", FT_UINT8, BASE_HEX, isi_network_type, 0x0, "Network Type", HFILL }}, + { &hf_isi_network_service_status, + { "Service Status", "isi.network.status", FT_UINT8, BASE_HEX, NULL, 0x0, "Service Status", HFILL }}, + { &hf_isi_network_name_type, + { "Name Type", "isi.network.oper.name.type", FT_UINT8, BASE_HEX, isi_network_name_type, 0x0, "Name Type", HFILL }}, + { &hf_isi_network_country_initials, + { "Country Initials", "isi.network.oper.name.country", FT_UINT8, BASE_HEX, NULL, 0x0, "Coutry Initials", HFILL }}, + { &hf_isi_network_cs_services, + { "CS Services", "isi.network.cell.cs_services", FT_UINT8, BASE_HEX, NULL, 0x0, "CS Services", HFILL }}, + { &hf_isi_network_gprs_services, + { "GPRS Services", "isi.network.cell.gprs_services", FT_UINT8, BASE_HEX, NULL, 0x0, "GPRS Services", HFILL }}, + { &hf_isi_network_egprs_support, + { "EGPRS Support", "isi.network.cell.egprs_support", FT_UINT8, BASE_HEX, NULL, 0x0, "EGPRS Support", HFILL }}, + { &hf_isi_network_dtm_support, + { "DTM Support", "isi.network.cell.dtm_support", FT_UINT8, BASE_HEX, NULL, 0x0, "DTM Support", HFILL }}, + { &hf_isi_network_current_rac, + { "Current RAC", "isi.network.cell.current_rac", FT_UINT8, BASE_HEX, NULL, 0x0, "Current RAC", HFILL }}, + { &hf_isi_network_hdspa_available, + { "HDSPA Available", "isi.network.cell.hdspa_available", FT_UINT8, BASE_HEX, NULL, 0x0, "HDSPA Available", HFILL }}, + { &hf_isi_network_hsupa_available, + { "HSUPA Available", "isi.network.cell.hsupa_available", FT_UINT8, BASE_HEX, NULL, 0x0, "HSUPA Available", HFILL }}, + { &hf_isi_network_gprs_support, + { "GPRS Support", "isi.network.cell.gprs_support", FT_UINT8, BASE_HEX, NULL, 0x0, "GPRS Support", HFILL }}, + { &hf_isi_network_gprs_mode, + { "GPRS Mode", "isi.network.cell.gprs_mode", FT_UINT8, BASE_HEX, NULL, 0x0, "GPRS Mode", HFILL }}, }; proto_register_field_array(proto_isi, hf, array_length(hf)); @@ -237,96 +457,138 @@ static void* utf16_to_ascii(char *in, guint16 len) { return out; } -static void dissect_isi_network_status(tvbuff_t *tvb, packet_info *pinfo, proto_item *item, proto_tree *tree) { - guint8 len = tvb->length; - int i; - - guint8 pkgcount = tvb_get_guint8(tvb, 0x02); - proto_tree_add_item(tree, hf_isi_network_data_sub_pkgs, tvb, 0x02, 1, FALSE); - - size_t offset = 0x03; // subpackets start here - for(i=0; ilength; - int i; +static void _sub_ciphering_info(tvbuff_t *tvb, proto_tree *tree) { + proto_tree_add_item(tree, hf_isi_network_ciphering_key_status, tvb, 2, 1, FALSE); + proto_tree_add_item(tree, hf_isi_network_ciphering_context, tvb, 3, 1, FALSE); + proto_tree_add_item(tree, hf_isi_network_rat_name, tvb, 4, 2, FALSE); +} - guint8 pkgcount = tvb_get_guint8(tvb, 0x02); - proto_tree_add_item(tree, hf_isi_network_data_sub_pkgs, tvb, 0x02, 1, FALSE); - size_t offset = 0x03; +static void _sub_modem_current_cell_info(tvbuff_t *tvb, proto_tree *tree) { + proto_tree_add_item(tree, hf_isi_network_status_sub_lac, tvb, 2, 2, FALSE); + proto_tree_add_item(tree, hf_isi_network_status_sub_cid, tvb, 4, 4, FALSE); + proto_tree_add_item(tree, hf_isi_network_operator_code, tvb, 8, 3, FALSE); + proto_tree_add_item(tree, hf_isi_network_gsm_band_info, tvb, 11, 1, FALSE); + proto_tree_add_item(tree, hf_isi_network_type, tvb, 12, 1, FALSE); + proto_tree_add_item(tree, hf_isi_network_gprs_support, tvb, 13, 1, FALSE); + proto_tree_add_item(tree, hf_isi_network_gprs_mode, tvb, 14, 1, FALSE); + proto_tree_add_item(tree, hf_isi_network_cs_services, tvb, 15, 1, FALSE); + proto_tree_add_item(tree, hf_isi_network_gprs_services, tvb, 16, 1, FALSE); + proto_tree_add_item(tree, hf_isi_network_egprs_support, tvb, 17, 1, FALSE); + proto_tree_add_item(tree, hf_isi_network_dtm_support, tvb, 17, 1, FALSE); + proto_tree_add_item(tree, hf_isi_network_current_rac, tvb, 18, 1, FALSE); + proto_tree_add_item(tree, hf_isi_network_hdspa_available, tvb, 19, 1, FALSE); + proto_tree_add_item(tree, hf_isi_network_hsupa_available, tvb, 20, 1, FALSE); +} - for(i=0; icinfo, COL_INFO, "Network Modem Registration Status Request"); break; - case 0x01: /* NET_MODEM_REG_STATUS_GET_RESP */ + case 0x01: /* NET_MODEM_REG_STATUS_GET_RESP (complete) */ col_set_str(pinfo->cinfo, COL_INFO, "Network Modem Registration Status Response"); + dissect_isi_subpacket(hf_isi_network_data_sub_type, 3, tvb, pinfo, item, tree, dissect_isi_network_subpacket); break; - case 0x02: /* NET_MODEM_REG_STATUS_IND */ + case 0x02: /* NET_MODEM_REG_STATUS_IND (complete) */ col_set_str(pinfo->cinfo, COL_INFO, "Network Modem Registration Status Indication"); + dissect_isi_subpacket(hf_isi_network_data_sub_type, 3, tvb, pinfo, item, tree, dissect_isi_network_subpacket); break; - case 0x03: /* NET_MODEM_AVAILABLE_GET_REQ */ + case 0x03: /* NET_MODEM_AVAILABLE_GET_REQ (complete) */ col_set_str(pinfo->cinfo, COL_INFO, "Network Modem Available Get Request"); + proto_tree_add_item(tree, hf_isi_network_search_mode, tvb, 1, 1, FALSE); + dissect_isi_subpacket(hf_isi_network_data_sub_type, 3, tvb, pinfo, item, tree, dissect_isi_network_subpacket); break; - case 0x04: /* NET_MODEM_AVAILABLE_GET_RESP */ + case 0x04: /* NET_MODEM_AVAILABLE_GET_RESP (complete) */ col_set_str(pinfo->cinfo, COL_INFO, "Network Modem Available Get Response"); + proto_tree_add_item(tree, hf_isi_network_success_code, tvb, 1, 1, FALSE); + dissect_isi_subpacket(hf_isi_network_data_sub_type, 3, tvb, pinfo, item, tree, dissect_isi_network_subpacket); break; - case 0x05: /* NET_AVAILABLE_CANCEL_REQ */ + case 0x05: /* NET_AVAILABLE_CANCEL_REQ (complete) */ col_set_str(pinfo->cinfo, COL_INFO, "Network Modem Available Cancel Request"); break; - case 0x06: /* NET_AVAILABLE_CANCEL_RESP */ + case 0x06: /* NET_AVAILABLE_CANCEL_RESP (complete) */ col_set_str(pinfo->cinfo, COL_INFO, "Network Modem Available Cancel Response"); + proto_tree_add_item(tree, hf_isi_network_success_code, tvb, 1, 1, FALSE); break; - case 0x07: /* NET_SET_REQ */ + case 0x07: /* NET_SET_REQ (complete) */ col_set_str(pinfo->cinfo, COL_INFO, "Network Set Request"); + proto_tree_add_item(tree, hf_isi_network_registration_protocol, tvb, 1, 1, FALSE); + dissect_isi_subpacket(hf_isi_network_data_sub_type, 3, tvb, pinfo, item, tree, dissect_isi_network_subpacket); break; - case 0x08: /* NET_SET_RESP */ + case 0x08: /* NET_SET_RESP (complete) */ col_set_str(pinfo->cinfo, COL_INFO, "Network Set Response"); + proto_tree_add_item(tree, hf_isi_network_success_code, tvb, 1, 1, FALSE); + dissect_isi_subpacket(hf_isi_network_data_sub_type, 3, tvb, pinfo, item, tree, dissect_isi_network_subpacket); break; - case 0x09: /* NET_SET_CANCEL_REQ */ + case 0x09: /* NET_SET_CANCEL_REQ (complete) */ col_set_str(pinfo->cinfo, COL_INFO, "Network Set Cancel Request"); break; - case 0x0A: /* NET_SET_CANCEL_RESP */ + case 0x0A: /* NET_SET_CANCEL_RESP (complete) */ col_set_str(pinfo->cinfo, COL_INFO, "Network Set Cancel Response"); + proto_tree_add_item(tree, hf_isi_network_success_code, tvb, 1, 1, FALSE); break; case 0x0B: /* NET_RSSI_GET_REQ */ col_set_str(pinfo->cinfo, COL_INFO, "Network RSSI Get Request"); + proto_tree_add_item(tree, hf_isi_network_cs_type, tvb, 1, 1, FALSE); + proto_tree_add_item(tree, hf_isi_network_measurement_type, tvb, 2, 1, FALSE); + dissect_isi_subpacket(hf_isi_network_data_sub_type, 7, tvb, pinfo, item, tree, dissect_isi_network_subpacket); break; case 0x0C: /* NET_RSSI_GET_RESP */ col_set_str(pinfo->cinfo, COL_INFO, "Network RSSI Get Response"); + proto_tree_add_item(tree, hf_isi_network_success_code, tvb, 1, 1, FALSE); + dissect_isi_subpacket(hf_isi_network_data_sub_type, 3, tvb, pinfo, item, tree, dissect_isi_network_subpacket); break; case 0x0D: /* NET_CS_CONTROL_REQ */ col_set_str(pinfo->cinfo, COL_INFO, "Network CS Control Request"); @@ -402,6 +681,9 @@ static void dissect_isi_network(tvbuff_t *tvb, packet_info *pinfo, proto_item *i break; case 0x19: /* NET_CS_STATE_IND */ col_set_str(pinfo->cinfo, COL_INFO, "Network CS State Indication"); + proto_tree_add_item(tree, hf_isi_network_cs_state, tvb, 1, 1, FALSE); + proto_tree_add_item(tree, hf_isi_network_cs_type, tvb, 2, 1, FALSE); + proto_tree_add_item(tree, hf_isi_network_cs_operation, tvb, 3, 1, FALSE); break; case 0x1A: /* NET_NEIGHBOUR_CELLS_REQ */ col_set_str(pinfo->cinfo, COL_INFO, "Network Neighbour Cells Request"); @@ -417,9 +699,13 @@ static void dissect_isi_network(tvbuff_t *tvb, packet_info *pinfo, proto_item *i break; case 0x1E: /* NET_RSSI_IND */ col_set_str(pinfo->cinfo, COL_INFO, "Network RSSI Indication"); + proto_tree_add_item(tree, hf_isi_network_rssi_bars, tvb, 1, 1, FALSE); + proto_tree_add_item(tree, hf_isi_network_rssi_db, tvb, 2, 1, FALSE); break; case 0x20: /* NET_CIPHERING_IND */ col_set_str(pinfo->cinfo, COL_INFO, "Network Ciphering Indication"); + proto_tree_add_item(tree, hf_isi_network_ciphering_status, tvb, 1, 1, FALSE); + dissect_isi_subpacket(hf_isi_network_data_sub_type, 3, tvb, pinfo, item, tree, dissect_isi_network_subpacket); break; case 0x27: /* NET_TIME_IND */ col_set_str(pinfo->cinfo, COL_INFO, "Network Time Indication"); @@ -432,6 +718,7 @@ static void dissect_isi_network(tvbuff_t *tvb, packet_info *pinfo, proto_item *i break; case 0x2C: /* NET_CHANNEL_INFO_IND */ col_set_str(pinfo->cinfo, COL_INFO, "Network Channel Info Indication"); + dissect_isi_subpacket(hf_isi_network_data_sub_type, 3, tvb, pinfo, item, tree, dissect_isi_network_subpacket); break; case 0x2D: /* NET_CHANNEL_INFO_REQ */ col_set_str(pinfo->cinfo, COL_INFO, "Network Channel Info Request"); @@ -453,12 +740,16 @@ static void dissect_isi_network(tvbuff_t *tvb, packet_info *pinfo, proto_item *i break; case 0x35: /* NET_RAT_IND */ col_set_str(pinfo->cinfo, COL_INFO, "Network RAT Indication"); + dissect_isi_subpacket(hf_isi_network_data_sub_type, 3, tvb, pinfo, item, tree, dissect_isi_network_subpacket); break; case 0x36: /* NET_RAT_REQ */ col_set_str(pinfo->cinfo, COL_INFO, "Network RAT Request"); + proto_tree_add_item(tree, hf_isi_network_rat_type, tvb, 1, 1, FALSE); break; case 0x37: /* NET_RAT_RESP */ col_set_str(pinfo->cinfo, COL_INFO, "Network RAT Response"); + proto_tree_add_item(tree, hf_isi_network_success_code, tvb, 1, 1, FALSE); + dissect_isi_subpacket(hf_isi_network_data_sub_type, 3, tvb, pinfo, item, tree, dissect_isi_network_subpacket); break; case 0x38: /* NET_AGPS_FRAME_TRIGGER_REQ */ col_set_str(pinfo->cinfo, COL_INFO, "Network AGPS Frame Trigger Request"); @@ -471,6 +762,9 @@ static void dissect_isi_network(tvbuff_t *tvb, packet_info *pinfo, proto_item *i break; case 0x3B: /* NET_CS_STATE_RESP */ col_set_str(pinfo->cinfo, COL_INFO, "Network CS State Response"); + proto_tree_add_item(tree, hf_isi_network_success_code, tvb, 1, 1, FALSE); + proto_tree_add_item(tree, hf_isi_network_cs_state, tvb, 2, 1, FALSE); + proto_tree_add_item(tree, hf_isi_network_cs_operation, tvb, 3, 1, FALSE); break; case 0x3C: /* NET_UMA_INFO_IND */ col_set_str(pinfo->cinfo, COL_INFO, "Network UMA Info Indication"); @@ -492,20 +786,22 @@ static void dissect_isi_network(tvbuff_t *tvb, packet_info *pinfo, proto_item *i break; case 0x42: /* NET_CELL_INFO_IND */ col_set_str(pinfo->cinfo, COL_INFO, "Network Cell Info Indication"); - dissect_isi_network_cell_info_ind(tvb, pinfo, item, tree); + dissect_isi_subpacket(hf_isi_network_data_sub_type, 3, tvb, pinfo, item, tree, dissect_isi_network_subpacket); break; case 0x43: /* NET_NITZ_NAME_IND */ col_set_str(pinfo->cinfo, COL_INFO, "Network NITZ Name Indication"); break; - case 0xE0: /* NET_REG_STATUS_GET_REQ */ + case 0xE0: /* NET_REG_STATUS_GET_REQ (complete) */ col_set_str(pinfo->cinfo, COL_INFO, "Network Registration Status Get Request"); break; - case 0xE1: /* NET_REG_STATUS_GET_RESP */ + case 0xE1: /* NET_REG_STATUS_GET_RESP (complete) */ col_set_str(pinfo->cinfo, COL_INFO, "Network Registration Status Get Response"); + proto_tree_add_item(tree, hf_isi_network_success_code, tvb, 1, 1, FALSE); + dissect_isi_subpacket(hf_isi_network_data_sub_type, 3, tvb, pinfo, item, tree, dissect_isi_network_subpacket); break; case 0xE2: /* NET_REG_STATUS_IND */ col_set_str(pinfo->cinfo, COL_INFO, "Network Registration Status Indication"); - dissect_isi_network_status(tvb, pinfo, item, tree); + dissect_isi_subpacket(hf_isi_network_data_sub_type, 3, tvb, pinfo, item, tree, dissect_isi_network_subpacket); break; case 0xE3: /* NET_AVAILABLE_GET_REQ */ col_set_str(pinfo->cinfo, COL_INFO, "Network Available Get Request");