diff options
author | Klaus Kurzmann <mok@fluxnetz.de> | 2011-04-08 16:06:47 +0200 |
---|---|---|
committer | Klaus Kurzmann <mok@fluxnetz.de> | 2011-04-08 16:06:47 +0200 |
commit | 67c0c32e91db0056fd3aaf5ee485880698d12702 (patch) | |
tree | 25870d92bcf1b46a864793a049b71d45b5926545 /src/isi-ss.c | |
parent | 572de75cb61599693b817e81becdc685db6bc00f (diff) | |
download | isi-wireshark-plugin-67c0c32e91db0056fd3aaf5ee485880698d12702.tar.bz2 |
add and use a dissect_isi_common and use it for all resources
Signed-off-by: Klaus Kurzmann <mok@fluxnetz.de>
Diffstat (limited to 'src/isi-ss.c')
-rw-r--r-- | src/isi-ss.c | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/src/isi-ss.c b/src/isi-ss.c index 1f6938b..9a4f758 100644 --- a/src/isi-ss.c +++ b/src/isi-ss.c @@ -296,26 +296,8 @@ static void dissect_isi_ss(tvbuff_t *tvb, packet_info *pinfo, proto_item *isitre } break; - case 0xF0: /* SS_COMMON_MESSAGE */ - proto_tree_add_item(tree, hf_isi_ss_common_message_id, tvb, 1, 1, FALSE); - code = tvb_get_guint8(tvb, 1); - switch(code) { - case 0x01: /* COMM_SERVICE_NOT_IDENTIFIED_RESP */ - col_set_str(pinfo->cinfo, COL_INFO, "Common Message: Service Not Identified Response"); - break; - case 0x12: /* COMM_ISI_VERSION_GET_REQ */ - col_set_str(pinfo->cinfo, COL_INFO, "Common Message: ISI Version Get Request"); - break; - case 0x13: /* COMM_ISI_VERSION_GET_RESP */ - col_set_str(pinfo->cinfo, COL_INFO, "Common Message: ISI Version Get Response"); - break; - case 0x14: /* COMM_ISA_ENTITY_NOT_REACHABLE_RESP */ - col_set_str(pinfo->cinfo, COL_INFO, "Common Message: ISA Entity Not Reachable"); - break; - default: - col_set_str(pinfo->cinfo, COL_INFO, "Common Message"); - break; - } + case 0xF0: /* COMMON_MESSAGE */ + dissect_isi_common("Subscriber Service", tvb, pinfo, tree); break; |