diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2005-06-26 05:48:50 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2005-06-26 05:48:50 +0000 |
commit | 3a51ba4293f6d98309471aeee7f2b1010c96b7cb (patch) | |
tree | 1bfaf8b92a640262162e7f0432a43a84d0381e6d /epan/dissectors/packet-tcap.c | |
parent | cc3b0df4caeb0c7ba1e168e5b91837e1c5243929 (diff) |
make dissect_ber_choice take a guint* that will return the
index of the branch taken or -1 to make prettifications easier to implement.
change the signature of dissect_ber_choice and rename it to dissect_ber_CHOICE to catch all
occurences of the use of this function
update asn2eth to use the new name/signature
update all occurences of this function to the new name and new signature.
svn path=/trunk/; revision=14758
Diffstat (limited to 'epan/dissectors/packet-tcap.c')
-rw-r--r-- | epan/dissectors/packet-tcap.c | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/epan/dissectors/packet-tcap.c b/epan/dissectors/packet-tcap.c index bf23870935..e7540cf3a8 100644 --- a/epan/dissectors/packet-tcap.c +++ b/epan/dissectors/packet-tcap.c @@ -1,6 +1,6 @@ /* Do not modify this file. */ /* It is created automatically by the ASN.1 to Ethereal dissector compiler */ -/* .\packet-tcap.c */ +/* ./packet-tcap.c */ /* ../../tools/asn2eth.py -X -b -e -p tcap -c tcap.cnf -s packet-tcap-template tcap.asn */ /* Input file: packet-tcap-template.c */ @@ -449,8 +449,8 @@ static const ber_choice_t Associate_source_diagnostic_choice[] = { static int dissect_tcap_Associate_source_diagnostic(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) { - offset = dissect_ber_choice(pinfo, tree, tvb, offset, - Associate_source_diagnostic_choice, hf_index, ett_tcap_Associate_source_diagnostic); + offset = dissect_ber_CHOICE(pinfo, tree, tvb, offset, + Associate_source_diagnostic_choice, hf_index, ett_tcap_Associate_source_diagnostic, NULL); return offset; } @@ -531,8 +531,8 @@ static const ber_choice_t DialoguePDU_choice[] = { static int dissect_tcap_DialoguePDU(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) { - offset = dissect_ber_choice(pinfo, tree, tvb, offset, - DialoguePDU_choice, hf_index, ett_tcap_DialoguePDU); + offset = dissect_ber_CHOICE(pinfo, tree, tvb, offset, + DialoguePDU_choice, hf_index, ett_tcap_DialoguePDU, NULL); return offset; } @@ -788,8 +788,8 @@ static const ber_choice_t UniDialoguePDU_choice[] = { static int dissect_tcap_UniDialoguePDU(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) { - offset = dissect_ber_choice(pinfo, tree, tvb, offset, - UniDialoguePDU_choice, hf_index, ett_tcap_UniDialoguePDU); + offset = dissect_ber_CHOICE(pinfo, tree, tvb, offset, + UniDialoguePDU_choice, hf_index, ett_tcap_UniDialoguePDU, NULL); return offset; } @@ -896,8 +896,8 @@ static const ber_choice_t OPERATION_choice[] = { static int dissect_tcap_OPERATION(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) { - offset = dissect_ber_choice(pinfo, tree, tvb, offset, - OPERATION_choice, hf_index, ett_tcap_OPERATION); + offset = dissect_ber_CHOICE(pinfo, tree, tvb, offset, + OPERATION_choice, hf_index, ett_tcap_OPERATION, NULL); return offset; } @@ -1020,8 +1020,8 @@ static const ber_choice_t ErrorCode_choice[] = { static int dissect_tcap_ErrorCode(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) { - offset = dissect_ber_choice(pinfo, tree, tvb, offset, - ErrorCode_choice, hf_index, ett_tcap_ErrorCode); + offset = dissect_ber_CHOICE(pinfo, tree, tvb, offset, + ErrorCode_choice, hf_index, ett_tcap_ErrorCode, NULL); return offset; } @@ -1074,8 +1074,8 @@ static const ber_choice_t T_invokeIDRej_choice[] = { static int dissect_tcap_T_invokeIDRej(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) { - offset = dissect_ber_choice(pinfo, tree, tvb, offset, - T_invokeIDRej_choice, hf_index, ett_tcap_T_invokeIDRej); + offset = dissect_ber_CHOICE(pinfo, tree, tvb, offset, + T_invokeIDRej_choice, hf_index, ett_tcap_T_invokeIDRej, NULL); return offset; } @@ -1189,8 +1189,8 @@ static const ber_choice_t T_problem_choice[] = { static int dissect_tcap_T_problem(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) { - offset = dissect_ber_choice(pinfo, tree, tvb, offset, - T_problem_choice, hf_index, ett_tcap_T_problem); + offset = dissect_ber_CHOICE(pinfo, tree, tvb, offset, + T_problem_choice, hf_index, ett_tcap_T_problem, NULL); return offset; } @@ -1255,14 +1255,14 @@ if (ber_oid_dissector_table && cur_oid){ if(!dissector_try_string(ber_oid_dissector_table, cur_oid, next_tvb, pinfo, tcap_top_tree)) { if (!dissector_try_port(tcap_itu_ssn_dissector_table, pinfo->match_port, next_tvb,pinfo, tcap_top_tree)) - dissect_ber_choice(pinfo, tree, next_tvb, 0, - Component_choice, hf_index, ett_tcap_Component); + dissect_ber_CHOICE(pinfo, tree, next_tvb, 0, + Component_choice, hf_index, ett_tcap_Component, NULL); } } else if (!dissector_try_port(tcap_itu_ssn_dissector_table, pinfo->match_port, next_tvb, pinfo, tcap_top_tree)) - dissect_ber_choice(pinfo, tree, next_tvb, 0, - Component_choice, hf_index, ett_tcap_Component); + dissect_ber_CHOICE(pinfo, tree, next_tvb, 0, + Component_choice, hf_index, ett_tcap_Component, NULL); offset+=len; @@ -1451,8 +1451,8 @@ static const ber_choice_t Reason_choice[] = { static int dissect_tcap_Reason(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) { - offset = dissect_ber_choice(pinfo, tree, tvb, offset, - Reason_choice, hf_index, ett_tcap_Reason); + offset = dissect_ber_CHOICE(pinfo, tree, tvb, offset, + Reason_choice, hf_index, ett_tcap_Reason, NULL); return offset; } @@ -1544,8 +1544,8 @@ static const ber_choice_t T_applicationContext_choice[] = { static int dissect_tcap_T_applicationContext(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) { - offset = dissect_ber_choice(pinfo, tree, tvb, offset, - T_applicationContext_choice, hf_index, ett_tcap_T_applicationContext); + offset = dissect_ber_CHOICE(pinfo, tree, tvb, offset, + T_applicationContext_choice, hf_index, ett_tcap_T_applicationContext, NULL); return offset; } @@ -1568,8 +1568,8 @@ static const ber_choice_t T_securityContext_choice[] = { static int dissect_tcap_T_securityContext(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) { - offset = dissect_ber_choice(pinfo, tree, tvb, offset, - T_securityContext_choice, hf_index, ett_tcap_T_securityContext); + offset = dissect_ber_CHOICE(pinfo, tree, tvb, offset, + T_securityContext_choice, hf_index, ett_tcap_T_securityContext, NULL); return offset; } @@ -1592,8 +1592,8 @@ static const ber_choice_t T_confidentialityId_choice[] = { static int dissect_tcap_T_confidentialityId(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) { - offset = dissect_ber_choice(pinfo, tree, tvb, offset, - T_confidentialityId_choice, hf_index, ett_tcap_T_confidentialityId); + offset = dissect_ber_CHOICE(pinfo, tree, tvb, offset, + T_confidentialityId_choice, hf_index, ett_tcap_T_confidentialityId, NULL); return offset; } @@ -1664,8 +1664,8 @@ static const ber_choice_t OperationCode_choice[] = { static int dissect_tcap_OperationCode(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) { - offset = dissect_ber_choice(pinfo, tree, tvb, offset, - OperationCode_choice, hf_index, ett_tcap_OperationCode); + offset = dissect_ber_CHOICE(pinfo, tree, tvb, offset, + OperationCode_choice, hf_index, ett_tcap_OperationCode, NULL); return offset; } @@ -1941,8 +1941,8 @@ next_tvb = tvb_new_subset(tvb, offset, -1, -1); if (!dissector_try_port(tcap_ansi_ssn_dissector_table, pinfo->match_port, next_tvb, pinfo, tcap_top_tree)) { - offset = dissect_ber_choice(pinfo, tree, tvb, offset, - ComponentPDU_choice, hf_index, ett_tcap_ComponentPDU); + offset = dissect_ber_CHOICE(pinfo, tree, tvb, offset, + ComponentPDU_choice, hf_index, ett_tcap_ComponentPDU, NULL); } @@ -2074,8 +2074,8 @@ static const ber_choice_t T_causeInformation_choice[] = { static int dissect_tcap_T_causeInformation(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) { - offset = dissect_ber_choice(pinfo, tree, tvb, offset, - T_causeInformation_choice, hf_index, ett_tcap_T_causeInformation); + offset = dissect_ber_CHOICE(pinfo, tree, tvb, offset, + T_causeInformation_choice, hf_index, ett_tcap_T_causeInformation, NULL); return offset; } @@ -2138,8 +2138,8 @@ static const ber_choice_t MessageType_choice[] = { static int dissect_tcap_MessageType(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) { - offset = dissect_ber_choice(pinfo, tree, tvb, offset, - MessageType_choice, hf_index, ett_tcap_MessageType); + offset = dissect_ber_CHOICE(pinfo, tree, tvb, offset, + MessageType_choice, hf_index, ett_tcap_MessageType, NULL); return offset; } @@ -2159,8 +2159,8 @@ static const ber_choice_t ERROR_choice[] = { static int dissect_tcap_ERROR(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) { - offset = dissect_ber_choice(pinfo, tree, tvb, offset, - ERROR_choice, hf_index, ett_tcap_ERROR); + offset = dissect_ber_CHOICE(pinfo, tree, tvb, offset, + ERROR_choice, hf_index, ett_tcap_ERROR, NULL); return offset; } |