Make "per_choice_t" and "per_sequence_t" structures "const" structures.

svn path=/trunk/; revision=12255
This commit is contained in:
Guy Harris 2004-10-11 06:51:19 +00:00
parent 21119337d0
commit c01a523dc4
4 changed files with 633 additions and 633 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -224,7 +224,7 @@ static const value_string EntityType_vals[] = {
{ 1, "anyEntity" },
{ 0, NULL}
};
static per_choice_t EntityType_choice[] = {
static const per_choice_t EntityType_choice[] = {
{ 0, "endpoint", ASN1_EXTENSION_ROOT,
dissect_h4501_NULL },
{ 1, "anyEntity", ASN1_EXTENSION_ROOT,
@ -239,7 +239,7 @@ dissect_h4501_EntityType(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tr
}
static per_sequence_t NetworkFacilityExtension_sequence[] = {
static const per_sequence_t NetworkFacilityExtension_sequence[] = {
{ "sourceEntity", ASN1_EXTENSION_ROOT, ASN1_NOT_OPTIONAL,
dissect_h4501_EntityType },
{ "sourceEntityAddress", ASN1_EXTENSION_ROOT, ASN1_OPTIONAL,
@ -264,7 +264,7 @@ static const value_string InterpretationApdu_vals[] = {
{ 2, "rejectAnyUnrecognizedInvokePdu" },
{ 0, NULL}
};
static per_choice_t InterpretationApdu_choice[] = {
static const per_choice_t InterpretationApdu_choice[] = {
{ 0, "discardAnyUnrecognizedInvokePdu", ASN1_EXTENSION_ROOT,
dissect_h4501_NULL },
{ 1, "clearCallIfAnyInvokePduNotRecognized", ASN1_EXTENSION_ROOT,
@ -399,7 +399,7 @@ static const value_string opcode_vals[] = {
{ 1, "global" },
{ 0, NULL}
};
static per_choice_t opcode_choice[] = {
static const per_choice_t opcode_choice[] = {
{ 0, "local", ASN1_NO_EXTENSIONS,
dissect_h4501_localOpcode },
{ 1, "global", ASN1_NO_EXTENSIONS,
@ -435,7 +435,7 @@ static const value_string Extension_vals[] = {
{ 1, "nonStandardData" },
{ 0, NULL}
};
static per_choice_t Extension_choice[] = {
static const per_choice_t Extension_choice[] = {
{ 0, "extensionSeq", ASN1_NO_EXTENSIONS,
dissect_h4501_ExtensionSeq },
{ 1, "nonStandardData", ASN1_NO_EXTENSIONS,
@ -466,7 +466,7 @@ dissect_h4501_destinationAddress(tvbuff_t *tvb, int offset, packet_info *pinfo,
}
static per_sequence_t EndpointAddress_sequence[] = {
static const per_sequence_t EndpointAddress_sequence[] = {
{ "destinationAddress", ASN1_EXTENSION_ROOT, ASN1_NOT_OPTIONAL,
dissect_h4501_destinationAddress },
{ "remoteExtensionAddress", ASN1_EXTENSION_ROOT, ASN1_OPTIONAL,
@ -489,7 +489,7 @@ dissect_h4501_argumentExtension(tvbuff_t *tvb, int offset, packet_info *pinfo, p
}
static per_sequence_t CTInitiateArg_sequence[] = {
static const per_sequence_t CTInitiateArg_sequence[] = {
{ "callIdentity", ASN1_EXTENSION_ROOT, ASN1_NOT_OPTIONAL,
dissect_h4502_CallIdentity },
{ "reroutingNumber", ASN1_EXTENSION_ROOT, ASN1_NOT_OPTIONAL,
@ -506,7 +506,7 @@ dissect_h4502_CTInitiateArg(tvbuff_t *tvb, int offset, packet_info *pinfo, proto
}
static per_sequence_t CTSetupArg_sequence[] = {
static const per_sequence_t CTSetupArg_sequence[] = {
{ "callIdentity", ASN1_EXTENSION_ROOT, ASN1_NOT_OPTIONAL,
dissect_h4502_CallIdentity },
{ "transferringNumber", ASN1_EXTENSION_ROOT, ASN1_OPTIONAL,
@ -539,7 +539,7 @@ dissect_h4501_H225InformationElement(tvbuff_t *tvb, int offset, packet_info *pin
}
static per_sequence_t CTUpdateArg_sequence[] = {
static const per_sequence_t CTUpdateArg_sequence[] = {
{ "redirectionNumber", ASN1_EXTENSION_ROOT, ASN1_NOT_OPTIONAL,
dissect_h4501_EndpointAddress },
{ "redirectionInfo", ASN1_EXTENSION_ROOT, ASN1_OPTIONAL,
@ -578,7 +578,7 @@ dissect_h4501_oddCountIndicator(tvbuff_t *tvb, int offset, packet_info *pinfo, p
}
static per_sequence_t UserSpecifiedSubaddress_sequence[] = {
static const per_sequence_t UserSpecifiedSubaddress_sequence[] = {
{ "subaddressInformation", ASN1_EXTENSION_ROOT, ASN1_NOT_OPTIONAL,
dissect_h4501_SubaddressInformation },
{ "oddCountIndicator", ASN1_EXTENSION_ROOT, ASN1_OPTIONAL,
@ -606,7 +606,7 @@ static const value_string PartySubaddress_vals[] = {
{ 1, "nsapSubaddress" },
{ 0, NULL}
};
static per_choice_t PartySubaddress_choice[] = {
static const per_choice_t PartySubaddress_choice[] = {
{ 0, "userSpecifiedSubaddress", ASN1_EXTENSION_ROOT,
dissect_h4501_UserSpecifiedSubaddress },
{ 1, "nsapSubaddress", ASN1_EXTENSION_ROOT,
@ -621,7 +621,7 @@ dissect_h4501_PartySubaddress(tvbuff_t *tvb, int offset, packet_info *pinfo, pro
}
static per_sequence_t SubaddressTransferArg_sequence[] = {
static const per_sequence_t SubaddressTransferArg_sequence[] = {
{ "redirectionSubaddress", ASN1_EXTENSION_ROOT, ASN1_NOT_OPTIONAL,
dissect_h4501_PartySubaddress },
{ "argumentExtension", ASN1_EXTENSION_ROOT, ASN1_OPTIONAL,
@ -662,7 +662,7 @@ dissect_h4502_CallStatus(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tr
}
static per_sequence_t CTCompleteArg_sequence[] = {
static const per_sequence_t CTCompleteArg_sequence[] = {
{ "endDesignation", ASN1_EXTENSION_ROOT, ASN1_NOT_OPTIONAL,
dissect_h4502_EndDesignation },
{ "redirectionNumber", ASN1_EXTENSION_ROOT, ASN1_NOT_OPTIONAL,
@ -693,7 +693,7 @@ dissect_h4502_connectedInfo(tvbuff_t *tvb, int offset, packet_info *pinfo, proto
}
static per_sequence_t CTActiveArg_sequence[] = {
static const per_sequence_t CTActiveArg_sequence[] = {
{ "connectedAddress", ASN1_EXTENSION_ROOT, ASN1_NOT_OPTIONAL,
dissect_h4501_EndpointAddress },
{ "basicCallInfoElements", ASN1_EXTENSION_ROOT, ASN1_OPTIONAL,
@ -765,7 +765,7 @@ PER_NOT_DECODED_YET("Unrecognized H.450.x operation");
}
static per_sequence_t Invoke_sequence[] = {
static const per_sequence_t Invoke_sequence[] = {
{ "invokeID", ASN1_NO_EXTENSIONS, ASN1_NOT_OPTIONAL,
dissect_h4501_constrained_invokeId },
{ "linkedId", ASN1_NO_EXTENSIONS, ASN1_OPTIONAL,
@ -792,7 +792,7 @@ dissect_h4501_resultExtension(tvbuff_t *tvb, int offset, packet_info *pinfo, pro
}
static per_sequence_t CTIdentifyRes_sequence[] = {
static const per_sequence_t CTIdentifyRes_sequence[] = {
{ "callIdentity", ASN1_EXTENSION_ROOT, ASN1_NOT_OPTIONAL,
dissect_h4502_CallIdentity },
{ "reroutingNumber", ASN1_EXTENSION_ROOT, ASN1_NOT_OPTIONAL,
@ -849,7 +849,7 @@ PER_NOT_DECODED_YET("Unrecognized H.450.x return result");
}
static per_sequence_t result_sequence[] = {
static const per_sequence_t result_sequence[] = {
{ "opcode", ASN1_EXTENSION_ROOT, ASN1_NOT_OPTIONAL,
dissect_h4501_opcode },
{ "result", ASN1_EXTENSION_ROOT, ASN1_NOT_OPTIONAL,
@ -864,7 +864,7 @@ dissect_h4501_result(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *
}
static per_sequence_t ReturnResult_sequence[] = {
static const per_sequence_t ReturnResult_sequence[] = {
{ "invokeID", ASN1_NO_EXTENSIONS, ASN1_NOT_OPTIONAL,
dissect_h4501_invokeId },
{ "result", ASN1_NO_EXTENSIONS, ASN1_OPTIONAL,
@ -940,7 +940,7 @@ static const value_string errorCode_vals[] = {
{ 1, "global" },
{ 0, NULL}
};
static per_choice_t errorCode_choice[] = {
static const per_choice_t errorCode_choice[] = {
{ 0, "local", ASN1_NO_EXTENSIONS,
dissect_h4501_localErrorCode },
{ 1, "global", ASN1_NO_EXTENSIONS,
@ -964,7 +964,7 @@ dissect_h4501_parameter(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tre
}
static per_sequence_t ReturnError_sequence[] = {
static const per_sequence_t ReturnError_sequence[] = {
{ "invokeID", ASN1_NO_EXTENSIONS, ASN1_NOT_OPTIONAL,
dissect_h4501_invokeId },
{ "errorCode", ASN1_NO_EXTENSIONS, ASN1_NOT_OPTIONAL,
@ -1051,7 +1051,7 @@ static const value_string problem_vals[] = {
{ 3, "returnError" },
{ 0, NULL}
};
static per_choice_t problem_choice[] = {
static const per_choice_t problem_choice[] = {
{ 0, "general", ASN1_NO_EXTENSIONS,
dissect_h4501_GeneralProblem },
{ 1, "invoke", ASN1_NO_EXTENSIONS,
@ -1070,7 +1070,7 @@ dissect_h4501_problem(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree
}
static per_sequence_t Reject_sequence[] = {
static const per_sequence_t Reject_sequence[] = {
{ "invokeID", ASN1_NO_EXTENSIONS, ASN1_NOT_OPTIONAL,
dissect_h4501_invokeId },
{ "problem", ASN1_NO_EXTENSIONS, ASN1_NOT_OPTIONAL,
@ -1092,7 +1092,7 @@ static const value_string ROS_vals[] = {
{ 4, "reject" },
{ 0, NULL}
};
static per_choice_t ROS_choice[] = {
static const per_choice_t ROS_choice[] = {
{ 1, "invoke", ASN1_NO_EXTENSIONS,
dissect_h4501_Invoke },
{ 2, "returnResult", ASN1_NO_EXTENSIONS,
@ -1123,7 +1123,7 @@ static const value_string ServiceApdus_vals[] = {
{ 0, "rosApdus" },
{ 0, NULL}
};
static per_choice_t ServiceApdus_choice[] = {
static const per_choice_t ServiceApdus_choice[] = {
{ 0, "rosApdus", ASN1_EXTENSION_ROOT,
dissect_h4501_rosApdus },
{ 0, NULL, 0, NULL }
@ -1136,7 +1136,7 @@ dissect_h4501_ServiceApdus(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_
}
static per_sequence_t H4501_SupplementaryService_sequence[] = {
static const per_sequence_t H4501_SupplementaryService_sequence[] = {
{ "networkFacilityExtension", ASN1_EXTENSION_ROOT, ASN1_OPTIONAL,
dissect_h4501_NetworkFacilityExtension },
{ "interpretationApdu", ASN1_EXTENSION_ROOT, ASN1_OPTIONAL,

View File

@ -166,7 +166,7 @@ dissect_t38_NULL(tvbuff_t *tvb _U_, int offset, packet_info *pinfo _U_, proto_tr
return offset;
}
static per_choice_t t30_indicator_choice[] = {
static const per_choice_t t30_indicator_choice[] = {
{ 0, "no-signal", ASN1_EXTENSION_ROOT,
dissect_t38_NULL},
{ 1, "cng", ASN1_EXTENSION_ROOT,
@ -257,7 +257,7 @@ dissect_t38_t30_indicator(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_t
return offset;
}
static per_choice_t data_choice[] = {
static const per_choice_t data_choice[] = {
{ 0, "v21", ASN1_EXTENSION_ROOT,
dissect_t38_NULL},
{ 1, "v27-2400", ASN1_EXTENSION_ROOT,
@ -324,7 +324,7 @@ dissect_t38_data(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree
return offset;
}
static per_choice_t Type_of_msg_choice[] = {
static const per_choice_t Type_of_msg_choice[] = {
{ 0, "t30-indicator", ASN1_NO_EXTENSIONS,
dissect_t38_t30_indicator},
{ 1, "data", ASN1_NO_EXTENSIONS,
@ -347,7 +347,7 @@ dissect_t38_Type_of_msg(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tre
return offset;
}
static per_choice_t Data_Field_field_type_PreCorrigendum_choice[] = {
static const per_choice_t Data_Field_field_type_PreCorrigendum_choice[] = {
{ 0, "hdlc-data", ASN1_NO_EXTENSIONS,
dissect_t38_NULL},
{ 1, "hdlc-sig-end", ASN1_NO_EXTENSIONS,
@ -368,7 +368,7 @@ static per_choice_t Data_Field_field_type_PreCorrigendum_choice[] = {
};
static per_choice_t Data_Field_field_type_choice[] = {
static const per_choice_t Data_Field_field_type_choice[] = {
{ 0, "hdlc-data", ASN1_EXTENSION_ROOT,
dissect_t38_NULL},
{ 1, "hdlc-sig-end", ASN1_EXTENSION_ROOT,
@ -458,7 +458,7 @@ dissect_t38_Data_Field_field_data(tvbuff_t *tvb, int offset, packet_info *pinfo,
return offset;
}
static per_sequence_t Data_Field_item_sequence[] = {
static const per_sequence_t Data_Field_item_sequence[] = {
{ "field-type", ASN1_NO_EXTENSIONS, ASN1_NOT_OPTIONAL,
dissect_t38_Data_Field_field_type },
{ "field-data", ASN1_NO_EXTENSIONS, ASN1_OPTIONAL,
@ -484,7 +484,7 @@ dissect_t38_Data_Field(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree
return offset;
}
static per_sequence_t IFPPacket_sequence[] = {
static const per_sequence_t IFPPacket_sequence[] = {
{ "type-of-msg", ASN1_NO_EXTENSIONS, ASN1_NOT_OPTIONAL,
dissect_t38_Type_of_msg },
{ "data-field", ASN1_NO_EXTENSIONS, ASN1_OPTIONAL,
@ -580,7 +580,7 @@ dissect_t38_fec_data(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *
return offset;
}
static per_sequence_t fec_info_sequence[] = {
static const per_sequence_t fec_info_sequence[] = {
{ "fec-npackets", ASN1_NO_EXTENSIONS, ASN1_NOT_OPTIONAL,
dissect_t38_fec_npackets },
{ "fec-data", ASN1_NO_EXTENSIONS, ASN1_NOT_OPTIONAL,
@ -597,7 +597,7 @@ dissect_t38_fec_info(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *
return offset;
}
static per_choice_t error_recovery_choice[] = {
static const per_choice_t error_recovery_choice[] = {
{ 0, "secondary-ifp-packets", ASN1_NO_EXTENSIONS,
dissect_t38_secondary_ifp_packets},
{ 1, "fec-info", ASN1_NO_EXTENSIONS,
@ -625,7 +625,7 @@ dissect_t38_error_recovery(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_
return offset;
}
static per_sequence_t UDPTLPacket_sequence[] = {
static const per_sequence_t UDPTLPacket_sequence[] = {
{ "seq-number", ASN1_NO_EXTENSIONS, ASN1_NOT_OPTIONAL,
dissect_t38_seq_number },
{ "primary-ifp-packet", ASN1_NO_EXTENSIONS, ASN1_NOT_OPTIONAL,