language
stringlengths
0
24
filename
stringlengths
9
214
code
stringlengths
99
9.93M
ASN.1
wireshark/epan/dissectors/asn1/p772/MMSAbstractService.asn
MMSAbstractService {iso(1) identified-organization(3) nato(26) stanags(0) mmhs(4406) object-identifiers(0) module(0) abstract-service(3)} DEFINITIONS IMPLICIT TAGS ::= BEGIN --Prologue -- Exports Everything IMPORTS -- IPMS information objects AutoForwardComment, Heading -- FROM IPMSInformationObjects {joint-iso-ccitt mhs-motis(6) ipms(1) modules(0) information-objects(2)} -- MMS information objects MM, MN, MNRN, MRN, MON, InformationObject -- FROM MMSInformationObjects {iso(1) identified-organization(3) nato(26) stanags(0) mmhs(4406) object-identifiers(0) module(0) mms(1)} -- MMS object identifiers id-mpt-management, id-mpt-origination, id-mpt-reception -- FROM MMSObjectIdentifiers {iso(1) identified-organization(3) nato(26) stanags(0) mmhs(4406) object-identifiers(0)} -- MTS abstract service MessageDeliveryEnvelope, MessageSubmissionEnvelope, MessageSubmissionIdentifier, MessageSubmissionTime, ORName, ProbeSubmissionEnvelope, ProbeSubmissionIdentifier, ProbeSubmissionTime, RecipientImproperlySpecified, ReportDeliveryEnvelope, SupplementaryInformation -- FROM MTSAbstractService {joint-iso-ccitt mhs-motis(6) mts(3) modules(0) mts-abstract-service(1)} -- Abstract service definition conventions ABSTRACT-ERROR, ABSTRACT-OPERATION, PORT -- FROM AbstractServiceNotation {joint-iso-ccitt mhs-motis(6) asdc(2) modules(0) notation(1)}; -- Ports -- origination PORT ::= { -- CONSUMER INVOKES -- {OriginateProbe | -- -- Although, national implementation may -- support probes within their own domain, probes are not -- permitted across national boundaries -- OriginateMM | OriginateMRN} -- ID id-pt-origination} -- --reception PORT ::= { -- CONSUMER INVOKES -- {ReceiveReport | ReceiveMM | ReceiveMRN | ReceiveMNRN | ReceiveMON} -- ID id-pt-reception} -- --management PORT ::= { -- CONSUMER INVOKES -- {ChangeAutoDiscard | ChangeAutoAcknowledgment | ChangeAutoForwarding} -- ID id-pt-management} -- Origination abstract operations -- Probes are prohibited across national boundaries. --originate-probe ABSTRACT-OPERATION ::= { -- ARGUMENT OriginateProbeArgument -- RESULT OriginateProbeResult -- ERROR {SubcriptionError | RecipientImproperlySpecified}} OriginateProbeArgument ::= SET { envelope [0] ProbeSubmissionEnvelope, content [1] MM} OriginateProbeResult ::= SET { submission-identifier [0] ProbeSubmissionIdentifier, submission-time [1] ProbeSubmissionTime} --originate-mm ABSTRACT-OPERATION ::= { -- ARGUMENT OriginateMMArgument -- RESULT OriginateMMResult -- ERROR {SubcriptionError | RecipientImproperlySpecified}} OriginateMMArgument ::= SET { envelope [0] MessageSubmissionEnvelope, content [1] MM} OriginateMMResult ::= SET { submission-identifier [0] MessageSubmissionIdentifier, submission-time [1] MessageSubmissionTime} --originate-mrn ABSTRACT-OPERATION ::= { -- ARGUMENT OriginateMRNArgument -- RESULT OriginateMRNResult -- ERROR {SubcriptionError | RecipientImproperlySpecified}} OriginateMRNArgument ::= SET { envelope [0] MessageSubmissionEnvelope, content [1] MRN} OriginateMRNResult ::= SET { submission-identifier [0] MessageSubmissionIdentifier, submission-time [1] MessageSubmissionTime} -- Reception abstract operations --receive-report ABSTRACT-OPERATION ::= { -- ARGUMENT ReceiveReportArgument -- RESULT ERROR {}} ReceiveReportArgument ::= SET { envelope [0] ReportDeliveryEnvelope, undelivered-object [1] InformationObject OPTIONAL} --receive-mm ABSTRACT-OPERATION ::= { -- ARGUMENT ReceiveMMArgument -- RESULT ERROR {}} ReceiveMMArgument ::= SET { envelope [0] MessageDeliveryEnvelope, content [1] MM} --receive-mrn ABSTRACT-OPERATION ::= { -- ARGUMENT ReceiveMRNArgument -- RESULT ERROR {}} ReceiveMRNArgument ::= SET { envelope [0] MessageDeliveryEnvelope, content [1] MRN} --receive-mnrn ABSTRACT-OPERATION ::= { -- ARGUMENT ReceiveMNRNArgument -- RESULT ERROR {}} ReceiveMNRNArgument ::= SET { envelope [0] MessageDeliveryEnvelope, content [1] MNRN} --receive-mon ABSTRACT-OPERATION ::= { -- ARGUMENT ReceiveMONArgument -- RESULT ERROR {}} ReceiveMONArgument ::= SET { envelope [0] MessageDeliveryEnvelope, content [1] MON} -- Management abstract operations -- It should be noted that in cases where an implementation has dual -- IPM and MM functionality, the management abstract operations may be used -- for support of both types of messaging. --change-auto-discard ABSTRACT-OPERATION ::= { -- ARGUMENT ChangeAutoDiscardArgument -- RESULT ERRORS {}} ChangeAutoDiscardArgument ::= SET { auto-discard-expired-MMs [0] BOOLEAN, auto-discard-obsolete-MMs [1] BOOLEAN} --change-auto-acknowledgement ABSTRACT-OPERATION ::= { -- ARGUMENT ChangeAutoAcknowledgementArgument -- RESULT ERRORS {SubscriptionError}} ChangeAutoAcknowledgementArgument ::= SET { auto-acknowledge-MMs [0] BOOLEAN, auto-acknowledge-suppl-receipt-info [1] SupplementaryInformation} --change-auto-forwarding ABSTRACT-OPERATION ::= { -- ARGUMENT ChangeAutoForwardingArgument -- RESULT ERRORS {SubscriptionError, -- RecipientImproperlySpecified}} ChangeAutoForwardingArgument ::= SET { autoforward-MMs [0] BOOLEAN, auto-forward-recipients [1] SEQUENCE OF ORName OPTIONAL, auto-forward-heading [2] Heading OPTIONAL, auto-forward-comment [3] AutoForwardComment OPTIONAL} -- Abstract errors --subscription-error ABSTRACT-ERROR ::= {PARAMETER SubscriptionErrorParameter --} SubscriptionErrorParameter ::= SET {problem [0] SubscriptionProblem} SubscriptionProblem ::= ENUMERATED { mms-eos-not-subcribed(0), mts-eos-not-subcribed(1)} END --of MMSAbstractService
ASN.1
wireshark/epan/dissectors/asn1/p772/MMSExtendedBodyPartTypes.asn
MMSExtendedBodyPartTypes {iso(1) identified-organization(3) nato(26) stanags(0) mmhs(4406) object-identifiers(0) module(0) extended-body-part-types(7)} DEFINITIONS IMPLICIT TAGS ::= BEGIN -- Prologue -- Exports Everything IMPORTS -- IPMS information objects EXTENDED-BODY-PART-TYPE --= FROM IPMSInformationObjects {joint-iso-ccitt mhs-motis(6) ipms(1) modules(0) information-objects(2)} -- MMS information objects MM --= FROM MMSInformationObjects {iso(1) identified-organization(3) nato(26) stanags(0) mmhs(4406) object-identifiers(0) module(0) mms(1)} -- MMS upper lower bounds ub-data-size --= FROM MMSUpperBounds {iso(1) identified-organization(3) nato(26) stanags(0) mmhs(4406) object-identifiers(0) module(0) upper-bounds(0)} -- MTS Abstract Service MessageDeliveryTime, OtherMessageDeliveryFields --= FROM MTSAbstractService {joint-iso-ccitt mhs-motis(6) mts(3) modules(0) mts-abstract-service(1)} -- MMS object identifiers --= id-nato-mmhs-et-adatp3, id-nato-mmhs-et-adatp3-parameters, id-nato-mmhs-et-acp127data, id-nato-mmhs-et-acp127data-parameters, id-nato-mmhs-et-corrections, id-nato-mmhs-et-corrections-parameters, id-nato-mmhs-et-forwarded-encrypted, id-nato-mmhs-et-forwarded-encrypted-parameters, id-nato-mmhs-et-mm-message, id-nato-mmhs-et-mm-message-parameters --= FROM MMSObjectIdentifiers {iso(1) identified-organization(3) nato(26) stanags(0) mmhs(4406) object-identifiers(0)}; -- extended adatp3 bodypart --adatp3-body-part EXTENDED-BODY-PART-TYPE ::= { -- PARAMETERS {ADatP3Parameters -- IDENTIFIED BY id-nato-mmhs-et-adatp3-parameters}, -- DATA {ADatP3Data -- IDENTIFIED BY id-nato-mmhs-et-adatp3}} ADatP3Parameters ::= INTEGER -- DEFAULT (0) ADatP3Data ::= CHOICE { lineOriented [0] IMPLICIT IA5String, setOriented [1] IMPLICIT SEQUENCE OF IA5String} -- extended corrections body part --corrections-body-part EXTENDED-BODY-PART-TYPE ::= { -- PARAMETERS {CorrectionsParameters -- IDENTIFIED BY id-nato-mmhs-et-corrections-parameters}, -- DATA {CorrectionsData -- IDENTIFIED BY id-nato-mmhs-et-corrections}} CorrectionsParameters ::= INTEGER CorrectionsData ::= IA5String -- extended forwarded encrypted body part --forwarded-encrypted-body-part EXTENDED-BODY-PART-TYPE ::= { -- PARAMETERS -- {ForwardedEncryptedParameters -- IDENTIFIED BY id-nato-mmhs-et-forwarded-encrypted-parameters}, -- DATA -- {ForwardedEncryptedData -- IDENTIFIED BY id-nato-mmhs-et-forwarded-encrypted}} -- A forwarded-encrypted-body must contain the delivery information, -- containing the content type which will indicate whether the forwarded -- encrypted message is an MM or IPM. All security related information -- (i.e., token) of the original message must be forwarded. ForwardedEncryptedParameters ::= SET { delivery-time [0] MessageDeliveryTime OPTIONAL, delivery-envelope [1] OtherMessageDeliveryFields} -- 2/X.411, part 9 of 26. ForwardedEncryptedData ::= BIT STRING -- extended MM message body part --mm-message-body-part EXTENDED-BODY-PART-TYPE ::= { -- PARAMETERS -- {MMMessageParameters -- IDENTIFIED BY id-nato-mmhs-et-mm-message-parameters}, -- DATA {MMMessageData -- IDENTIFIED BY id-nato-mmhs-et-mm-message}} -- An mm-message-body-part can either carry a forwarded M1M or a forwarded -- IPM. In the case of a message-body-part, as defined in X.420, -- it can only carry an IPM. MMMessageParameters ::= SET { delivery-time [0] MessageDeliveryTime OPTIONAL, delivery-envelope [1] OtherMessageDeliveryFields} MMMessageData ::= IPM -- extended acp127data body part --acp127data-body-part EXTENDED-BODY-PART-TYPE ::= { -- PARAMETERS -- {ACP127DataParameters -- IDENTIFIED BY id-nato-mmhs-et-acp127data-parameters}, -- DATA {ACP127DataData -- IDENTIFIED BY id-nato-mmhs-et-acp127data}} ACP127DataParameters ::= INTEGER ACP127DataData ::= IA5String(SIZE (1..ub-data-size)) END -- of MMS ExtendedBodyPartTypes
ASN.1
wireshark/epan/dissectors/asn1/p772/MMSHeadingExtensions.asn
MMSHeadingExtensions {iso(1) identified-organization(3) nato(26) stanags(0) mmhs(4406) object-identifiers(0) module(0) heading-extensions(6)} DEFINITIONS IMPLICIT TAGS ::= BEGIN -- Prologue -- Exports Everything IMPORTS -- IPMS information objects IPMS-EXTENSION, ORDescriptor --= FROM IPMSInformationObjects {joint-iso-ccitt mhs-motis(6) ipms(1) modules(0) information-objects(2)} -- MMS upper bounds lb-military-sic, ub-military-number-of-sics, ub-military-sic --= FROM MMSUpperBounds {iso(1) identified-organization(3) nato(26) stanags(0) mmhs(4406) object-identifiers(0) module(0) upper-bounds(0)} -- MMS object identifiers id-nato-mmhs-mm-acp127-message-identifier, id-nato-mmhs-mm-address-list-indicator, id-nato-mmhs-mm-codress-message, id-nato-mmhs-mm-copy-precedence, id-nato-mmhs-mm-distribution-codes, id-nato-mmhs-mm-exempted-address, id-nato-mmhs-mm-extended-authorisation-info, id-nato-mmhs-mm-handling-instructions, id-nato-mmhs-mm-information-labels, id-nato-mmhs-mm-message-instructions, id-nato-mmhs-mm-message-type, id-nato-mmhs-mm-originator-reference, id-nato-mmhs-mm-originator-plad, id-nato-mmhs-mm-other-recipients-indicator, id-nato-mmhs-mm-pilot-forwarding-info, id-nato-mmhs-mm-primary-precedence --= FROM MMSObjectIdentifiers {iso(1) identified-organization(3) nato(26) stanags(0) mmhs(4406) object-identifiers(0)} -- MTS abstract service --Message--SecurityLabel --= FROM MTSAbstractService {joint-iso-ccitt mhs-motis(6) mts(3) modules(0) mts-abstract-service(1)}; -- exempted address --exempted-address IPMS-EXTENSION ::= { -- VALUE SEQUENCE OF ExemptedAddress -- IDENTIFIED BY id-nato-mmhs-mm-exempted-address} ExemptedAddressSeq ::= SEQUENCE OF ExemptedAddress ExemptedAddress ::= ORDescriptor -- extended authorisation information --extended-authorisation-info IPMS-EXTENSION ::= { -- VALUE ExtendedAuthorisationInfo -- IDENTIFIED BY id-nato-mmhs-mm-extended-authorisation-info} ExtendedAuthorisationInfo ::= UTCTime -- UTCTime as defined in 8.5.4 of ITU-T X.411 -- Distribution codes -- will carry subject indicator codes and leave room for expansion. --distribution-codes IPMS-EXTENSION ::= { -- VALUE DistributionCodes -- IDENTIFIED BY id-nato-mmhs-mm-distribution-codes} DistributionCodes ::= SET { sics [0] SEQUENCE SIZE (1..ub-military-number-of-sics) OF Sic OPTIONAL, dist-Extensions [1] SEQUENCE OF DistributionExtensionField OPTIONAL} Sic ::= PrintableString(SIZE (lb-military-sic..ub-military-sic)) --DistributionExtensionField ::= INSTANCE OF TYPE-IDENTIFIER DistributionExtensionField ::= SEQUENCE { dist-type OBJECT IDENTIFIER, dist-value ANY --DEFINED BY dist-type-- } -- Handling instructions --handling-instructions IPMS-EXTENSION ::= { -- VALUE HandlingInstructions -- IDENTIFIED BY id-nato-mmhs-mm-handling-instructions} HandlingInstructions ::= SEQUENCE OF MilitaryString MilitaryString ::= PrintableString(SIZE (1..ub-military-string)) -- Message instructions -- will carry operating signals --message-instructions IPMS-EXTENSION ::= { -- VALUE MessageInstructions -- IDENTIFIED BY id-nato-mmhs-mm-message-instructions} MessageInstructions ::= SEQUENCE OF MilitaryString -- Codress message -- Needed for transition or as long as codress messages need to be carried. --codress-message IPMS-EXTENSION ::= { -- VALUE CodressMessage -- IDENTIFIED BY id-nato-mmhs-mm-codress-message} CodressMessage ::= INTEGER -- Originator reference -- only used if a user designated identifier string becomes important. --originator-reference IPMS-EXTENSION ::= { -- VALUE OriginatorReference -- IDENTIFIED BY id-nato-mmhs-mm-originator-reference} OriginatorReference ::= MilitaryString -- we have expanded MMHSPrecedence to PrimaryPrecedence and CopyPrecedence to -- all rules to be written to highlight high priority messages. MMHSPrecedence ::= INTEGER { deferred(0), routine(1), priority(2), immediate(3), flash(4), override(5) -- these are used by some National systems XXX need to verify , ecp(16), critic(17), override(18) } -- Primary reference --primary-precedence IPMS-EXTENSION ::= { -- VALUE MMHSPrecedence -- IDENTIFIED BY id-nato-mmhs-mm-primary-precedence} PrimaryPrecedence ::= INTEGER { deferred(0), routine(1), priority(2), immediate(3), flash(4), override(5) -- these are used by some National systems XXX need to verify , ecp(16), critic(17), override(18) } -- Note: Values 0 to 15 are reserved for NATO defined precedence levels. -- Values 16 to 31 are reserved for national user. -- Copy precedence --copy-precedence IPMS-EXTENSION ::= { -- VALUE MMHSPrecedence -- IDENTIFIED BY id-nato-mmhs-mm-copy-precedence} CopyPrecedence ::= INTEGER { deferred(0), routine(1), priority(2), immediate(3), flash(4), override(5) -- these are used by some National systems XXX need to verify , ecp(16), critic(17), override(18) } -- Message type --message-type IPMS-EXTENSION ::= { -- VALUE MessageType -- IDENTIFIED BY id-nato-mmhs-mm-message-type} MessageType ::= SET { type [0] TypeMessage, identifier [1] MessageIdentifier OPTIONAL} TypeMessage ::= INTEGER {exercise(0), operation(1), project(2), drill(3)} -- Note: Values 0 to 127 are reserved for NATO defined Message Type -- identifiers. Values above 128 to 255 are not defined by NATO and may -- be used nationally or bilaterally. MessageIdentifier ::= MilitaryString -- Address list indicator --address-list-indicator IPMS-EXTENSION ::= { -- VALUE SEQUENCE OF AddressListDesignator -- IDENTIFIED BY id-nato-mmhs-mm-address-list-indicator} AddressListDesignatorSeq ::= SEQUENCE OF AddressListDesignator AddressListDesignator ::= SET { type [0] INTEGER {primaryAddressList(0), copyAddressList(1)}, listName [1] ORDescriptor, notificationRequest [2] AddressListRequest OPTIONAL, replyRequest [3] AddressListRequest OPTIONAL} AddressListRequest ::= INTEGER {action(0), info(1), both(2)} -- Other recipients indicator --other-recipients-indicator IPMS-EXTENSION ::= { -- VALUE SEQUENCE OF OtherRecipientDesignator -- IDENTIFIED BY id-nato-mmhs-mm-other-recipients-indicator} OtherRecipientDesignatorSeq ::= SEQUENCE OF OtherRecipientDesignator OtherRecipientDesignator ::= SET { type [0] INTEGER {primary(0), copy(1)}, designator [1] MilitaryString} -- pilot forwarding information --pilot-forwarding-info IPMS-EXTENSION ::= { -- VALUE SEQUENCE OF PilotInformation -- IDENTIFIED BY id-nato-mmhs-mm-pilot-forwarding-info} PilotInformationSeq ::= SEQUENCE OF PilotInformation PilotInformation ::= SEQUENCE { pilotPrecedence [0] MMHSPrecedence OPTIONAL, -- Note: Values 0 to 15 are reserved for NATO defined precedence levels. -- Values 16 to 31 are reserved for national use. pilotRecipient [1] SEQUENCE OF ORDescriptor OPTIONAL, pilotSecurity [2] --Message--SecurityLabel OPTIONAL, pilotHandling [3] SEQUENCE OF MilitaryString OPTIONAL} -- Acp127 message identifier -- a string to store routing indicator, station serial number and julian file -- time seperated by spaces. --acp127-message-identifier IPMS-EXTENSION ::= { -- VALUE Acp127MessageIdentifier -- IDENTIFIED BY id-nato-mmhs-mm-acp127-message-identifier} Acp127MessageIdentifier ::= MilitaryString -- Originator PLAD --originator-plad IPMS-EXTENSION ::= { -- VALUE OriginatorPlad -- IDENTIFIED BY id-nato-mmhs-mm-originator-plad} OriginatorPlad ::= MilitaryString -- Information label --security-information-labels IPMS-EXTENSION ::= { -- VALUE SecurityInformationLabels -- IDENTIFIED BY id-nato-mmhs-mm-information-labels} SecurityInformationLabels ::= SEQUENCE { content-security-label [0] SecurityLabel, -- SecurityLabel as defined in 8.5.9 of ITU-T X.411 heading-security-label [1] SecurityLabel OPTIONAL, body-part-security-labels [2] SEQUENCE OF BodyPartSecurityLabel OPTIONAL} BodyPartSecurityLabel ::= SET { body-part-security-label [0] SecurityLabel, body-part-sequence-number [1] BodyPartSequenceNumber OPTIONAL} BodyPartSequenceNumber ::= INTEGER -- Note: If all body parts of the message are labelled, each -- element in the body sequence above shall correspond to the -- same numbered element of the Body sequence, and the body -- part sequence number may be absent. (i.e. the first element -- of this field shall correspond to the first body part, etc. -- Otherwise the body part sequence number shall be present -- and shall correspond to the sequence of the body part -- to which the security label relates. (i.e. the value of the -- body part sequence number shall correspond to sequence in which -- the originator encoded the body parts of the message). -- NOTE: The security-information-labels heading extension is now -- deprecated. Its use is, therefore, discouraged. See STANAG 4406 -- Annex B for instruction on the use of its replacement, the -- ESSSecurityLabel. PriorityLevelQualifier ::= ENUMERATED { low(0), high(1) } END -- of Military heading extensions used in MMS
ASN.1
wireshark/epan/dissectors/asn1/p772/MMSInformationObjects.asn
MMSInformationObjects {iso(1) identified-organization(3) nato(26) stanags(0) mmhs(4406) object-identifiers(0) module(0) mms(1)} DEFINITIONS IMPLICIT TAGS ::= BEGIN -- Prologue -- Exports Everything IMPORTS -- IPM Information Object Body, CommonFields, Heading, NonReceiptFields, OtherNotificationTypeFields, ReceiptFields, IPM, IPN --= FROM IPMSInformationObjects {joint-iso-ccitt mhs-motis(6) ipms(1) modules(0) information-objects(2)} -- MTS abstract service ORName --= FROM MTSAbstractService {joint-iso-ccitt mhs-motis(6) mts(3) modules(0) mts-abstract-service(1)}; -- Information Object --InformationObject ::= CHOICE {mm [0] MM, -- mn [1] MN} -- We use IPM and IPN here because asn2wrs is unable to fetch -- COMPONENTS OF CommonFields from IPMSInformationObjects.asn (x420). InformationObject ::= CHOICE {mm [0] IPM, mn [1] IPN} -- MM (Military Message) MM ::= SEQUENCE {mmheading Heading, mmbody Body} -- The mandatory support on the IPMIdentifier components is more important -- in MMS than in IPMS. The user component, ORName of the originating UA is -- mandatory. Local IPMIdentifier is made up of 2 concatenated string -- separated by a space both generated by the originating UA, a serial -- number and the filing time (the time the message generation is finished) -- in UTC time format. The minimum length of 15 is because both a date/time -- stamp in UTC format including seconds and a serial number, plus the space -- delimiter are mandatory. The smallest acceptable UTC date/time stamp -- is 13 (ddmmyyhhmmssZ). -- MN (Military Notification receipt/non receipt / other notification types) MN ::= SET { COMPONENTS OF CommonFields, choice [0] CHOICE {mn-non-receipt-fields [0] NonReceiptFields, mn-receipt-fields [1] ReceiptFields, mn-other-notification-type-fields [2] OtherNotificationTypeFields}} MRN ::= MN -- with MN-receipt-fields chosen MNRN ::= MN -- with MN-non-receipt-fields chosen MON ::= MN -- with MN-other-notification-type-fields chosen -- All military specific body parts are defined as extended body parts. -- The military specific body parts are defined in Annex A -- of this part of the MBS. END -- of MMS InformationObjects
ASN.1
wireshark/epan/dissectors/asn1/p772/MMSObjectIdentifiers.asn
MMSObjectIdentifiers {iso(1) identified-organization(3) nato(26) stanags(0) mmhs(4406) object-identifiers(0)} DEFINITIONS IMPLICIT TAGS ::= BEGIN -- Prologue -- Export everything IMPORTS --nothing-- ; ID ::= OBJECT IDENTIFIER -- Military Messaging id-mmhs ID ::= {iso(1) identified-organization(3) nato(26) stanags(0) mmhs(4406) object-identifiers(0)} -- Categories of object identifiers id-mod ID ::= {id-mmhs 0} -- mm module id-mm ID ::= {id-mmhs 2} -- heading extension id-hat ID ::= {id-mmhs 3} -- heading attributes for MS id-mcont ID ::= {id-mmhs 4} -- content types id-policy ID ::= {id-mmhs 5} -- NATO policy identifier id-cat ID ::= {id-mmhs 6} -- special category identifiers id-et ID ::= {id-mmhs 7} -- military defined extended body part types id-mmts ID ::= {id-mmhs 8} -- mts object identifiers id-nat ID ::= {id-mmhs 9} -- military defined notification attributes id-mot ID ::= {id-mmhs 10} -- military object types id-mpt ID ::= {id-mmhs 11} -- military port types id-ref ID ::= {id-mmhs 12} -- refinements id-informationlabel ID ::= {id-mmhs 13} -- Modules -- MMS information objects id-mod-upper-bounds ID ::= {id-mod 0} id-mod-mms ID ::= {id-mod 1} id-mod-functional-objects ID ::= {id-mod 2} id-mod-abstract-service ID ::= {id-mod 3} id-mod-heading-extension ID ::= {id-mod 6} id-mod-extended-body-part-types ID ::= {id-mod 7} id-mod-message-store-attributes ID ::= {id-mod 8} id-mod-per-recipient-specifier-extensions ID ::= {id-mod 11} id-mod-other-notification-type-extensions ID ::= {id-mod 12} -- Object types id-mot-mmme ID ::= {id-mot 0} id-mot-mms-user ID ::= {id-mot 1} id-mot-mms ID ::= {id-mot 2} id-mot-mms-ua ID ::= {id-mot 3} id-mot-mms-ms ID ::= {id-mot 4} id-mot-acp127au ID ::= {id-mot 5} id-mot-pdau ID ::= {id-mot 6} -- port types id-mpt-origination ID ::= {id-mpt 0} id-mpt-reception ID ::= {id-mpt 1} id-mpt-management ID ::= {id-mpt 2} -- Refinements id-ref-primary ID ::= {id-ref 0} id-ref-secondary ID ::= {id-ref 1} -- Military Defined body parts id-nato-mmhs-et-adatp3 ID ::= {id-et 0} id-nato-mmhs-et-corrections ID ::= {id-et 1} id-nato-mmhs-et-adatp3-parameters ID ::= {id-et 2} id-nato-mmhs-et-corrections-parameters ID ::= {id-et 3} id-nato-mmhs-et-forwarded-encrypted ID ::= {id-et 6} id-nato-mmhs-et-forwarded-encrypted-parameters ID ::= {id-et 7} id-nato-mmhs-et-mm-message ID ::= {id-et 9} id-nato-mmhs-et-mm-message-parameters ID ::= {id-et 10} id-nato-mmhs-et-mm-acp127data ID ::= {id-et 12} id-nato-mmhs-et-mm-acp127data-parameters ID ::= {id-et 13} -- Military Defined Heading Fields id-nato-mmhs-mm-primary-precedence ID ::= {id-mm 0} id-nato-mmhs-mm-copy-precedence ID ::= {id-mm 1} id-nato-mmhs-mm-message-type ID ::= {id-mm 2} id-nato-mmhs-mm-address-list-indicator ID ::= {id-mm 3} id-nato-mmhs-mm-exempted-address ID ::= {id-mm 4} id-nato-mmhs-mm-extended-authorisation-info ID ::= {id-mm 5} id-nato-mmhs-mm-distribution-codes ID ::= {id-mm 6} id-nato-mmhs-mm-handling-instructions ID ::= {id-mm 7} id-nato-mmhs-mm-message-instructions ID ::= {id-mm 8} id-nato-mmhs-mm-codress-message ID ::= {id-mm 9} id-nato-mmhs-mm-originator-reference ID ::= {id-mm 10} id-nato-mmhs-mm-other-recipients-indicator ID ::= {id-mm 11} id-nato-mmhs-mm-pilot-forwarding-info ID ::= {id-mm 12} id-nato-mmhs-mm-acp127-message-identifier ID ::= {id-mm 13} id-nato-mmhs-mm-originator-plad ID ::= {id-mm 14} id-nato-mmhs-mm-information-labels ID ::= {id-mm 17} -- This value is deprecated. -- the following are per-recipient id-nato-mmhs-mm-acp127-notification-request ID ::= {id-mm 15} -- the following are per other-notification-type id-nato-mmhs-mm-acp127-notification-response ID ::= {id-mm 16} -- Military Defined Heading Attributes for MS id-nato-mmhs-hat-primary-precedence ID ::= {id-hat 0} id-nato-mmhs-hat-copy-precedence ID ::= {id-hat 1} id-nato-mmhs-hat-message-type ID ::= {id-hat 2} id-nato-mmhs-hat-address-list-indicator ID ::= {id-hat 3} id-nato-mmhs-hat-exempted-address ID ::= {id-hat 4} id-nato-mmhs-hat-extended-authorisation-info ID ::= {id-hat 5} id-nato-mmhs-hat-distribution-codes ID ::= {id-hat 6} id-nato-mmhs-hat-handling-instructions ID ::= {id-hat 7} id-nato-mmhs-hat-message-instructions ID ::= {id-hat 8} id-nato-mmhs-hat-codress-message ID ::= {id-hat 9} id-nato-mmhs-hat-originator-reference ID ::= {id-hat 10} id-nato-mmhs-hat-other-recipients-indicator ID ::= {id-hat 11} id-nato-mmhs-hat-pilot-forwarding-info ID ::= {id-hat 12} id-nato-mmhs-hat-acp127-message-identifier ID ::= {id-hat 13} id-nato-mmhs-hat-originator-plad ID ::= {id-hat 14} -- the following are per-recipient id-nato-mmhs-hat-acp127-notification-request ID ::= {id-hat 15} id-nato-mmhs-hat-sic-codes ID ::= {id-hat 16} id-nato-mmhs-hat-distribution-extensions ID ::= {id-hat 17} id-nato-mmhs-hat-body-part-information-label ID ::= {id-hat 18} -- This value is deprecated. id-nato-mmhs-hat-security-information-labels ID ::= {id-hat 19} -- This value is deprecated. -- Military Defined special category identifiers id-nato-mmhs-cat ID ::= {id-cat 0} -- This value is deprecated. id-nato-mmhs-cat-atomal ID ::= {id-cat 1} -- This value is deprecated. id-nato-mmhs-cat-cryptosecurity ID ::= {id-cat 2} -- This value is deprecated. id-nato-mmhs-cat-specialhandlingintel ID ::= {id-cat 3} -- This value is deprecated. id-nato-mmhs-cat-ussiopesi ID ::= {id-cat 4} -- This value is deprecated. id-nato-mmhs-cat-eyesonly ID ::= {id-cat 5} -- This value is deprecated. id-nato-mmhs-cat-exclusive ID ::= {id-cat 6} -- This value is deprecated. id-nato-mmhs-cat-information-label ID ::= {id-cat 7} -- This value is deprecated. id-nato-mmhs-informationlabel-atomal ID ::= {id-informationlabel 1} -- This value is deprecated. id-nato-mmhs-informationlabel-cryptosecurity ID ::= {id-informationlabel 2} -- This value is deprecated. id-nato-mmhs-informationlabel-specialhandlingintel ID ::= {id-informationlabel 3} -- This value is deprecated. id-nato-mmhs-informationlabel-ussiopesi ID ::= {id-informationlabel 4} -- This value is deprecated. id-nato-mmhs-informationlabel-eyesonly ID ::= {id-informationlabel 5} -- This value is deprecated. id-nato-mmhs-informationlabel-exclusive ID ::= {id-informationlabel 6} -- This value is deprecated. -- Military Defined Notification Extension id-nato-mmhs-nat-acp127-notification-response ID ::= {id-nat 0} -- Military Message content types (for use by MS only) id-mct-p772 ID ::= {id-mcont 1} END -- of MMHSObjectIdentifiers
ASN.1
wireshark/epan/dissectors/asn1/p772/MMSOtherNotificationTypeExtensions.asn
MMSOtherNotificationTypeExtensions {iso(1) identified-organization(3) nato(26) stanags(0) mmhs(4406) object-identifiers(0) module(0) other-notification-type-extensions(12)} DEFINITIONS IMPLICIT TAGS ::= BEGIN -- Prologue -- Exports Everything IMPORTS -- IPMS information objects IPMS-EXTENSION, ReceiptTimeField --= FROM IPMSInformationObjects {joint-iso-ccitt mhs-motis(6) ipms(1) modules(0) information-objects(2)} -- MMS upper bounds ub-military-bigstring --= FROM MMSUpperBounds {iso(1) identified-organization(3) nato(26) stanags(0) mmhs(4406) object-identifiers(0) module(0) upper-bounds(0)} -- MMS object identifiers id-nato-mmhs-mm-acp127-notification-response --= FROM MMSObjectIdentifiers {iso(1) identified-organization(3) nato(26) stanags(0) mmhs(4406) object-identifiers(0)} -- MMS heading extensions AddressListDesignator --= FROM MMSHeadingExtensions {iso(1) identified-organization(3) nato(26) stanags(0) mmhs(4406) object-identifiers(0) module(0) heading-extensions(6)} -- MMS per recipient specifier extensions Acp127NotificationType --= FROM MMSPerRecipientSpecifierExtensions {iso(1) identified-organization(3) nato(26) stanags(0) mmhs(4406) object-identifiers(0) module(0) per-recipient-specifier-extensions(11)}; --ACP127 notification response --acp127-notification-response IPMS-EXTENSION ::= { -- VALUE Acp127NotificationResponse -- IDENTIFIED BY id-nato-mmhs-mm-acp127-notification-response} Acp127NotificationResponse ::= SET { acp127-notification-type [0] Acp127NotificationType, receipt-time [1] ReceiptTimeField, addressListIndicator [2] AddressListIndicator OPTIONAL, acp127-recipient [3] Acp127Recipient OPTIONAL, acp127-supp-info [4] Acp127SuppInfo OPTIONAL} AddressListIndicator ::= SEQUENCE OF AddressListDesignator Acp127Recipient ::= PrintableString(SIZE (1..ub-military-bigstring)) Acp127SuppInfo ::= PrintableString(SIZE (1..ub-military-bigstring)) END -- of MMS OtherNotificationType extensions
ASN.1
wireshark/epan/dissectors/asn1/p772/MMSPerRecipientSpecifierExtensions.asn
MMSPerRecipientSpecifierExtensions {iso(1) identified-organization(3) nato(26) stanags(0) mmhs(4406) object-identifiers(0) module(0) per-recipient-specifier-extensions(11)} DEFINITIONS IMPLICIT TAGS ::= BEGIN -- Prologue -- Exports Everything IMPORTS -- IPMS information objects IPMS-EXTENSION --= FROM IPMSInformationObjects {joint-iso-ccitt mhs-motis(6) ipms(1) modules(0) information-objects(2)} -- MMS object identifiers id-nato-mmhs-mm-acp127-notification-request --= FROM MMSObjectIdentifiers {iso(1) identified-organization(3) nato(26) stanags(0) mmhs(4406) object-identifiers(0)}; -- ACP127 notification request -- The following definitions are made in order to support -- informing the originator of a message that the subject message -- has reached a gateway to an ACP 127 domain. --acp127-notification-request IPMS-EXTENSION ::= { -- VALUE Acp127NotificationType -- IDENTIFIED BY id-nato-mmhs-mm-acp127-notification-request} Acp127NotificationType ::= BIT STRING { acp127-nn(0), -- negative notification acp127-pn(1), -- positive notification acp127-tn(2)} -- transfer notification END -- of MMS per recipient pecifier extensions
ASN.1
wireshark/epan/dissectors/asn1/p772/MMSUpperBounds.asn
MMSUpperBounds {iso(1) identified-organization(3) nato(26) stanags(0) mmhs(4406) object-identifiers(0) module(0) upper-bounds(0)} DEFINITIONS IMPLICIT TAGS ::= BEGIN -- Prologue -- Exports Everything IMPORTS -- nothing -- ; -- Upper Bounds ub-military-string INTEGER ::= 69 ub-military-number-of-sics INTEGER ::= 8 lb-military-sic INTEGER ::= 3 ub-military-sic INTEGER ::= 8 ub-military-bigstring INTEGER ::= 128 ub-data-size INTEGER ::= 65535 -- size of ACP127DATADATA END -- of MMSUpperBounds
Configuration
wireshark/epan/dissectors/asn1/p772/p772.cnf
# p772.cnf # p772 conformation file #.IMPORT ../p1/p1-exp.cnf #.IMPORT ../p22/p22-exp.cnf #.OMIT_ASSIGNMENT ID MM MN MRN MNRN MON OriginateProbeArgument OriginateProbeResult OriginateMMArgument OriginateMMResult OriginateMRNArgument OriginateMRNResult ReceiveReportArgument ReceiveMMArgument ReceiveMRNArgument ReceiveMNRNArgument ReceiveMONArgument ChangeAutoDiscardArgument ChangeAutoAcknowledgementArgument ChangeAutoForwardingArgument SubscriptionErrorParameter SubscriptionProblem #.NO_EMIT ONLY_VALS InformationObject #.TYPE_RENAME AddressListDesignator/type AddressListType OtherRecipientDesignator/type OtherRecipientType #.FIELD_RENAME AddressListDesignator/type address_list_type MessageType/type message_type_type OtherRecipientDesignator/type other_recipient_type #.PDU PrimaryPrecedence CopyPrecedence MessageType #AddressListDesignator #ExemptedAddress ExtendedAuthorisationInfo DistributionCodes HandlingInstructions MessageInstructions CodressMessage OriginatorReference #OtherRecipientDesignator #PilotInformation Acp127MessageIdentifier OriginatorPlad Acp127NotificationType SecurityInformationLabels #.REGISTER PrimaryPrecedence B "1.3.26.0.4406.0.2.0" "primary-precedence" CopyPrecedence B "1.3.26.0.4406.0.2.1" "copy-precedence" MessageType B "1.3.26.0.4406.0.2.2" "message-type" AddressListDesignatorSeq B "1.3.26.0.4406.0.2.3" "address-list-indicator" ExemptedAddressSeq B "1.3.26.0.4406.0.2.4" "exempted-address" ExtendedAuthorisationInfo B "1.3.26.0.4406.0.2.5" "extended-authorisation-info" DistributionCodes B "1.3.26.0.4406.0.2.6" "distribution-codes" HandlingInstructions B "1.3.26.0.4406.0.2.7" "handling-instructions" MessageInstructions B "1.3.26.0.4406.0.2.8" "message-instructions" CodressMessage B "1.3.26.0.4406.0.2.9" "codress-message" OriginatorReference B "1.3.26.0.4406.0.2.10" "originator-reference" OtherRecipientDesignatorSeq B "1.3.26.0.4406.0.2.11" "other-recipients-indicator" PilotInformationSeq B "1.3.26.0.4406.0.2.12" "pilot-forwarding-info" Acp127MessageIdentifier B "1.3.26.0.4406.0.2.13" "acp127-message-identifier" OriginatorPlad B "1.3.26.0.4406.0.2.14" "originator-plad" Acp127NotificationType B "1.3.26.0.4406.0.2.15" "acp127-notification-request" Acp127NotificationResponse B "1.3.26.0.4406.0.2.16" "acp127-notification-response" SecurityInformationLabels B "1.3.26.0.4406.0.2.17" "information-labels" PriorityLevelQualifier B "1.3.26.0.4406.0.8.0" "priority-level-qualifier" ADatP3Data B id_nato_mmhs_et_adatp3 "adatp3" ADatP3Parameters B id_nato_mmhs_et_adatp3_parameters "adatp3-parameters" CorrectionsData B id_nato_mmhs_et_corrections "corrections" CorrectionsParameters B id_nato_mmhs_et_corrections_parameters "corrections-parameters" ForwardedEncryptedData B id_nato_mmhs_et_forwarded_encrypted "forwarded-encrypted" ForwardedEncryptedParameters B id_nato_mmhs_et_forwarded_encrypted_parameters "forwarded-encrypted-parameters" MMMessageData B id_nato_mmhs_et_mm_message "mm-message" MMMessageParameters B id_nato_mmhs_et_mm_message_parameters "mm-message-parameters" ACP127DataData B id_nato_mmhs_et_mm_acp127data "acp127-data" ACP127DataParameters B id_nato_mmhs_et_mm_acp127data_parameters "acp127-data-parameters" InformationObject B "2.6.1.4.17.1.3.26.0.4406.0.4.1" "id-et-content-p772" #.FN_BODY DistributionExtensionField/dist-value /* XXX: not implemented */ offset = dissect_unknown_ber(actx->pinfo, tvb, offset, tree); #.FN_PARS PrimaryPrecedence VAL_PTR=&precedence #.FN_BODY PrimaryPrecedence int precedence = -1; %(DEFAULT_BODY)s if(precedence != -1) col_append_fstr(actx->pinfo->cinfo, COL_INFO, " (primary=%%s)", val_to_str(precedence, p772_PrimaryPrecedence_vals, "precedence(%%d)")); #.FN_PARS CopyPrecedence VAL_PTR=&precedence #.FN_BODY CopyPrecedence int precedence = -1; %(DEFAULT_BODY)s if(precedence != -1) col_append_fstr(actx->pinfo->cinfo, COL_INFO, " (copy=%%s)", val_to_str(precedence, p772_CopyPrecedence_vals, "precedence(%%d)"));
C
wireshark/epan/dissectors/asn1/p772/packet-p772-template.c
/* packet-p772.c * Routines for STANAG 4406 (X.400 Military Message Extensions) packet dissection * Graeme Lunt 2005 * * Wireshark - Network traffic analyzer * By Gerald Combs <[email protected]> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #include <epan/packet.h> #include <epan/asn1.h> #include "packet-ber.h" #include "packet-x509if.h" #include "packet-p772.h" #include "packet-p1.h" #include "packet-p22.h" #define PNAME "STANAG 4406 Message" #define PSNAME "P772" #define PFNAME "p772" void proto_register_p772(void); void proto_reg_handoff_p772(void); /* Initialize the protocol and registered fields */ static int proto_p772 = -1; #include "packet-p772-val.h" #include "packet-p772-hf.c" /* Initialize the subtree pointers */ static gint ett_p772 = -1; #include "packet-p772-ett.c" #include "packet-p772-fn.c" /* * Dissect STANAG 4406 PDUs inside a PPDU. */ static int dissect_p772(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data _U_) { int offset = 0; proto_item *item=NULL; proto_tree *tree=NULL; asn1_ctx_t asn1_ctx; asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); if (parent_tree) { item = proto_tree_add_item(parent_tree, proto_p772, tvb, 0, -1, ENC_NA); tree = proto_item_add_subtree(item, ett_p772); } col_set_str(pinfo->cinfo, COL_PROTOCOL, "P772"); col_set_str(pinfo->cinfo, COL_INFO, "Military"); dissect_p772_InformationObject(TRUE, tvb, offset, &asn1_ctx , tree, -1); return tvb_captured_length(tvb); } /*--- proto_register_p772 -------------------------------------------*/ void proto_register_p772(void) { /* List of fields */ static hf_register_info hf[] = { #include "packet-p772-hfarr.c" }; /* List of subtrees */ static gint *ett[] = { &ett_p772, #include "packet-p772-ettarr.c" }; /* Register protocol */ proto_p772 = proto_register_protocol(PNAME, PSNAME, PFNAME); register_dissector("p772", dissect_p772, proto_p772); /* Register fields and subtrees */ proto_register_field_array(proto_p772, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); register_ber_syntax_dissector("STANAG 4406", proto_p772, dissect_p772); register_ber_oid_syntax(".p772", NULL, "STANAG 4406"); } /*--- proto_reg_handoff_p772 --- */ void proto_reg_handoff_p772(void) { #include "packet-p772-dis-tab.c" register_ber_oid_dissector("1.3.26.0.4406.0.4.1", dissect_p772, proto_p772, "STANAG 4406"); }
C/C++
wireshark/epan/dissectors/asn1/p772/packet-p772-template.h
/* packet-p772.h * Routines for STANAG 4406 (X.400 Military Message Extensions) packet dissection * Graeme Lunt 2005 * * Wireshark - Network traffic analyzer * By Gerald Combs <[email protected]> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef PACKET_P772_H #define PACKET_P772_H /* #include "packet-p772-exp.h" */ #endif /* PACKET_P772_H */
Text
wireshark/epan/dissectors/asn1/pcap/CMakeLists.txt
# CMakeLists.txt # # Wireshark - Network traffic analyzer # By Gerald Combs <[email protected]> # Copyright 1998 Gerald Combs # # SPDX-License-Identifier: GPL-2.0-or-later # set( PROTOCOL_NAME pcap ) set( PROTO_OPT ) set( EXT_ASN_FILE_LIST ) set( ASN_FILE_LIST PCAP-CommonDataTypes.asn PCAP-Constants.asn PCAP-Containers.asn PCAP-IEs.asn PCAP-PDU-Contents.asn PCAP-PDU-Descriptions.asn ) set( EXTRA_DIST ${ASN_FILE_LIST} packet-${PROTOCOL_NAME}-template.c ${PROTOCOL_NAME}.cnf ) set( SRC_FILES ${EXTRA_DIST} ${EXT_ASN_FILE_LIST} ) set( A2W_FLAGS ) ASN2WRS()
C
wireshark/epan/dissectors/asn1/pcap/packet-pcap-template.c
/* packet-pcap.c * Routines for UTRAN Iupc interface Positioning Calculation Application Part (PCAP) packet dissection * * Copyright 2008, Anders Broman <[email protected]> * * Wireshark - Network traffic analyzer * By Gerald Combs <[email protected]> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later * * Based on the RANAP dissector * * References: ETSI TS 125 453 V17.0.0 (2022-04) */ #include "config.h" #include <epan/packet.h> #include <epan/prefs.h> #include <epan/strutil.h> #include <epan/asn1.h> #include "packet-ber.h" #include "packet-per.h" #include "packet-sccp.h" #ifdef _MSC_VER /* disable: "warning C4146: unary minus operator applied to unsigned type, result still unsigned" */ #pragma warning(disable:4146) #endif #define PNAME "UTRAN Iupc interface Positioning Calculation Application Part (PCAP)" #define PSNAME "PCAP" #define PFNAME "pcap" #define MAX_SSN 254 void proto_register_pcap(void); void proto_reg_handoff_pcap(void); #include "packet-pcap-val.h" static dissector_handle_t pcap_handle = NULL; /* Initialize the protocol and registered fields */ static int proto_pcap = -1; #include "packet-pcap-hf.c" /* Initialize the subtree pointers */ static int ett_pcap = -1; #include "packet-pcap-ett.c" /* Global variables */ static guint32 ProcedureCode; static guint32 ProtocolIE_ID; /*static guint32 ProtocolExtensionID;*/ /* Dissector tables */ static dissector_table_t pcap_ies_dissector_table; static dissector_table_t pcap_ies_p1_dissector_table; static dissector_table_t pcap_ies_p2_dissector_table; static dissector_table_t pcap_extension_dissector_table; static dissector_table_t pcap_proc_imsg_dissector_table; static dissector_table_t pcap_proc_sout_dissector_table; static dissector_table_t pcap_proc_uout_dissector_table; static dissector_table_t pcap_proc_out_dissector_table; static int dissect_ProtocolIEFieldValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *); static int dissect_ProtocolExtensionFieldExtensionValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *); static int dissect_InitiatingMessageValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *); static int dissect_SuccessfulOutcomeValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *); static int dissect_UnsuccessfulOutcomeValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *); static int dissect_OutcomeValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *); #include "packet-pcap-fn.c" static int dissect_ProtocolIEFieldValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_) { return (dissector_try_uint(pcap_ies_dissector_table, ProtocolIE_ID, tvb, pinfo, tree)) ? tvb_captured_length(tvb) : 0; } static int dissect_ProtocolExtensionFieldExtensionValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_) { return (dissector_try_uint(pcap_extension_dissector_table, ProtocolIE_ID, tvb, pinfo, tree)) ? tvb_captured_length(tvb) : 0; } static int dissect_InitiatingMessageValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_) { return (dissector_try_uint(pcap_proc_imsg_dissector_table, ProcedureCode, tvb, pinfo, tree)) ? tvb_captured_length(tvb) : 0; } static int dissect_SuccessfulOutcomeValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_) { return (dissector_try_uint(pcap_proc_sout_dissector_table, ProcedureCode, tvb, pinfo, tree)) ? tvb_captured_length(tvb) : 0; } static int dissect_UnsuccessfulOutcomeValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_) { return (dissector_try_uint(pcap_proc_uout_dissector_table, ProcedureCode, tvb, pinfo, tree)) ? tvb_captured_length(tvb) : 0; } static int dissect_OutcomeValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_) { return (dissector_try_uint(pcap_proc_out_dissector_table, ProcedureCode, tvb, pinfo, tree)) ? tvb_captured_length(tvb) : 0; } static int dissect_pcap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_) { proto_item *pcap_item = NULL; proto_tree *pcap_tree = NULL; /* make entry in the Protocol column on summary display */ col_set_str(pinfo->cinfo, COL_PROTOCOL, "PCAP"); /* create the pcap protocol tree */ pcap_item = proto_tree_add_item(tree, proto_pcap, tvb, 0, -1, ENC_NA); pcap_tree = proto_item_add_subtree(pcap_item, ett_pcap); dissect_PCAP_PDU_PDU(tvb, pinfo, pcap_tree, NULL); return tvb_captured_length(tvb); } /*--- proto_reg_handoff_pcap ---------------------------------------*/ void proto_reg_handoff_pcap(void) { #include "packet-pcap-dis-tab.c" dissector_add_for_decode_as_with_preference("sccp.ssn", pcap_handle); } /*--- proto_register_pcap -------------------------------------------*/ void proto_register_pcap(void) { /* List of fields */ static hf_register_info hf[] = { #include "packet-pcap-hfarr.c" }; /* List of subtrees */ static gint *ett[] = { &ett_pcap, #include "packet-pcap-ettarr.c" }; /* module_t *pcap_module; */ /* Register protocol */ proto_pcap = proto_register_protocol(PNAME, PSNAME, PFNAME); /* Register fields and subtrees */ proto_register_field_array(proto_pcap, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); /* pcap_module = prefs_register_protocol(proto_pcap, NULL); */ /* Register dissector */ pcap_handle = register_dissector("pcap", dissect_pcap, proto_pcap); /* Register dissector tables */ pcap_ies_dissector_table = register_dissector_table("pcap.ies", "PCAP-PROTOCOL-IES", proto_pcap, FT_UINT32, BASE_DEC); pcap_ies_p1_dissector_table = register_dissector_table("pcap.ies.pair.first", "PCAP-PROTOCOL-IES-PAIR FirstValue", proto_pcap, FT_UINT32, BASE_DEC); pcap_ies_p2_dissector_table = register_dissector_table("pcap.ies.pair.second", "PCAP-PROTOCOL-IES-PAIR SecondValue", proto_pcap, FT_UINT32, BASE_DEC); pcap_extension_dissector_table = register_dissector_table("pcap.extension", "PCAP-PROTOCOL-EXTENSION", proto_pcap, FT_UINT32, BASE_DEC); pcap_proc_imsg_dissector_table = register_dissector_table("pcap.proc.imsg", "PCAP-ELEMENTARY-PROCEDURE InitiatingMessage", proto_pcap, FT_UINT32, BASE_DEC); pcap_proc_sout_dissector_table = register_dissector_table("pcap.proc.sout", "PCAP-ELEMENTARY-PROCEDURE SuccessfulOutcome", proto_pcap, FT_UINT32, BASE_DEC); pcap_proc_uout_dissector_table = register_dissector_table("pcap.proc.uout", "PCAP-ELEMENTARY-PROCEDURE UnsuccessfulOutcome", proto_pcap, FT_UINT32, BASE_DEC); pcap_proc_out_dissector_table = register_dissector_table("pcap.proc.out", "PCAP-ELEMENTARY-PROCEDURE Outcome", proto_pcap, FT_UINT32, BASE_DEC); }
ASN.1
wireshark/epan/dissectors/asn1/pcap/PCAP-CommonDataTypes.asn
-- -- 3GPP TS 25.453 V17.0.0 (2022-04) -- --9.3.5 Common Definitions -- ************************************************************** -- -- Common definitions -- -- ************************************************************** PCAP-CommonDataTypes { itu-t (0) identified-organization (4) etsi (0) mobileDomain (0) umts-Access (20) modules (3) pcap(4) version1 (1) pcap-CommonDataTypes (3) } DEFINITIONS AUTOMATIC TAGS ::= BEGIN -- ************************************************************** -- -- Extension constants -- -- ************************************************************** maxPrivateIEs INTEGER ::= 65535 maxProtocolExtensions INTEGER ::= 65535 maxProtocolIEs INTEGER ::= 65535 -- ************************************************************** -- -- Common Data Types -- -- ************************************************************** Criticality ::= ENUMERATED { reject, ignore, notify } Presence ::= ENUMERATED { optional, conditional, mandatory } PrivateIE-ID ::= CHOICE { local INTEGER (0..65535), global OBJECT IDENTIFIER } ProcedureCode ::= INTEGER (0..255) ProtocolIE-ID ::= INTEGER (0..maxProtocolIEs) TransactionID ::= CHOICE { shortTID INTEGER (0..127), longTID INTEGER (0..32767) } TriggeringMessage ::= ENUMERATED { initiating-message, successful-outcome, unsuccessful-outcome, outcome } END
ASN.1
wireshark/epan/dissectors/asn1/pcap/PCAP-Constants.asn
-- -- 3GPP TS 25.453 V17.0.0 (2022-04) -- -- 9.3.6 Constant Definitions -- ************************************************************** -- -- Constant definitions -- -- ************************************************************** PCAP-Constants { itu-t (0) identified-organization (4) etsi (0) mobileDomain (0) umts-Access (20) modules (3) pcap(4) version1 (1) pcap-Constants (4) } DEFINITIONS AUTOMATIC TAGS ::= BEGIN IMPORTS ProcedureCode, ProtocolIE-ID FROM PCAP-CommonDataTypes; -- ************************************************************** -- -- Elementary Procedures -- -- ************************************************************** id-PositionCalculation ProcedureCode ::= 1 id-InformationExchangeInitiation ProcedureCode ::= 2 id-InformationReporting ProcedureCode ::= 3 id-InformationExchangeTermination ProcedureCode ::= 4 id-InformationExchangeFailure ProcedureCode ::= 5 id-ErrorIndication ProcedureCode ::= 6 id-privateMessage ProcedureCode ::= 7 id-PositionParameterModification ProcedureCode ::= 8 id-PositionInitiation ProcedureCode ::= 9 id-PositionActivation ProcedureCode ::= 10 id-Abort ProcedureCode ::= 11 id-PositionPeriodicReport ProcedureCode ::= 12 id-PositionPeriodicResult ProcedureCode ::= 13 id-PositionPeriodicTermination ProcedureCode ::= 14 -- ************************************************************** -- -- Lists -- -- ************************************************************** maxNrOfErrors INTEGER ::= 256 maxSat INTEGER ::= 16 maxSatAlmanac INTEGER ::= 32 maxNrOfLevels INTEGER ::= 256 maxNrOfPoints INTEGER ::= 15 maxNrOfExpInfo INTEGER ::= 32 maxNrOfMeasNCell INTEGER ::= 32 maxNrOfMeasurements INTEGER ::= 16 maxNrOfSets INTEGER ::= 3 maxRateMatching INTEGER ::= 256 maxNrOfTFs INTEGER ::= 32 maxTTI-count INTEGER ::= 4 maxTS-1 INTEGER ::= 13 maxCCTrCH INTEGER ::= 8 maxTF INTEGER ::= 32 maxTFC INTEGER ::= 1024 maxPRACH INTEGER ::= 16 maxTrCH INTEGER ::= 32 maxTGPS INTEGER ::= 6 maxNoOfMeasurements INTEGER ::= 16 maxCellMeas INTEGER ::= 32 maxNrOfEDPCCH-PO-QUANTSTEPs INTEGER ::= 8 -- FFS maxNrOfRefETFCI-PO-QUANTSTEPs INTEGER ::= 8 -- FFS maxNrOfRefETFCIs INTEGER ::= 8 maxSet INTEGER ::= 9 maxGANSSSat INTEGER ::= 64 maxSgnType INTEGER ::= 8 maxGANSS INTEGER ::= 8 maxGANSSSet INTEGER ::= 9 maxGANSSSatAlmanac INTEGER ::= 36 maxGANSSClockMod INTEGER ::= 4 maxGANSS-1 INTEGER ::= 7 maxNrOfIRATMeasurements INTEGER ::= 16 maxReportedGERANCells INTEGER ::= 6 maxIonGridInfo INTEGER ::= 320 maxAddPos INTEGER ::= 8 maxBeacons INTEGER ::= 64 maxBTs INTEGER ::= 32 maxWLANs INTEGER ::= 64 -- ************************************************************** -- -- IEs -- -- ************************************************************** id-Cause ProtocolIE-ID ::= 1 id-CriticalityDiagnostics ProtocolIE-ID ::= 2 id-GPS-UTRAN-TRU ProtocolIE-ID ::= 3 id-InformationExchangeID ProtocolIE-ID ::= 4 id-InformationExchangeObjectType-InfEx-Rprt ProtocolIE-ID ::= 5 id-InformationExchangeObjectType-InfEx-Rqst ProtocolIE-ID ::= 6 id-InformationExchangeObjectType-InfEx-Rsp ProtocolIE-ID ::= 7 id-InformationReportCharacteristics ProtocolIE-ID ::= 8 id-InformationType ProtocolIE-ID ::= 9 id-GPS-MeasuredResultsList ProtocolIE-ID ::= 10 id-MethodType ProtocolIE-ID ::= 11 id-RefPosition-InfEx-Rqst ProtocolIE-ID ::= 12 id-RefPosition-InfEx-Rsp ProtocolIE-ID ::= 13 id-RefPosition-Inf-Rprt ProtocolIE-ID ::= 14 id-RequestedDataValue ProtocolIE-ID ::= 15 id-RequestedDataValueInformation ProtocolIE-ID ::= 16 id-TransactionID ProtocolIE-ID ::= 17 id-UE-PositionEstimate ProtocolIE-ID ::= 18 -- WS extension id-Unknown-19 ProtocolIE-ID ::= 19 id-CellId-MeasuredResultsSets ProtocolIE-ID ::= 20 -- WS extension id-Unknown-21 ProtocolIE-ID ::= 21 id-OTDOA-MeasurementGroup ProtocolIE-ID ::= 22 id-AccuracyFulfilmentIndicator ProtocolIE-ID ::= 23 id-HorizontalAccuracyCode ProtocolIE-ID ::= 24 id-VerticalAccuracyCode ProtocolIE-ID ::= 25 id-UTDOA-Group ProtocolIE-ID ::= 26 -- WS extension id-Unknown-27 ProtocolIE-ID ::= 27 id-RequestType ProtocolIE-ID ::= 28 id-UE-PositioningCapability ProtocolIE-ID ::= 29 id-UC-id ProtocolIE-ID ::= 30 id-ResponseTime ProtocolIE-ID ::= 31 id-PositioningPriority ProtocolIE-ID ::= 32 id-ClientType ProtocolIE-ID ::= 33 id-PositioningMethod ProtocolIE-ID ::= 34 id-UTDOAPositioning ProtocolIE-ID ::= 35 id-GPSPositioning ProtocolIE-ID ::= 36 id-OTDOAAssistanceData ProtocolIE-ID ::= 37 id-Positioning-ResponseTime ProtocolIE-ID ::= 38 id-EnvironmentCharacterisation ProtocolIE-ID ::= 39 id-PositionData ProtocolIE-ID ::= 40 id-IncludeVelocity ProtocolIE-ID ::= 41 id-VelocityEstimate ProtocolIE-ID ::= 42 id-rxTimingDeviation768Info ProtocolIE-ID ::= 43 id-UC-ID-InfEx-Rqst ProtocolIE-ID ::= 44 id-UE-PositionEstimateInfo ProtocolIE-ID ::= 45 id-UTRAN-GPSReferenceTime ProtocolIE-ID ::= 46 id-UTRAN-GPSReferenceTimeResult ProtocolIE-ID ::= 47 id-UTRAN-GPS-DriftRate ProtocolIE-ID ::= 48 id-OTDOA-AddMeasuredResultsInfo ProtocolIE-ID ::= 49 id-GPS-ReferenceLocation ProtocolIE-ID ::= 50 id-OTDOA-MeasuredResultsSets ProtocolIE-ID ::= 51 id-rxTimingDeviation384extInfo ProtocolIE-ID ::= 55 id-ExtendedRoundTripTime ProtocolIE-ID ::= 56 id-PeriodicPosCalcInfo ProtocolIE-ID ::= 57 id-PeriodicLocationInfo ProtocolIE-ID ::= 58 id-AmountOfReporting ProtocolIE-ID ::= 59 id-MeasInstructionsUsed ProtocolIE-ID ::= 60 id-RRCstateChange ProtocolIE-ID ::= 61 id-PeriodicTerminationCause ProtocolIE-ID ::= 62 id-MeasurementValidity ProtocolIE-ID ::= 63 id-roundTripTimeInfoWithType1 ProtocolIE-ID ::= 64 -- WS extension id-Unknown-65 ProtocolIE-ID ::= 65 id-CellIDPositioning ProtocolIE-ID ::= 66 id-AddMeasurementInfo ProtocolIE-ID ::= 67 id-Extended-RNC-ID ProtocolIE-ID ::= 68 id-GANSS-CommonAssistanceData ProtocolIE-ID ::= 69 id-GANSS-GenericAssistanceDataList ProtocolIE-ID ::= 70 id-GANSS-MeasuredResultsList ProtocolIE-ID ::= 71 id-GANSS-UTRAN-TRU ProtocolIE-ID ::= 72 id-GANSSPositioning ProtocolIE-ID ::= 73 id-GANSS-PositioningDataSet ProtocolIE-ID ::= 74 id-GNSS-PositioningMethod ProtocolIE-ID ::= 75 id-NetworkAssistedGANSSSuport ProtocolIE-ID ::= 76 id-TUTRANGANSSMeasurementValueInfo ProtocolIE-ID ::= 77 id-AdditionalGPSAssistDataRequired ProtocolIE-ID ::= 78 id-AdditionalGanssAssistDataRequired ProtocolIE-ID ::= 79 id-angleOfArrivalLCR ProtocolIE-ID ::= 80 id-extendedTimingAdvanceLCR ProtocolIE-ID ::= 81 id-additionalMeasurementInforLCR ProtocolIE-ID ::= 82 id-timingAdvanceLCR-R7 ProtocolIE-ID ::= 83 id-rxTimingDeviationLCR ProtocolIE-ID ::= 84 id-GPSReferenceTimeUncertainty ProtocolIE-ID ::= 85 id-GANSS-AddIonoModelReq ProtocolIE-ID ::= 86 id-GANSS-EarthOrientParaReq ProtocolIE-ID ::= 87 id-GANSS-Additional-Ionospheric-Model ProtocolIE-ID ::= 88 id-GANSS-Earth-Orientation-Parameters ProtocolIE-ID ::= 89 id-GANSS-Additional-Time-Models ProtocolIE-ID ::= 90 id-GANSS-Additional-Navigation-Models ProtocolIE-ID ::= 91 id-GANSS-Additional-UTC-Models ProtocolIE-ID ::= 92 id-GANSS-Auxiliary-Information ProtocolIE-ID ::= 93 id-GANSS-SBAS-ID ProtocolIE-ID ::= 94 id-GANSS-SBAS-IDs ProtocolIE-ID ::= 95 id-GANSS-Signal-IDs ProtocolIE-ID ::= 96 id-supportGANSSNonNativeADchoices ProtocolIE-ID ::= 97 id-PositionDataUEbased ProtocolIE-ID ::= 98 id-ganssCodePhaseAmbiguityExt ProtocolIE-ID ::= 99 id-ganssIntegerCodePhaseExt ProtocolIE-ID ::= 100 id-GANSScarrierPhaseRequested ProtocolIE-ID ::= 101 id-GANSSMultiFreqMeasRequested ProtocolIE-ID ::= 102 id-ganssReq-AddIonosphericModel ProtocolIE-ID ::= 103 id-ganssReq-EarthOrientPara ProtocolIE-ID ::= 104 id-ganssAddNavigationModel-req ProtocolIE-ID ::= 105 id-ganssAddUTCModel-req ProtocolIE-ID ::= 106 id-ganssAuxInfo-req ProtocolIE-ID ::= 107 id-GANSS-AlmanacModelChoice ProtocolIE-ID ::= 108 id-GANSS-alm-keplerianNAVAlmanac ProtocolIE-ID ::= 109 id-GANSS-alm-keplerianReducedAlmanac ProtocolIE-ID ::= 110 id-GANSS-alm-keplerianMidiAlmanac ProtocolIE-ID ::= 111 id-GANSS-alm-keplerianGLONASS ProtocolIE-ID ::= 112 id-GANSS-alm-ecefSBASAlmanac ProtocolIE-ID ::= 113 id-UTRAN-GANSSReferenceTimeResult ProtocolIE-ID ::= 114 id-GANSS-Reference-Time-Only ProtocolIE-ID ::= 115 id-GANSS-AddADchoices ProtocolIE-ID ::= 116 id-OTDOA-ReferenceCellInfo ProtocolIE-ID ::= 117 id-DGNSS-ValidityPeriod ProtocolIE-ID ::= 118 id-AzimuthAndElevationLSB ProtocolIE-ID ::= 119 id-completeAlmanacProvided ProtocolIE-ID ::= 120 id-GPS-Week-Cycle ProtocolIE-ID ::= 121 id-GANSS-Day-Cycle ProtocolIE-ID ::= 122 id-ganss-Delta-T ProtocolIE-ID ::= 123 id-requestedCellIDGERANMeasurements ProtocolIE-ID ::= 124 id-CellId-IRATMeasuredResultsSets ProtocolIE-ID ::= 125 -- WS extension id-Unknown-126 ProtocolIE-ID ::= 126 id-Unknown-127 ProtocolIE-ID ::= 127 id-IMSI ProtocolIE-ID ::= 128 id-IMEI ProtocolIE-ID ::= 129 id-GANSS-alm-keplerianBDSAlmanac ProtocolIE-ID ::= 130 id-BDS-Ionospheric-Grid-Model ProtocolIE-ID ::= 131 id-DBDS-Correction-Information ProtocolIE-ID ::= 132 id-BDSIonosphericGridModel ProtocolIE-ID ::= 133 id-DBDSCorrection ProtocolIE-ID ::= 134 id-Confidence ProtocolIE-ID ::= 135 id-ExtraDopplerInfoExtension ProtocolIE-ID ::= 136 id-GANSS-Confidence ProtocolIE-ID ::= 137 id-GANSS-ExtraDopplerExtension ProtocolIE-ID ::= 138 id-Additional-PositioningDataSet ProtocolIE-ID ::= 139 id-Additional-PositioningMethod ProtocolIE-ID ::= 140 id-AddPos-MeasuredResults ProtocolIE-ID ::= 141 id-AddPosSupport ProtocolIE-ID ::= 142 END
ASN.1
wireshark/epan/dissectors/asn1/pcap/PCAP-Containers.asn
-- -- 3GPP TS 25.453 V17.0.0 (2022-04) -- -- 9.3.7 Container Definitions -- ************************************************************** -- -- Container definitions -- -- ************************************************************** PCAP-Containers { itu-t (0) identified-organization (4) etsi (0) mobileDomain (0) umts-Access (20) modules (3) pcap(4) version1 (1) pcap-Containers (5) } DEFINITIONS AUTOMATIC TAGS ::= BEGIN -- ************************************************************** -- -- IE parameter types from other modules. -- -- ************************************************************** IMPORTS Criticality, Presence, PrivateIE-ID, ProtocolIE-ID, maxPrivateIEs, maxProtocolExtensions, maxProtocolIEs FROM PCAP-CommonDataTypes; -- ************************************************************** -- -- Class Definition for Protocol IEs -- -- ************************************************************** PCAP-PROTOCOL-IES ::= CLASS { &id ProtocolIE-ID UNIQUE, &criticality Criticality, &Value, &presence Presence } WITH SYNTAX { ID &id CRITICALITY &criticality TYPE &Value PRESENCE &presence } -- ************************************************************** -- -- Class Definition for Protocol Extensions -- -- ************************************************************** PCAP-PROTOCOL-EXTENSION ::= CLASS { &id ProtocolIE-ID UNIQUE, &criticality Criticality, &Extension, &presence Presence } WITH SYNTAX { ID &id CRITICALITY &criticality EXTENSION &Extension PRESENCE &presence } -- ************************************************************** -- -- Class Definition for Private IEs -- -- ************************************************************** PCAP-PRIVATE-IES ::= CLASS { &id PrivateIE-ID, &criticality Criticality, &Value, &presence Presence } WITH SYNTAX { ID &id CRITICALITY &criticality TYPE &Value PRESENCE &presence } -- ************************************************************** -- -- Container for Protocol IEs -- -- ************************************************************** ProtocolIE-Container {PCAP-PROTOCOL-IES : IEsSetParam} ::= SEQUENCE (SIZE (0..maxProtocolIEs)) OF ProtocolIE-Field {{IEsSetParam}} ProtocolIE-Single-Container {PCAP-PROTOCOL-IES : IEsSetParam} ::= ProtocolIE-Field {{IEsSetParam}} ProtocolIE-Field {PCAP-PROTOCOL-IES : IEsSetParam} ::= SEQUENCE { id PCAP-PROTOCOL-IES.&id ({IEsSetParam}), criticality PCAP-PROTOCOL-IES.&criticality ({IEsSetParam}{@id}), value PCAP-PROTOCOL-IES.&Value ({IEsSetParam}{@id}) } -- ************************************************************** -- -- Container Lists for Protocol IE Containers -- -- ************************************************************** ProtocolIE-ContainerList {INTEGER : lowerBound, INTEGER : upperBound, PCAP-PROTOCOL-IES : IEsSetParam} ::= SEQUENCE (SIZE (lowerBound..upperBound)) OF ProtocolIE-Container {{IEsSetParam}} -- ************************************************************** -- -- Container for Protocol Extensions -- -- ************************************************************** ProtocolExtensionContainer {PCAP-PROTOCOL-EXTENSION : ExtensionSetParam} ::= SEQUENCE (SIZE (1..maxProtocolExtensions)) OF ProtocolExtensionField {{ExtensionSetParam}} ProtocolExtensionField {PCAP-PROTOCOL-EXTENSION : ExtensionSetParam} ::= SEQUENCE { id PCAP-PROTOCOL-EXTENSION.&id ({ExtensionSetParam}), criticality PCAP-PROTOCOL-EXTENSION.&criticality ({ExtensionSetParam}{@id}), extensionValue PCAP-PROTOCOL-EXTENSION.&Extension ({ExtensionSetParam}{@id}) } -- ************************************************************** -- -- Container for Private IEs -- -- ************************************************************** PrivateIE-Container {PCAP-PRIVATE-IES : IEsSetParam } ::= SEQUENCE (SIZE (1.. maxPrivateIEs)) OF PrivateIE-Field {{IEsSetParam}} PrivateIE-Field {PCAP-PRIVATE-IES : IEsSetParam} ::= SEQUENCE { id PCAP-PRIVATE-IES.&id ({IEsSetParam}), criticality PCAP-PRIVATE-IES.&criticality ({IEsSetParam}{@id}), value PCAP-PRIVATE-IES.&Value ({IEsSetParam}{@id}) } END
ASN.1
wireshark/epan/dissectors/asn1/pcap/PCAP-IEs.asn
-- -- 3GPP TS 25.453 V17.0.0 (2022-04 -- -- 9.3.4 Information Element Definitions -- ************************************************************** -- -- Information Element Definitions -- -- ************************************************************** PCAP-IEs { itu-t (0) identified-organization (4) etsi (0) mobileDomain (0) umts-Access (20) modules (3) pcap(4) version1 (1) pcap-IEs (2) } DEFINITIONS AUTOMATIC TAGS ::= BEGIN IMPORTS maxNrOfErrors, maxSat, maxSatAlmanac, maxNrOfLevels, maxNrOfMeasNCell, maxNrOfMeasurements, maxNrOfPoints, maxNrOfExpInfo, maxNrOfSets, maxRateMatching, maxNrOfTFs, maxTTI-count, maxTS-1, maxCCTrCH, maxTF, maxTFC, maxPRACH, maxTrCH, maxTGPS, maxNoOfMeasurements, maxCellMeas, maxNrOfEDPCCH-PO-QUANTSTEPs, maxNrOfRefETFCI-PO-QUANTSTEPs, maxNrOfRefETFCIs, maxSet, maxGANSS, maxGANSSSat, maxGANSSSet, maxSgnType, maxGANSSSatAlmanac, maxGANSSClockMod, maxGANSS-1, maxNrOfIRATMeasurements, maxReportedGERANCells, maxIonGridInfo, maxAddPos, maxBeacons, maxBTs, maxWLANs, id-UTRAN-GPSReferenceTime, id-UTRAN-GPSReferenceTimeResult, id-GPS-UTRAN-TRU, id-UTRAN-GPS-DriftRate, id-OTDOA-AddMeasuredResultsInfo, id-GPS-ReferenceLocation, id-rxTimingDeviation768Info, id-rxTimingDeviation384extInfo, id-MeasurementValidity, id-ExtendedRoundTripTime, id-roundTripTimeInfoWithType1, id-AddMeasurementInfo, id-Extended-RNC-ID, id-GANSS-CommonAssistanceData, id-GANSS-GenericAssistanceDataList, id-GANSS-PositioningDataSet, id-GNSS-PositioningMethod, id-NetworkAssistedGANSSSuport, id-TUTRANGANSSMeasurementValueInfo, id-angleOfArrivalLCR, id-extendedTimingAdvanceLCR, id-additionalMeasurementInforLCR, id-timingAdvanceLCR-R7, id-rxTimingDeviationLCR, id-GPSReferenceTimeUncertainty, id-GANSS-AddIonoModelReq, id-GANSS-EarthOrientParaReq, id-GANSS-Additional-Ionospheric-Model, id-GANSS-Earth-Orientation-Parameters, id-GANSS-Additional-Time-Models, id-GANSS-Additional-Navigation-Models, id-GANSS-Additional-UTC-Models, id-GANSS-Auxiliary-Information, id-GANSS-SBAS-ID, id-GANSS-SBAS-IDs, id-GANSS-Signal-IDs, id-GANSS-alm-keplerianNAVAlmanac, id-GANSS-alm-keplerianReducedAlmanac, id-GANSS-alm-keplerianMidiAlmanac, id-GANSS-alm-keplerianGLONASS, id-GANSS-alm-ecefSBASAlmanac, id-UTRAN-GANSSReferenceTimeResult, id-GANSS-Reference-Time-Only, id-GANSS-AddADchoices, id-supportGANSSNonNativeADchoices, id-PositionDataUEbased, id-ganssCodePhaseAmbiguityExt, id-ganssIntegerCodePhaseExt, id-GANSScarrierPhaseRequested, id-GANSSMultiFreqMeasRequested, id-ganssReq-AddIonosphericModel, id-ganssReq-EarthOrientPara, id-ganssAddNavigationModel-req, id-ganssAddUTCModel-req, id-ganssAuxInfo-req, id-GANSS-AlmanacModelChoice, id-DGNSS-ValidityPeriod, id-AzimuthAndElevationLSB, id-completeAlmanacProvided, id-GPS-Week-Cycle, id-GANSS-Day-Cycle, id-ganss-Delta-T, id-requestedCellIDGERANMeasurements, id-GANSS-alm-keplerianBDSAlmanac, id-BDS-Ionospheric-Grid-Model, id-DBDS-Correction-Information, id-BDSIonosphericGridModel, id-DBDSCorrection, id-Confidence, id-ExtraDopplerInfoExtension, id-GANSS-Confidence, id-GANSS-ExtraDopplerExtension, id-Additional-PositioningDataSet, id-Additional-PositioningMethod, id-AddPos-MeasuredResults, id-AddPosSupport FROM PCAP-Constants Criticality, ProcedureCode, ProtocolIE-ID, TransactionID, TriggeringMessage FROM PCAP-CommonDataTypes ProtocolExtensionContainer{}, ProtocolIE-Single-Container{}, PCAP-PROTOCOL-EXTENSION, PCAP-PROTOCOL-IES FROM PCAP-Containers; -- ************************************************************** -- -- Accuracy Fulfilment Indicator -- -- ************************************************************** AccuracyFulfilmentIndicator ::= ENUMERATED{ requested-Accuracy-Fulfilled, requested-Accuracy-Not-Fulfilled, ... } -- ************************************************************** -- -- Additional Method Type -- -- ************************************************************** AdditionalMethodType ::= ENUMERATED { ue-assisted, ue-based, ue-based-preferred-but-ue-assisted-allowed, ue-assisted-preferred-but-ue-based-allowed, ... } -- ************************************************************** -- -- Additional Positioning Measured Results -- -- ************************************************************** AddPos-MeasuredResults ::= SEQUENCE (SIZE (1..maxAddPos)) OF AddPos-MeasuredResults-Element AddPos-MeasuredResults-Element ::= SEQUENCE { timestamp UTCTime OPTIONAL, type CHOICE { barometricPressure SEQUENCE { uncompensatedBarometricPressure BaroMeasurement, iE-Extensions ProtocolExtensionContainer { { BarometricPressure-ExtIEs } } OPTIONAL, ... }, wlan SEQUENCE { wlanMeasurementList WLANMeasurementList, iE-Extensions ProtocolExtensionContainer { { WLANMeasurementList-ExtIEs } } OPTIONAL, ... }, bt SEQUENCE { btMeasurementList BTMeasurementList, iE-Extensions ProtocolExtensionContainer { { BTMeasurementList-ExtIEs } } OPTIONAL, ... }, mbs SEQUENCE { mbsMeasurementList MBSMeasurementList, iE-Extensions ProtocolExtensionContainer { { MBSMeasurementList-ExtIEs } } OPTIONAL, ... }, ... }, ... } BarometricPressure-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } WLANMeasurementList-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } BTMeasurementList-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } MBSMeasurementList-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } WLANMeasurementList ::= SEQUENCE (SIZE (1..maxWLANs)) OF WLANMeasurementList-Element WLANMeasurementList-Element ::= SEQUENCE { wlanBSSID OCTET STRING (SIZE (6)), wlanSSID OCTET STRING (SIZE(1..32)) OPTIONAL, wlanRSSI INTEGER(-127..128) OPTIONAL, wlanRTTvalue INTEGER(0..16777215) OPTIONAL, wlanRTTunits ENUMERATED { microseconds,hundredsofnanoseconds, tensofnanoseconds, nanoseconds, tenthsofnanosecond, ...} OPTIONAL, wlanRTTaccuracy INTEGER(0..255) OPTIONAL, wlanAPChannelFrequency INTEGER(0..256) OPTIONAL, wlanServingFlag BOOLEAN OPTIONAL, iE-Extensions ProtocolExtensionContainer { { WLANMeasurementList-Element-ExtIEs } } OPTIONAL, ... } WLANMeasurementList-Element-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } BTMeasurementList ::= SEQUENCE (SIZE (1..maxBTs)) OF BTMeasurementList-Element BTMeasurementList-Element ::= SEQUENCE { btADDR OCTET STRING (SIZE(6)), btRSSI INTEGER(-127..128) OPTIONAL, iE-Extensions ProtocolExtensionContainer { { BTMeasurementList-Element-ExtIEs } } OPTIONAL, ... } BTMeasurementList-Element-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } MBSMeasurementList ::= SEQUENCE (SIZE (1..maxBeacons)) OF MBSMeasurementList-Element MBSMeasurementList-Element ::= SEQUENCE { transmitterID INTEGER(0..32767), codephase INTEGER(0..2097151), codephaseRMS INTEGER(0..63), iE-Extensions ProtocolExtensionContainer { { MBSMeasurementList-Element-ExtIEs } } OPTIONAL, ... } MBSMeasurementList-Element-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } BaroMeasurement ::= INTEGER(30000..115000) -- ************************************************************** -- -- Almanac and Satellite Health SIB -- -- ************************************************************** AlmanacAndSatelliteHealthSIB ::= SEQUENCE { gpsAlmanacAndSatelliteHealth GPS-AlmanacAndSatelliteHealth, satMask BIT STRING (SIZE (1..32)), lsbTOW BIT STRING (SIZE (8)), iE-Extensions ProtocolExtensionContainer { { AlmanacAndSatelliteHealthSIB-ExtIEs } } OPTIONAL, ... } AlmanacAndSatelliteHealthSIB-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } -- ************************************************************** -- -- Cause IE -- -- ************************************************************** Cause ::= CHOICE { radioNetwork CauseRadioNetwork, transport CauseTransport, protocol CauseProtocol, misc CauseMisc, ... } CauseRadioNetwork ::= ENUMERATED { invalid-reference-information, information-temporarily-not-available, information-provision-not-supported-for-the-object, position-calculation-error-invalid-GPS-measured-results, ..., position-calculation-error-invalid-CellID-measured-results, position-calculation-error-invalid-OTDOA-measured-results, position-calculation-error-AGPS-positioning-method-not-supported, position-calculation-error-CellID-positioning-method-not-supported, position-calculation-error-OTDOA-positioning-method-not-supported, initial-UE-position-estimate-missing, position-caclulation-error-invalid-UTDOA-measured-results, position-calculation-error-UTDOA-positioning-method-not-supported, position-calculation-error-UTDOA-not-supported-UTRAN-cell, positioning-method-not-supported, loss-of-contact-with-UE, sAS-unable-to-perform-UTDOA-positioning-within-response-time, location-measurement-failure, ue-positioning-error-Not-enough-OTDOA-cells, ue-positioning-error-Not-enough-GPS-Satellites, ue-positioning-error-Reference-Cell-not-serving-cell, ue-positioning-error-Not-Accomplished-GPS-Timing-of-Cell-Frames, ue-positioning-error-Undefined-Error, position-calculation-error-invalid-Galileo-measured-results, position-calculation-error-AGalileo-positioning-method-not-supported, ue-positioning-error-Not-enough-Galileo-Satellites, ue-positioning-error-Not-Accomplished-Galileo-Timing-of-Cell-Frames, ue-positioning-error-Assistance-Data-missing, position-calculation-error-invalid-GLONASS-measured-results, position-calculation-error-invalid-GANSS-measured-results, position-calculation-error-AGANSS-positioning-method-not-supported, ue-positioning-error-Not-enough-GANSS-Satellites, ue-positioning-error-Not-Accomplished-GANSS-Timing-of-Cell-Frames, position-calculation-error-invalid-BDS-measured-results, ue-Positioning-Error-Not-enough-BDS-Satellites, position-calculation-error-A-BDS-positioning-method-not-supported } CauseTransport ::= ENUMERATED { transport-resource-unavailable, unspecified, ... } CauseProtocol ::= ENUMERATED { transfer-syntax-error, abstract-syntax-error-reject, abstract-syntax-error-ignore-and-notify, message-not-compatible-with-receiver-state, semantic-error, unspecified, abstract-syntax-error-falsely-constructed-message, ... } CauseMisc ::= ENUMERATED { processing-overload, hardware-failure, o-and-m-intervention, unspecified, ... } -- ************************************************************** -- -- Cell Id Measured Results Sets -- -- ************************************************************** CellId-MeasuredResultsSets ::= SEQUENCE (SIZE (1..maxNrOfMeasurements)) OF CellId-MeasuredResultsInfoList CellId-MeasuredResultsInfoList ::= SEQUENCE (SIZE (1..maxNrOfMeasNCell)) OF CellId-MeasuredResultsInfo CellId-MeasuredResultsInfo ::= SEQUENCE { uC-ID UC-ID, uTRANAccessPointPositionAltitude UTRANAccessPointPositionAltitude, ue-PositionEstimate UE-PositionEstimate OPTIONAL, roundTripTimeInfo RoundTripTimeInfo OPTIONAL, -- FDD only rxTimingDeviationInfo RxTimingDeviationInfo OPTIONAL, -- 3.84Mcps TDD only rxTimingDeviationLCRInfo RxTimingDeviationLCRInfo OPTIONAL, -- 1.28Mcps TDD only pathloss Pathloss OPTIONAL, iE-Extensions ProtocolExtensionContainer { { CellId-MeasuredResultsInfo-ExtIEs } } OPTIONAL, ... } CellId-MeasuredResultsInfo-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { { ID id-rxTimingDeviation768Info CRITICALITY reject EXTENSION RxTimingDeviation768Info PRESENCE optional }| -- 7.68Mcps TDD only { ID id-rxTimingDeviation384extInfo CRITICALITY reject EXTENSION RxTimingDeviation384extInfo PRESENCE optional }| -- 3.84Mcps TDD only { ID id-roundTripTimeInfoWithType1 CRITICALITY ignore EXTENSION RoundTripTimeInfoWithType1 PRESENCE optional }| -- FDD only { ID id-AddMeasurementInfo CRITICALITY ignore EXTENSION AddMeasurementInfo PRESENCE optional }| { ID id-angleOfArrivalLCR CRITICALITY ignore EXTENSION AngleOfArrivalLCR PRESENCE optional }, ... } RoundTripTimeInfo ::= SEQUENCE { ue-RxTxTimeDifferenceType2 UE-RxTxTimeDifferenceType2, ue-PositioningMeasQuality UE-PositioningMeasQuality, roundTripTime RoundTripTime, iE-Extensions ProtocolExtensionContainer { { RoundTripTimeInfo-ExtIEs } } OPTIONAL, ... } RoundTripTimeInfo-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { { ID id-ExtendedRoundTripTime CRITICALITY ignore EXTENSION ExtendedRoundTripTime PRESENCE optional }, -- FDD only ... } RoundTripTimeInfoWithType1 ::= SEQUENCE { ue-RxTxTimeDifferenceType1 UE-RxTxTimeDifferenceType1, roundTripTime RoundTripTime, extendedRoundTripTime ExtendedRoundTripTime OPTIONAL, -- FDD only iE-Extensions ProtocolExtensionContainer { { RoundTripTimeInfoWithType1-ExtIEs } } OPTIONAL, ... } RoundTripTimeInfoWithType1-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } UE-RxTxTimeDifferenceType2 ::= INTEGER (0..8191) UE-RxTxTimeDifferenceType1 ::= INTEGER (768..1280) UE-PositioningMeasQuality ::= SEQUENCE { stdResolution BIT STRING (SIZE (2)), numberOfMeasurements BIT STRING (SIZE (3)), stdOfMeasurements BIT STRING (SIZE (5)), iE-Extensions ProtocolExtensionContainer { { UE-PositioningMeasQuality-ExtIEs } } OPTIONAL, ... } UE-PositioningMeasQuality-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } RoundTripTime ::= INTEGER (0..32766) -- Actual value RoundTripTime = IE value * 0.0625 + 876 ExtendedRoundTripTime ::= INTEGER (32767..103041) -- Actual value RoundTripTime = IE value * 0.0625 + 876 UTRANAccessPointPositionAltitude ::= SEQUENCE { geographicalCoordinates GeographicalCoordinates, ga-AltitudeAndDirection GA-AltitudeAndDirection OPTIONAL, iE-Extensions ProtocolExtensionContainer { { UTRANAccessPointPositionAltitude-ExtIEs } } OPTIONAL, ... } UTRANAccessPointPositionAltitude-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } RxTimingDeviationInfo ::= SEQUENCE { rxTimingDeviation RxTimingDeviation, timingAdvance TimingAdvance, iE-Extensions ProtocolExtensionContainer { { RxTimingDeviationInfo-ExtIEs } } OPTIONAL, ... } RxTimingDeviationInfo-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } RxTimingDeviationLCRInfo ::= SEQUENCE { rxTimingDeviationLCR RxTimingDeviationLCR, timingAdvanceLCR TimingAdvanceLCR, -- The content of this IE shall be ignored if the id-extendedTimingAdvanceLCR IE is present. iE-Extensions ProtocolExtensionContainer { { RxTimingDeviationLCRInfo-ExtIEs } } OPTIONAL, ... } RxTimingDeviationLCRInfo-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { { ID id-extendedTimingAdvanceLCR CRITICALITY ignore EXTENSION ExtendedTimingAdvanceLCR PRESENCE optional }, -- 1.28Mcps TDD only ... } ExtendedTimingAdvanceLCR ::= INTEGER (2048..8191) RxTimingDeviation768Info ::= SEQUENCE { rxTimingDeviation768 RxTimingDeviation768, timingAdvance768 TimingAdvance768, iE-Extensions ProtocolExtensionContainer { { RxTimingDeviation768Info-ExtIEs } } OPTIONAL, ... } RxTimingDeviation768Info-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } RxTimingDeviation384extInfo ::= SEQUENCE { rxTimingDeviation384ext RxTimingDeviation384ext, timingAdvance384ext TimingAdvance384ext, iE-Extensions ProtocolExtensionContainer { { RxTimingDeviation384extInfo-ExtIEs } } OPTIONAL, ... } RxTimingDeviation384extInfo-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } AddMeasurementInfo ::= SEQUENCE { cpich-RSCP CPICH-RSCP OPTIONAL, cpich-EcNo CPICH-EcNo OPTIONAL, iE-Extensions ProtocolExtensionContainer { { AddMeasurementInfo-ExtIEs } } OPTIONAL, ... } AddMeasurementInfo-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } AngleOfArrivalLCR ::= SEQUENCE { aOA-LCR AOA-LCR, aOA-LCR-Accuracy-Class AOA-LCR-Accuracy-Class, iE-Extensions ProtocolExtensionContainer { { AngleOfArrivalLCR-ExtIEs } } OPTIONAL, ... } AngleOfArrivalLCR-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } RxTimingDeviation ::= INTEGER (0..8191) RxTimingDeviationLCR ::= INTEGER (0..511) RxTimingDeviation768 ::= INTEGER (0..65535) RxTimingDeviation384ext ::= INTEGER (0..32767) TimingAdvance ::= INTEGER (0..63) TimingAdvanceLCR ::= INTEGER (0..2047) TimingAdvance768 ::= INTEGER (0..511) TimingAdvance384ext ::= INTEGER (0..255) Pathloss ::= INTEGER (46..158) -- Unit: dB; as defined in the Cell measured results IE of TS 25.331 [4] CPICH-EcNo ::= INTEGER (0..49) -- According to CPICH_Ec/No in TS 25.133 [13] CPICH-RSCP ::= INTEGER (-5..91) -- According to CPICH_RSCP in TS 25.133 [13] AOA-LCR ::= INTEGER (0..719)-- According to mapping in TS 25.123 [14] AOA-LCR-Accuracy-Class ::= ENUMERATED { a,b,c,d,e,f,g,h, ...} -- ************************************************************** -- -- Cell Id IRAT Measured Results Sets -- -- ************************************************************** CellId-IRATMeasuredResultsSets ::= SEQUENCE (SIZE (1..maxNrOfIRATMeasurements)) OF CellId-IRATMeasuredResultsInfoList CellId-IRATMeasuredResultsInfoList ::= SEQUENCE { gERAN-MeasuredResultsInfoList GERAN-MeasuredResultsInfoList OPTIONAL, iE-Extenstions ProtocolExtensionContainer { { CellId-IRATMeasuredResultsInfoListExtIEs }} OPTIONAL, ... } CellId-IRATMeasuredResultsInfoListExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GERAN-MeasuredResultsInfoList ::= SEQUENCE (SIZE (1..maxReportedGERANCells)) OF GERAN-MeasuredResultsInfo GERAN-MeasuredResultsInfo ::= SEQUENCE { gERANCellID GERANCellGlobalID OPTIONAL, gERANPhysicalCellID GERANPhysicalCellID, gSM-RSSI GSM-RSSI, iE-Extenstions ProtocolExtensionContainer { { GERAN-MeasuredResultsInfo-ExtIEs }} OPTIONAL, ... } GERAN-MeasuredResultsInfo-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GERANCellGlobalID ::= SEQUENCE { plmn-Identity PLMN-Identity, --As defined in TS 23.003 locationAreaCode BIT STRING (SIZE (16)), cellIdentity BIT STRING (SIZE (16)), iE-Extenstions ProtocolExtensionContainer { { GERANCellGlobalID-ExtIEs }} OPTIONAL, ... } GERANCellGlobalID-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } PLMN-Identity ::= OCTET STRING (SIZE (3)) GSM-RSSI ::= INTEGER (0..63) GERANPhysicalCellID ::= SEQUENCE { bsic GSM-BSIC, arfcn GSM-BCCH-ARFCN } GSM-BSIC ::= SEQUENCE { networkColourCode BIT STRING (SIZE (3)), baseStationColourCode BIT STRING (SIZE (3)) } GSM-BCCH-ARFCN ::= INTEGER (0..1023) -- ************************************************************** -- -- Cell-ID Positioning (Position Activation Request Message) -- -- ************************************************************** CellIDPositioning ::= SEQUENCE { requestedCellIDMeasurements RequestedCellIDMeasurements, iE-Extensions ProtocolExtensionContainer { { CellIDPositioning-ExtIEs } } OPTIONAL, ... } CellIDPositioning-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { { ID id-requestedCellIDGERANMeasurements CRITICALITY reject EXTENSION RequestedCellIDGERANMeasurements PRESENCE optional }, ... } RequestedCellIDMeasurements ::= CHOICE { fdd SEQUENCE { roundTripTimeInfoWanted BOOLEAN, pathlossWanted BOOLEAN, roundTripTimeInfoWithType1Wanted BOOLEAN, cpichRSCPWanted BOOLEAN, cpicEcNoWanted BOOLEAN, iE-Extensions ProtocolExtensionContainer { { RequestedCellIDMeasurementsFDD-ExtIEs } } OPTIONAL, ... }, tdd SEQUENCE { rxTimingDeviationInfoWanted BOOLEAN, pathlossWanted BOOLEAN, rxTimingDeviationLCRInfoWanted BOOLEAN, rxTimingDeviation768InfoWanted BOOLEAN, rxTimingDeviation384extInfoWanted BOOLEAN, angleOfArrivalLCRWanted BOOLEAN, timingAdvanceLCRWanted BOOLEAN, iE-Extensions ProtocolExtensionContainer { { RequestedCellIDMeasurementsTDD-ExtIEs } } OPTIONAL, ... }, ... } RequestedCellIDMeasurementsFDD-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } RequestedCellIDMeasurementsTDD-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } RequestedCellIDGERANMeasurements ::= SEQUENCE { rSSIMeasurementsWanted BOOLEAN, iE-Extensions ProtocolExtensionContainer { { RequestedCellIDGERANMeasurements-ExtIEs} } OPTIONAL, ... } RequestedCellIDGERANMeasurements-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } -- ************************************************************** -- -- Client Type -- -- ************************************************************** ClientType ::= ENUMERATED { emergency-services, value-added-services, plmn-operator-services, lawful-intercept-services, plmn-operator-broadcast-services, plmn-operator-oam, plmn-operator-anonymous-statistics, plmn-operator-target-ms-service-support, ... } -- ************************************************************** -- -- CriticalityDiagnostics -- -- ************************************************************** CriticalityDiagnostics ::= SEQUENCE { procedureCode ProcedureCode OPTIONAL, triggeringMessage TriggeringMessage OPTIONAL, procedureCriticality Criticality OPTIONAL, transactionID TransactionID OPTIONAL, iEsCriticalityDiagnostics CriticalityDiagnostics-IE-List OPTIONAL, iE-Extensions ProtocolExtensionContainer { {CriticalityDiagnostics-ExtIEs} } OPTIONAL, ... } CriticalityDiagnostics-IE-List ::= SEQUENCE (SIZE (1..maxNrOfErrors)) OF SEQUENCE { iECriticality Criticality, iE-ID ProtocolIE-ID, repetitionNumber CriticalityDiagnosticsRepetition OPTIONAL, messageStructure MessageStructure OPTIONAL, typeOfError TypeOfError, iE-Extensions ProtocolExtensionContainer { {CriticalityDiagnostics-IE-List-ExtIEs} } OPTIONAL, ... } CriticalityDiagnostics-IE-List-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } CriticalityDiagnostics-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } CriticalityDiagnosticsRepetition ::= INTEGER (0..255) TypeOfError ::= ENUMERATED { not-understood, missing, ... } -- ************************************************************** -- -- DGPSCorrections -- -- ************************************************************** DGPSCorrections ::= SEQUENCE { gps-TOW-sec INTEGER (0..604799), statusHealth DiffCorrectionStatus, dgps-CorrectionSatInfoList DGPS-CorrectionSatInfoList OPTIONAL, -- not included if satelliteHealth is equal to noData or invalidData iE-Extensions ProtocolExtensionContainer { { DGPSCorrections-ExtIEs } } OPTIONAL, ... } DGPSCorrections-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } DiffCorrectionStatus ::= ENUMERATED { udre-1-0, udre-0-75, udre-0-5, udre-0-3, udre-0-2, udre-0-1, noData, invalidData } DGPS-CorrectionSatInfoList ::= SEQUENCE (SIZE (1..maxSat)) OF DGPS-CorrectionSatInfo DGPS-CorrectionSatInfo ::= SEQUENCE { satID INTEGER (0..63), iode INTEGER (0..255), udre UDRE, prc PRC, rrc RRC, iE-Extensions ProtocolExtensionContainer { { DGPS-CorrectionSatInfo-ExtIEs } } OPTIONAL, ... } DGPS-CorrectionSatInfo-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { {ID id-DGNSS-ValidityPeriod CRITICALITY ignore EXTENSION DGNSS-ValidityPeriod PRESENCE optional}, ... } DGNSS-ValidityPeriod ::= SEQUENCE { udreGrowthRate UDREGrowthRate, udreValidityTime UDREValidityTime, iE-Extensions ProtocolExtensionContainer { { DGNSS-ValidityPeriod-ExtIEs } } OPTIONAL, ... } DGNSS-ValidityPeriod-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } UDRE ::= ENUMERATED { lessThan1, between1-and-4, between4-and-8, over8 } UDREGrowthRate ::= ENUMERATED { growth-1-point-5, growth-2, growth-4, growth-6, growth-8, growth-10, growth-12, growth-16 } UDREValidityTime ::= ENUMERATED { val-20sec, val-40sec, val-80sec, val-160sec, val-320sec, val-640sec, val-1280sec, val-2560sec } PRC ::= INTEGER (-2047..2047) RRC ::= INTEGER (-127..127) -- ************************************************************** -- -- IMEI, IMSI -- -- ************************************************************** -- IMEI IMEI ::= OCTET STRING (SIZE (8)) -- IMSI IMSI ::= OCTET STRING (SIZE (3..8)) -- ************************************************************** -- -- UE-PositionEstimate (i.e., Geographical Area) -- -- ************************************************************** -- UE-PositionEstimate is based on Geographical Area Description in 23.032 UE-PositionEstimate ::= CHOICE { point GA-Point, pointWithUnCertainty GA-PointWithUnCertainty, polygon GA-Polygon, pointWithUncertaintyEllipse GA-PointWithUnCertaintyEllipse, pointWithAltitude GA-PointWithAltitude, pointWithAltitudeAndUncertaintyEllipsoid GA-PointWithAltitudeAndUncertaintyEllipsoid, ellipsoidArc GA-EllipsoidArc, ... } GeographicalCoordinates ::= SEQUENCE { latitudeSign ENUMERATED {north, south}, latitude INTEGER (0..8388607), longitude INTEGER (-8388608..8388607), iE-Extensions ProtocolExtensionContainer { {GeographicalCoordinates-ExtIEs} } OPTIONAL, ... } GeographicalCoordinates-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GA-AltitudeAndDirection ::= SEQUENCE { directionOfAltitude ENUMERATED {height, depth}, altitude INTEGER (0..32767), ... } GA-EllipsoidArc ::= SEQUENCE { geographicalCoordinates GeographicalCoordinates, innerRadius INTEGER (0..65535), uncertaintyRadius INTEGER (0..127), offsetAngle INTEGER (0..179), includedAngle INTEGER (0..179), confidence INTEGER (0..100), iE-Extensions ProtocolExtensionContainer { { GA-EllipsoidArc-ExtIEs} } OPTIONAL, ... } GA-EllipsoidArc-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GA-Point ::= SEQUENCE { geographicalCoordinates GeographicalCoordinates, iE-Extensions ProtocolExtensionContainer { {GA-Point-ExtIEs} } OPTIONAL, ... } GA-Point-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GA-PointWithAltitude ::= SEQUENCE { geographicalCoordinates GeographicalCoordinates, altitudeAndDirection GA-AltitudeAndDirection, iE-Extensions ProtocolExtensionContainer { { GA-PointWithAltitude-ExtIEs} } OPTIONAL, ... } GA-PointWithAltitude-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GA-PointWithAltitudeAndUncertaintyEllipsoid ::= SEQUENCE { geographicalCoordinates GeographicalCoordinates, altitudeAndDirection GA-AltitudeAndDirection, uncertaintyEllipse GA-UncertaintyEllipse, uncertaintyAltitude INTEGER (0..127), confidence INTEGER (0..100), iE-Extensions ProtocolExtensionContainer { { GA-PointWithAltitudeAndUncertaintyEllipsoid-ExtIEs} } OPTIONAL, ... } GA-PointWithAltitudeAndUncertaintyEllipsoid-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GA-PointWithUnCertainty ::=SEQUENCE { geographicalCoordinates GeographicalCoordinates, uncertaintyCode INTEGER (0..127), iE-Extensions ProtocolExtensionContainer { {GA-PointWithUnCertainty-ExtIEs} } OPTIONAL, ...} GA-PointWithUnCertainty-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GA-PointWithUnCertaintyEllipse ::= SEQUENCE { geographicalCoordinates GeographicalCoordinates, uncertaintyEllipse GA-UncertaintyEllipse, confidence INTEGER (0..100), iE-Extensions ProtocolExtensionContainer { { GA-PointWithUnCertaintyEllipse-ExtIEs} } OPTIONAL, ... } GA-PointWithUnCertaintyEllipse-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GA-Polygon ::= SEQUENCE (SIZE (1..maxNrOfPoints)) OF SEQUENCE { geographicalCoordinates GeographicalCoordinates, iE-Extensions ProtocolExtensionContainer { {GA-Polygon-ExtIEs} } OPTIONAL, ... } GA-Polygon-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GA-UncertaintyEllipse ::= SEQUENCE { uncertaintySemi-major INTEGER (0..127), uncertaintySemi-minor INTEGER (0..127), orientationOfMajorAxis INTEGER (0..89), ... } -- ************************************************************** -- -- UE-PositionEstimateInfo -- -- ************************************************************** UE-PositionEstimateInfo ::= SEQUENCE { referenceTimeChoice ReferenceTimeChoice, ue-positionEstimate UE-PositionEstimate, iE-Extensions ProtocolExtensionContainer { { UE-PositionEstimateInfo-ExtIEs } } OPTIONAL, ... } UE-PositionEstimateInfo-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { {ID id-GPSReferenceTimeUncertainty CRITICALITY ignore EXTENSION GPSReferenceTimeUncertainty PRESENCE optional}| {ID id-PositionDataUEbased CRITICALITY ignore EXTENSION PositionDataUEbased PRESENCE optional}, ... } ReferenceTimeChoice ::= CHOICE { utran-GPSReferenceTimeResult UTRAN-GPSReferenceTimeResult, gps-ReferenceTimeOnly INTEGER (0..604799999, ...), cell-Timing Cell-Timing, ... , extension-ReferenceTimeChoice Extension-ReferenceTimeChoice } Extension-ReferenceTimeChoice ::= ProtocolIE-Single-Container {{ Extension-ReferenceTimeChoice-IE }} Extension-ReferenceTimeChoice-IE PCAP-PROTOCOL-IES ::= { { ID id-UTRAN-GANSSReferenceTimeResult CRITICALITY ignore TYPE UTRAN-GANSSReferenceTimeResult PRESENCE mandatory}| { ID id-GANSS-Reference-Time-Only CRITICALITY ignore TYPE GANSS-Reference-Time-Only PRESENCE mandatory} } Cell-Timing ::= SEQUENCE { sfn INTEGER (0..4095), uC-ID UC-ID, iE-Extensions ProtocolExtensionContainer { { Cell-Timing-ExtIEs } } OPTIONAL, ... } Cell-Timing-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GANSS-Reference-Time-Only ::= SEQUENCE { ganssTODmsec INTEGER (0..3599999), ganssTimeID GANSSID OPTIONAL, iE-Extensions ProtocolExtensionContainer { { GANSS-Reference-Time-Only-ExtIEs } } OPTIONAL, ... } GANSS-Reference-Time-Only-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } PositionDataUEbased ::= SEQUENCE { positionData BIT STRING (SIZE(16)), iE-Extensions ProtocolExtensionContainer { { PositionDataUEbased-ExtIEs } } OPTIONAL, ... } PositionDataUEbased-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } -- ************************************************** -- -- Position Data -- -- ************************************************** PositionData ::= SEQUENCE { positioningDataDiscriminator PositioningDataDiscriminator, positioningDataSet PositioningDataSet OPTIONAL, -- This IE shall be present if the PositioningDataDiscriminator IE is set to the value "0000" -- iE-Extensions ProtocolExtensionContainer { {PositionData-ExtIEs} } OPTIONAL, ... } PositionData-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { { ID id-GANSS-PositioningDataSet CRITICALITY ignore EXTENSION GANSS-PositioningDataSet PRESENCE optional}| { ID id-Additional-PositioningDataSet CRITICALITY ignore EXTENSION Additional-PositioningDataSet PRESENCE optional}, ... } GANSS-PositioningDataSet ::= SEQUENCE(SIZE(1..maxGANSSSet)) OF GANSS-PositioningMethodAndUsage GANSS-PositioningMethodAndUsage ::= OCTET STRING (SIZE(1)) PositioningDataDiscriminator ::= BIT STRING (SIZE(4)) PositioningDataSet ::= SEQUENCE(SIZE(1..maxSet)) OF PositioningMethodAndUsage PositioningMethodAndUsage ::= OCTET STRING (SIZE(1)) Additional-PositioningDataSet ::= SEQUENCE(SIZE(1..maxAddPos)) OF Additional-PositioningMethodAndUsage Additional-PositioningMethodAndUsage ::= OCTET STRING (SIZE(1)) -- ************************************************************** -- -- GPS-AcquisitionAssistance: -- -- ************************************************************** GPS-AcquisitionAssistance ::= SEQUENCE { gps-TOW-1msec INTEGER (0..604799999), satelliteInformationList AcquisitionSatInfoList, iE-Extensions ProtocolExtensionContainer { { GPS-AcquisitionAssistance-ExtIEs } } OPTIONAL, ... } GPS-AcquisitionAssistance-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { {ID id-UTRAN-GPSReferenceTime CRITICALITY ignore EXTENSION UTRAN-GPSReferenceTime PRESENCE optional}| {ID id-GPSReferenceTimeUncertainty CRITICALITY ignore EXTENSION GPSReferenceTimeUncertainty PRESENCE optional}| {ID id-Confidence CRITICALITY ignore EXTENSION Confidence PRESENCE optional}, ... } AcquisitionSatInfoList ::= SEQUENCE (SIZE (1..maxSat)) OF AcquisitionSatInfo AcquisitionSatInfo ::= SEQUENCE { satID INTEGER (0..63), doppler0thOrder INTEGER (-2048..2047), extraDopplerInfo ExtraDopplerInfo OPTIONAL, codePhase INTEGER (0..1022), integerCodePhase INTEGER (0..19), gps-BitNumber INTEGER (0..3), codePhaseSearchWindow CodePhaseSearchWindow, azimuthAndElevation AzimuthAndElevation OPTIONAL, iE-Extensions ProtocolExtensionContainer { { AcquisitionSatInfo-ExtIEs } } OPTIONAL, ... } AcquisitionSatInfo-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { {ID id-ExtraDopplerInfoExtension CRITICALITY ignore EXTENSION ExtraDopplerInfoExtension PRESENCE optional}, ... } ExtraDopplerInfo ::= SEQUENCE { doppler1stOrder INTEGER (-42..21), dopplerUncertainty DopplerUncertainty, iE-Extensions ProtocolExtensionContainer { { ExtraDopplerInfo-ExtIEs } } OPTIONAL, ... } ExtraDopplerInfo-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } ExtraDopplerInfoExtension ::= SEQUENCE { doppler1stOrder INTEGER (-42..21), dopplerUncertaintyExtension DopplerUncertaintyExtension, iE-Extensions ProtocolExtensionContainer { { ExtraDopplerInfoExtension-ExtIEs } } OPTIONAL, ... } ExtraDopplerInfoExtension-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } DopplerUncertainty ::= ENUMERATED { hz12-5, hz25, hz50, hz100, hz200, ...} DopplerUncertaintyExtension ::= ENUMERATED { hz300, hz400, hz500, hz600, noInformation, ...} CodePhaseSearchWindow ::= ENUMERATED { w1023, w1, w2, w3, w4, w6, w8, w12, w16, w24, w32, w48, w64, w96, w128, w192 } AzimuthAndElevation ::= SEQUENCE { azimuth INTEGER (0..31), elevation INTEGER (0..7), iE-Extensions ProtocolExtensionContainer { { AzimuthAndElevation-ExtIEs } } OPTIONAL, ... } AzimuthAndElevation-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { {ID id-AzimuthAndElevationLSB CRITICALITY ignore EXTENSION AzimuthAndElevationLSB PRESENCE optional}, ... } AzimuthAndElevationLSB ::= SEQUENCE { azimuthLSB INTEGER (0..15), elevationLSB INTEGER (0..15), iE-Extensions ProtocolExtensionContainer { { AzimuthAndElevationLSB-ExtIEs } } OPTIONAL, ... } AzimuthAndElevationLSB-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } Confidence ::= INTEGER(0..100) -- ************************************************************** -- -- GANSS Elements -- -- ************************************************************** AuxInfoGANSS-ID1 ::= SEQUENCE (SIZE(1.. maxGANSSSat)) OF AuxInfoGANSS-ID1-element AuxInfoGANSS-ID1-element ::= SEQUENCE { svID INTEGER(0..63), signalsAvailable BIT STRING (SIZE(8)), ie-Extensions ProtocolExtensionContainer { { AuxInfoGANSS-ID1-element-ExtIEs } } OPTIONAL, ... } AuxInfoGANSS-ID1-element-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } AuxInfoGANSS-ID3 ::= SEQUENCE (SIZE(1.. maxGANSSSat)) OF AuxInfoGANSS-ID3-element AuxInfoGANSS-ID3-element ::= SEQUENCE { svID INTEGER(0..63), signalsAvailable BIT STRING (SIZE(8)), channelNumber INTEGER (-7..13), ie-Extensions ProtocolExtensionContainer { { AuxInfoGANSS-ID3-element-ExtIEs } } OPTIONAL, ... } AuxInfoGANSS-ID3-element-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } CNAVclockModel ::= SEQUENCE { cnavToc BIT STRING (SIZE (11)), cnavTop BIT STRING (SIZE (11)), cnavURA0 BIT STRING (SIZE (5)), cnavURA1 BIT STRING (SIZE (3)), cnavURA2 BIT STRING (SIZE (3)), cnavAf2 BIT STRING (SIZE (10)), cnavAf1 BIT STRING (SIZE (20)), cnavAf0 BIT STRING (SIZE (26)), cnavTgd BIT STRING (SIZE (13)), cnavISCl1cp BIT STRING (SIZE (13)) OPTIONAL, cnavISCl1cd BIT STRING (SIZE (13)) OPTIONAL, cnavISCl1ca BIT STRING (SIZE (13)) OPTIONAL, cnavISCl2c BIT STRING (SIZE (13)) OPTIONAL, cnavISCl5i5 BIT STRING (SIZE (13)) OPTIONAL, cnavISCl5q5 BIT STRING (SIZE (13)) OPTIONAL, ie-Extensions ProtocolExtensionContainer { { CNAVclockModel-ExtIEs } } OPTIONAL, ... } CNAVclockModel-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } DeltaUT1 ::= SEQUENCE { b1 BIT STRING (SIZE(11)), b2 BIT STRING (SIZE(10)), ie-Extensions ProtocolExtensionContainer { { DeltaUT1-ExtIEs } } OPTIONAL, ... } DeltaUT1-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } DGANSS-Corrections ::= SEQUENCE { dGANSS-ReferenceTime INTEGER(0..119), dGANSS-Information DGANSS-Information, ie-Extensions ProtocolExtensionContainer { { DGANSS-Corrections-ExtIEs } } OPTIONAL, ... } DGANSS-Corrections-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } DGANSS-Information ::= SEQUENCE (SIZE (1..maxSgnType)) OF DGANSS-InformationItem DGANSS-InformationItem ::= SEQUENCE { gANSS-SignalId GANSS-SignalID OPTIONAL, gANSS-StatusHealth GANSS-StatusHealth, -- The following IE shall be present if the Status/Health IE value is not equal to "no data" or "invalid data" dGANSS-SignalInformation DGANSS-SignalInformation OPTIONAL, ie-Extensions ProtocolExtensionContainer { { DGANSS-InformationItem-ExtIEs } } OPTIONAL, ... } DGANSS-InformationItem-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } DGANSS-SignalInformation ::= SEQUENCE (SIZE (1..maxGANSSSat)) OF DGANSS-SignalInformationItem DGANSS-SignalInformationItem ::= SEQUENCE { satId INTEGER(0..63), gANSS-iod BIT STRING (SIZE (10)), udre UDRE, ganss-prc INTEGER(-2047..2047), ganss-rrc INTEGER(-127..127), ie-Extensions ProtocolExtensionContainer { { DGANSS-SignalInformationItem-ExtIEs } } OPTIONAL, ... } DGANSS-SignalInformationItem-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { {ID id-DGNSS-ValidityPeriod CRITICALITY ignore EXTENSION DGNSS-ValidityPeriod PRESENCE optional}, ... } GANSS-AddClockModels ::= CHOICE { navClockModel NAVclockModel, cnavClockModel CNAVclockModel, glonassClockModel GLONASSclockModel, sbasClockModel SBASclockModel, ..., bDSClockModel BDSClockModel } GANSS-AddOrbitModels ::= CHOICE { navKeplerianSet NavModel-NAVKeplerianSet, cnavKeplerianSet NavModel-CNAVKeplerianSet, glonassECEF NavModel-GLONASSecef, sbasECEF NavModel-SBASecef, ..., bDSKeplerianSet NavModel-BDSKeplerianSet } GANSS-Additional-Ionospheric-Model ::= SEQUENCE { dataID BIT STRING (SIZE(2)), alpha-beta-parameters GPS-Ionospheric-Model, ie-Extensions ProtocolExtensionContainer { { GANSS-Additional-Ionospheric-Model-ExtIEs } } OPTIONAL, ... } GANSS-Additional-Ionospheric-Model-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GANSS-Additional-Navigation-Models ::= SEQUENCE { non-broadcastIndication ENUMERATED { true } OPTIONAL, ganssSatInfoNavList Ganss-Sat-Info-AddNavList, ie-Extensions ProtocolExtensionContainer { { GANSS-Additional-Navigation-Models-ExtIEs } } OPTIONAL, ... } GANSS-Additional-Navigation-Models-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GANSS-Additional-Time-Models ::= SEQUENCE (SIZE (1..maxGANSS-1)) OF GANSS-Time-Model GANSS-Additional-UTC-Models ::= CHOICE { utcModel1 UTCmodelSet1, utcModel2 UTCmodelSet2, utcModel3 UTCmodelSet3, ..., utcModel4 UTCmodelSet4 } GANSS-ALM-BDSKeplericanset ::= SEQUENCE { satellite-Information-BDS-KP-List Satellite-Information-BDS-KP-List, ie-Extensions ProtocolExtensionContainer { { GANSS-ALM-BDSKeplericanset-ExtIEs } } OPTIONAL, ... } GANSS-ALM-BDSKeplericanset-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } Satellite-Information-BDS-KP-List ::= SEQUENCE (SIZE (1..maxGANSSSatAlmanac)) OF Satellite-Information-BDS-KP-Item Satellite-Information-BDS-KP-Item ::= SEQUENCE { sVID-BDS INTEGER (0..63), tOA-BDS BIT STRING( SIZE(8) ), a21-BDS BIT STRING( SIZE(24) ), e-BDS BIT STRING( SIZE(17) ), omg-lower-BDS BIT STRING( SIZE(24) ), m0-BDS BIT STRING( SIZE(24) ), omg-0-BDS BIT STRING( SIZE(24) ), omg-upper-BDS BIT STRING( SIZE(17) ), delta-i-BDS BIT STRING( SIZE(16) ), a0-BDS BIT STRING( SIZE(11) ), a1-BDS BIT STRING( SIZE(11) ), -- The following IE is mandatory present if the sVID-BDS is between 0 and 29 and not needed otherwise. hea-BDS BIT STRING( SIZE(9) ) OPTIONAL, ie-Extensions ProtocolExtensionContainer { { Satellite-Information-BDS-KP-Item-ExtIEs } } OPTIONAL, ... } Satellite-Information-BDS-KP-Item-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GANSS-ALM-ECEFsbasAlmanacSet ::= SEQUENCE { sat-info-SBASecefList GANSS-SAT-Info-Almanac-SBASecefList, ie-Extensions ProtocolExtensionContainer { { GANSS-ALM-ECEFsbasAlmanacSet-ExtIEs } } OPTIONAL, ... } GANSS-ALM-ECEFsbasAlmanacSet-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GANSS-ALM-GlonassAlmanacSet ::= SEQUENCE { sat-info-GLOkpList GANSS-SAT-Info-Almanac-GLOkpList, ie-Extensions ProtocolExtensionContainer { { GANSS-ALM-GlonassAlmanacSet-ExtIEs } } OPTIONAL, ... } GANSS-ALM-GlonassAlmanacSet-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GANSS-ALM-MidiAlmanacSet ::= SEQUENCE { t-oa INTEGER (0..255), sat-info-MIDIkpList GANSS-SAT-Info-Almanac-MIDIkpList, ie-Extensions ProtocolExtensionContainer { { GANSS-ALM-MidiAlmanacSet-ExtIEs } } OPTIONAL, ... } GANSS-ALM-MidiAlmanacSet-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GANSS-ALM-NAVKeplerianSet ::= SEQUENCE { t-oa INTEGER (0..255), sat-info-NAVkpList GANSS-SAT-Info-Almanac-NAVkpList, ie-Extensions ProtocolExtensionContainer { { GANSS-ALM-NAVKeplerianSet-ExtIEs } } OPTIONAL, ... } GANSS-ALM-NAVKeplerianSet-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GANSS-ALM-ReducedKeplerianSet ::= SEQUENCE { t-oa INTEGER (0..255), sat-info-REDkpList GANSS-SAT-Info-Almanac-REDkpList, ie-Extensions ProtocolExtensionContainer { { GANSS-ALM-ReducedKeplerianSet-ExtIEs } } OPTIONAL, ... } GANSS-ALM-ReducedKeplerianSet-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GANSS-AlmanacAndSatelliteHealth ::= SEQUENCE { weekNumber INTEGER(0..255), gANSS-AlmanacModel GANSS-AlmanacModel, ie-Extensions ProtocolExtensionContainer { { GANSS-AlmanacAndSatelliteHealth-ExtIEs } } OPTIONAL, ... } GANSS-AlmanacAndSatelliteHealth-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { {ID id-completeAlmanacProvided CRITICALITY ignore EXTENSION CompleteAlmanacProvided PRESENCE optional}, ... } GANSS-AlmanacModel ::= CHOICE { gANSS-keplerianParameters GANSS-KeplerianParametersAlm, ..., extension-GANSS-AlmanacModel Extension-GANSS-AlmanacModel } Extension-GANSS-AlmanacModel ::= ProtocolIE-Single-Container {{ Extension-GANSS-AlmanacModel-IE }} Extension-GANSS-AlmanacModel-IE PCAP-PROTOCOL-IES ::= { { ID id-GANSS-alm-keplerianNAVAlmanac CRITICALITY ignore TYPE GANSS-ALM-NAVKeplerianSet PRESENCE mandatory}| { ID id-GANSS-alm-keplerianReducedAlmanac CRITICALITY ignore TYPE GANSS-ALM-ReducedKeplerianSet PRESENCE mandatory}| { ID id-GANSS-alm-keplerianMidiAlmanac CRITICALITY ignore TYPE GANSS-ALM-MidiAlmanacSet PRESENCE mandatory}| { ID id-GANSS-alm-keplerianGLONASS CRITICALITY ignore TYPE GANSS-ALM-GlonassAlmanacSet PRESENCE mandatory}| { ID id-GANSS-alm-ecefSBASAlmanac CRITICALITY ignore TYPE GANSS-ALM-ECEFsbasAlmanacSet PRESENCE mandatory}| { ID id-GANSS-alm-keplerianBDSAlmanac CRITICALITY ignore TYPE GANSS-ALM-BDSKeplericanset PRESENCE mandatory} } GANSS-Auxiliary-Information ::= CHOICE { ganssID1 AuxInfoGANSS-ID1, -- This choice may only be present if GANSS ID indicates Modernized GPS ganssID3 AuxInfoGANSS-ID3, -- This choice may only be present if GANSS ID indicates GLONASS ... } GANSS-AzimuthAndElevation ::= SEQUENCE { azimuth INTEGER(0..31), -- applicable range of elevation is 0..7. Values 8-75 shall not be used. elevation INTEGER(0..75), ie-Extensions ProtocolExtensionContainer { { GANSS-AzimuthAndElevation-ExtIEs } } OPTIONAL, ... } GANSS-AzimuthAndElevation-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { {ID id-AzimuthAndElevationLSB CRITICALITY ignore EXTENSION AzimuthAndElevationLSB PRESENCE optional}, ... } GANSS-Clock-Model ::= SEQUENCE (SIZE (1..maxGANSSClockMod)) OF GANSS-SatelliteClockModelItem GANSS-CommonAssistanceData ::= SEQUENCE { ganss-Reference-Time GANSS-Reference-Time OPTIONAL, ganss-Ionospheric-Model GANSS-Ionospheric-Model OPTIONAL, ganss-Reference-Location GANSS-Reference-Location OPTIONAL, ie-Extensions ProtocolExtensionContainer { { GANSS-CommonAssistanceData-ExtIEs } } OPTIONAL, ... } GANSS-CommonAssistanceData-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { { ID id-GANSS-Additional-Ionospheric-Model CRITICALITY ignore EXTENSION GANSS-Additional-Ionospheric-Model PRESENCE optional }| { ID id-GANSS-Earth-Orientation-Parameters CRITICALITY ignore EXTENSION GANSS-Earth-Orientation-Parameters PRESENCE optional }, ... } GANSS-Data-Bit-Assistance ::= SEQUENCE { ganssTod INTEGER (0..59,...), dataBitAssistancelist GANSS-DataBitAssistanceList, ie-Extensions ProtocolExtensionContainer { { GANSS-Data-Bit-Assistance-ExtIEs } } OPTIONAL, ... } GANSS-Data-Bit-Assistance-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GANSS-DataBitAssistanceList ::= SEQUENCE (SIZE (1..maxGANSSSat)) OF GANSS-DataBitAssistanceItem GANSS-DataBitAssistanceItem ::= SEQUENCE { satId INTEGER(0..63), dataBitAssistanceSgnList GANSS-DataBitAssistanceSgnList, ie-Extensions ProtocolExtensionContainer { { GANSS-DataBitAssistanceItem-ExtIEs } } OPTIONAL, ... } GANSS-DataBitAssistanceItem-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GANSS-DataBitAssistanceSgnList ::= SEQUENCE (SIZE (1..maxSgnType)) OF GANSS-DataBitAssistanceSgnItem GANSS-DataBitAssistanceSgnItem ::= SEQUENCE { ganss-SignalId GANSS-SignalID, ganssDataBits BIT STRING (SIZE (1..1024)), ie-Extensions ProtocolExtensionContainer { { GANSS-DataBitAssistanceSgnItem-ExtIEs } } OPTIONAL, ... } GANSS-DataBitAssistanceSgnItem-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GANSS-Earth-Orientation-Parameters ::= SEQUENCE { teop BIT STRING (SIZE (16)), pmX BIT STRING (SIZE (21)), pmXdot BIT STRING (SIZE (15)), pmY BIT STRING (SIZE (21)), pmYdot BIT STRING (SIZE (15)), deltaUT1 BIT STRING (SIZE (31)), deltaUT1dot BIT STRING (SIZE (19)), ie-Extensions ProtocolExtensionContainer { { GANSS-Earth-Orientation-Parameters-ExtIEs } } OPTIONAL, ... } GANSS-Earth-Orientation-Parameters-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GANSS-ExtraDoppler ::= SEQUENCE { dopplerFirstOrder INTEGER(-42..21), dopplerUncertainty ENUMERATED{dH40,dH20,dH10,dH5,dH2-5}, ie-Extensions ProtocolExtensionContainer { { GANSS-ExtraDoppler-ExtIEs } } OPTIONAL, ... } GANSS-ExtraDoppler-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GANSS-ExtraDopplerExtension ::= SEQUENCE { dopplerFirstOrder INTEGER(-42..21), dopplerUncertaintyExtension ENUMERATED{dH60,dH80,dH100,dH120,noInformation}, ie-Extensions ProtocolExtensionContainer { { GANSS-ExtraDopplerExtension-ExtIEs } } OPTIONAL, ... } GANSS-ExtraDopplerExtension-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GANSS-GenericAssistanceDataList ::= SEQUENCE (SIZE (1..maxGANSS)) OF GANSSGenericAssistanceData GANSSGenericAssistanceData ::= SEQUENCE{ ganssId GANSSID OPTIONAL, ganss-Real-Time-Integrity GANSS-Real-Time-Integrity OPTIONAL, ganss-DataBitAssistance GANSS-Data-Bit-Assistance OPTIONAL, dganss-Corrections DGANSS-Corrections OPTIONAL, ganss-AlmanacAndSatelliteHealth GANSS-AlmanacAndSatelliteHealth OPTIONAL, ganss-ReferenceMeasurementInfo GANSS-ReferenceMeasurementInfo OPTIONAL, ganss-UTC-Model GANSS-UTC-Model OPTIONAL, ganss-Time-Model GANSS-Time-Model OPTIONAL, ganss-Navigation-Model GANSS-Navigation-Model OPTIONAL, ie-Extensions ProtocolExtensionContainer { { GANSSGenericAssistance-ExtIEs } } OPTIONAL, ... } GANSSGenericAssistance-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { { ID id-GANSS-Additional-Time-Models CRITICALITY ignore EXTENSION GANSS-Additional-Time-Models PRESENCE optional }| { ID id-GANSS-Additional-Navigation-Models CRITICALITY ignore EXTENSION GANSS-Additional-Navigation-Models PRESENCE optional }| { ID id-GANSS-Additional-UTC-Models CRITICALITY ignore EXTENSION GANSS-Additional-UTC-Models PRESENCE optional }| { ID id-GANSS-Auxiliary-Information CRITICALITY ignore EXTENSION GANSS-Auxiliary-Information PRESENCE optional }| -- the following IE shall be present if ‘GANSSID’ in ‘GANSSGenericAssistanceData’ is ‘0’ (SBAS) { ID id-GANSS-SBAS-ID CRITICALITY ignore EXTENSION GANSS-SBAS-ID PRESENCE optional }| { ID id-BDS-Ionospheric-Grid-Model CRITICALITY ignore EXTENSION BDS-Ionospheric-Grid-Model PRESENCE optional }| { ID id-DBDS-Correction-Information CRITICALITY ignore EXTENSION DBDS-Correction-Information PRESENCE optional }, ... } BDS-Ionospheric-Grid-Model ::= SEQUENCE { bDS-Reference-Time BDS-Reference-Time, bDS-Ionospheric-Grid-Information BDS-Ionospheric-Grid-Information, ie-Extensions ProtocolExtensionContainer { { BDS-Ionospheric-Grid-Model-ExtIEs } } OPTIONAL, ... } BDS-Ionospheric-Grid-Model-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } BDS-Reference-Time ::= INTEGER(0..3570) -- by step of 30 BDS-Ionospheric-Grid-Information ::= SEQUENCE(SIZE(1.. maxIonGridInfo)) OF SEQUENCE { iGP-number-BDS INTEGER (1..320), vertical-Delay-BDS BIT STRING ( SIZE(9)), gIVEI-BDS BIT STRING ( SIZE(4)), ie-Extensions ProtocolExtensionContainer { { BDS-Ionospheric-Grid-Information-ExtIEs } } OPTIONAL, ... } BDS-Ionospheric-Grid-Information-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } DBDS-Correction-Information ::= SEQUENCE { bDS-Reference-Time BDS-Reference-Time, dBDS-Information DBDS-Information, ie-Extensions ProtocolExtensionContainer { { DBDS-Correction-Information-ExtIEs } } OPTIONAL, ... } DBDS-Correction-Information-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } DBDS-Information ::= SEQUENCE(SIZE(1..maxSgnType)) OF SEQUENCE { dBDS-Signal-ID GANSSID OPTIONAL, dGANSS-Signal-Information DGANSS-Signal-Information, ie-Extensions ProtocolExtensionContainer { { DBDS-Information-ExtIEs } } OPTIONAL, ... } DBDS-Information-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } DGANSS-Signal-Information ::= SEQUENCE(SIZE(1.. maxGANSSSat)) OF SEQUENCE { sat-ID-BDS INTEGER(0..63), uDREI-BDS INTEGER(0..15), rURAI-BDS INTEGER(0..15), delta-t-BDS BIT STRING (SIZE (13)), ie-Extensions ProtocolExtensionContainer { { DGANSS-Signal-Information-ExtIEs } } OPTIONAL, ... } DGANSS-Signal-Information-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GANSS-GenericMeasurementInfo ::= SEQUENCE(SIZE(1..maxGANSS)) OF SEQUENCE { ganssId GANSSID OPTIONAL, ganssMeasurementSignalList GANSSMeasurementSignalList, ie-Extensions ProtocolExtensionContainer { { GANSS-GenericMeasurementInfo-ExtIEs } } OPTIONAL, ... } GANSS-GenericMeasurementInfo-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GANSSID ::= SEQUENCE { ganss-ID INTEGER(0..7), ie-Extensions ProtocolExtensionContainer { { GANSSID-ExtIEs } } OPTIONAL, ... } GANSSID-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GANSSMeasurementSignalList ::= SEQUENCE (SIZE (1..maxSgnType)) OF SEQUENCE { ganssSignalId GANSS-SignalID OPTIONAL, ganssCodePhaseAmbiguity INTEGER (0..31) OPTIONAL, ganssMeasurementParameters GANSS-MeasurementParameters, ie-Extensions ProtocolExtensionContainer { { GANSSMeasurementSignalList-ExtIEs } } OPTIONAL, ... } GANSSMeasurementSignalList-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { {ID id-ganssCodePhaseAmbiguityExt CRITICALITY ignore EXTENSION GanssCodePhaseAmbiguityExt PRESENCE optional}, ... } GanssCodePhaseAmbiguityExt ::= SEQUENCE { ganssCodePhaseAmbiguity-ext INTEGER (32..127), ie-Extensions ProtocolExtensionContainer { { GanssCodePhaseAmbiguityExt-ExtIEs } } OPTIONAL, ... } GanssCodePhaseAmbiguityExt-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GANSS-Ionospheric-Model ::= SEQUENCE { alpha-zero-ionos BIT STRING (SIZE (11)), alpha-one-ionos BIT STRING (SIZE (11)), alpha-two-ionos BIT STRING (SIZE (14)), gANSS-IonosphereRegionalStormFlags GANSS-IonosphereRegionalStormFlags OPTIONAL, ie-Extensions ProtocolExtensionContainer { { GANSS-Ionospheric-Model-ExtIEs } } OPTIONAL, ... } GANSS-Ionospheric-Model-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GANSS-IonosphereRegionalStormFlags ::= SEQUENCE { storm-flag-one BOOLEAN, storm-flag-two BOOLEAN, storm-flag-three BOOLEAN, storm-flag-four BOOLEAN, storm-flag-five BOOLEAN, ie-Extensions ProtocolExtensionContainer { { GANSS-IonosphereRegionalStormFlags-ExtIEs } } OPTIONAL, ... } GANSS-IonosphereRegionalStormFlags-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GANSS-KeplerianParametersAlm ::= SEQUENCE { t-oa INTEGER(0..1023), iod-a INTEGER(0..15), gANSS-SatelliteInformationKP GANSS-SatelliteInformationKP, ie-Extensions ProtocolExtensionContainer { { GANSS-KeplerianParametersAlm-ExtIEs } } OPTIONAL, ... } GANSS-KeplerianParametersAlm-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GANSS-KeplerianParametersOrb ::= SEQUENCE { toe-nav BIT STRING (SIZE (14)), ganss-omega-nav BIT STRING (SIZE (32)), delta-n-nav BIT STRING (SIZE (16)), m-zero-nav BIT STRING (SIZE (32)), omegadot-nav BIT STRING (SIZE (24)), ganss-e-nav BIT STRING (SIZE (32)), idot-nav BIT STRING (SIZE (14)), a-sqrt-nav BIT STRING (SIZE (32)), i-zero-nav BIT STRING (SIZE (32)), omega-zero-nav BIT STRING (SIZE (32)), c-rs-nav BIT STRING (SIZE (16)), c-is-nav BIT STRING (SIZE (16)), c-us-nav BIT STRING (SIZE (16)), c-rc-nav BIT STRING (SIZE (16)), c-ic-nav BIT STRING (SIZE (16)), c-uc-nav BIT STRING (SIZE (16)), ie-Extensions ProtocolExtensionContainer { { GANSS-KeplerianParametersOrb-ExtIEs } } OPTIONAL, ... } GANSS-KeplerianParametersOrb-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GANSS-MeasurementParameters ::= SEQUENCE(SIZE(1..maxGANSSSat)) OF GANSS-MeasurementParametersItem GANSS-MeasurementParametersItem ::= SEQUENCE { satId INTEGER(0..63), cToNzero INTEGER(0..63), multipathIndicator ENUMERATED{nM,low,medium,high}, carrierQualityIndication BIT STRING(SIZE(2)) OPTIONAL, ganssCodePhase INTEGER(0..2097151), ganssIntegerCodePhase INTEGER(0..63) OPTIONAL, codePhaseRmsError INTEGER(0..63), doppler INTEGER(-32768..32767), adr INTEGER(0..33554431) OPTIONAL, ie-Extensions ProtocolExtensionContainer { { GANSS-MeasurementParametersItem-ExtIEs } } OPTIONAL, ... } GANSS-MeasurementParametersItem-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { {ID id-ganssIntegerCodePhaseExt CRITICALITY ignore EXTENSION GanssIntegerCodePhaseExt PRESENCE optional}, ... } GanssIntegerCodePhaseExt ::= SEQUENCE { ganssIntegerCodePhase-ext INTEGER (64..127), ie-Extensions ProtocolExtensionContainer { { GanssIntegerCodePhaseExt-ExtIEs } } OPTIONAL, ... } GanssIntegerCodePhaseExt-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GANSS-MeasuredResultsList ::= SEQUENCE (SIZE (1..maxNrOfSets)) OF GANSS-MeasuredResults GANSS-MeasuredResults ::= SEQUENCE { referenceTime CHOICE { utranReferenceTime UTRAN-GANSSReferenceTimeUL, ganssReferenceTimeOnly GANSS-ReferenceTimeOnly, ... }, ganssGenericMeasurementInfo GANSS-GenericMeasurementInfo, ie-Extensions ProtocolExtensionContainer { { GANSS-MeasuredResults-ExtIEs } } OPTIONAL, ... } GANSS-MeasuredResults-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GANSS-Navigation-Model ::= SEQUENCE { non-broadcastIndication ENUMERATED{true} OPTIONAL, ganssSatInfoNav GANSS-Sat-Info-Nav, ie-Extensions ProtocolExtensionContainer { { GANSS-Navigation-Model-ExtIEs } } OPTIONAL, ... } GANSS-Navigation-Model-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GANSS-Orbit-Model ::= CHOICE { gANSS-keplerianParameters GANSS-KeplerianParametersOrb, ... } GANSS-Real-Time-Integrity ::= SEQUENCE (SIZE (1..maxGANSSSat)) OF GANSS-RealTimeInformationItem GANSS-RealTimeInformationItem ::= SEQUENCE { bad-ganss-satId INTEGER(0..63), bad-ganss-signalId BIT STRING(SIZE(8)) OPTIONAL, ie-Extensions ProtocolExtensionContainer { { GANSS-RealTimeInformationItem-ExtIEs } } OPTIONAL, ... } GANSS-RealTimeInformationItem-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GANSS-Reference-Location ::= SEQUENCE { ue-PositionEstimate UE-PositionEstimate, iE-Extensions ProtocolExtensionContainer { { GANSS-Reference-Location-ExtIEs } } OPTIONAL, ... } GANSS-Reference-Location-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GANSS-ReferenceMeasurementInfo ::= SEQUENCE { ganssSignalId GANSS-SignalID OPTIONAL, satelliteInformation GANSS-SatelliteInformation, ie-Extensions ProtocolExtensionContainer { { GANSS-ReferenceMeasurementInfo-ExtIEs } } OPTIONAL, ... } GANSS-ReferenceMeasurementInfo-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { {ID id-GANSS-Confidence CRITICALITY ignore EXTENSION Confidence PRESENCE optional}, ... } GANSS-Reference-Time ::= SEQUENCE { ganssDay INTEGER(0..8191) OPTIONAL, ganssTod INTEGER(0..86399), ganssTodUncertainty INTEGER(0..127) OPTIONAL, ganssTimeId GANSSID OPTIONAL, utran-ganssreferenceTime UTRAN-GANSSReferenceTimeDL OPTIONAL, tutran-ganss-driftRate TUTRAN-GANSS-DriftRate OPTIONAL, ie-Extensions ProtocolExtensionContainer { { GANSS-Reference-Time-ExtIEs } } OPTIONAL, ... } GANSS-Reference-Time-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { {ID id-GANSS-Day-Cycle CRITICALITY ignore EXTENSION GANSS-Day-Cycle PRESENCE optional}, ... } GANSS-Day-Cycle ::= INTEGER(0..7) GANSS-ReferenceTimeOnly ::= SEQUENCE { gANSS-tod INTEGER(0..3599999), gANSS-timeId GANSSID OPTIONAL, gANSS-TimeUncertainty INTEGER(0..127) OPTIONAL, ie-Extensions ProtocolExtensionContainer { { GANSS-ReferenceTimeOnly-ExtIEs } } OPTIONAL, ... } GANSS-ReferenceTimeOnly-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GANSS-SatelliteClockModelItem ::= SEQUENCE { t-oc BIT STRING (SIZE(14)), a-i2 BIT STRING (SIZE(6)), a-i1 BIT STRING (SIZE(21)), a-i0 BIT STRING (SIZE(31)), t-gd BIT STRING (SIZE(10)) OPTIONAL, sisa BIT STRING (SIZE(8)), model-id INTEGER(0..3) OPTIONAL, ie-Extensions ProtocolExtensionContainer { { GANSS-SatelliteClockModelItem-ExtIEs } } OPTIONAL, ... } GANSS-SatelliteClockModelItem-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GANSS-SatelliteInformation ::= SEQUENCE(SIZE(1..maxGANSSSat)) OF GANSS-SatelliteInformationItem GANSS-SatelliteInformationItem ::= SEQUENCE { ganssSatId INTEGER(0..63), dopplerZeroOrder INTEGER(-2048..2047), extraDoppler GANSS-ExtraDoppler OPTIONAL, codePhase INTEGER(0..1023), integerCodePhase INTEGER(0..127), codePhaseSearchWindow INTEGER(0..31), azimuthAndElevation GANSS-AzimuthAndElevation OPTIONAL, ie-Extensions ProtocolExtensionContainer { { GANSS-SatelliteInformationItem-ExtIEs } } OPTIONAL, ... } GANSS-SatelliteInformationItem-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { {ID id-GANSS-ExtraDopplerExtension CRITICALITY ignore EXTENSION GANSS-ExtraDopplerExtension PRESENCE optional}, ... } GANSS-SatelliteInformationKP ::= SEQUENCE (SIZE (1..maxGANSSSatAlmanac)) OF GANSS-SatelliteInformationKPItem GANSS-SatelliteInformationKPItem ::= SEQUENCE { satId INTEGER(0..63), ganss-e-alm BIT STRING (SIZE (11)), ganss-delta-I-alm BIT STRING (SIZE (11)), ganss-omegadot-alm BIT STRING (SIZE (11)), ganss-svStatusINAV-alm BIT STRING (SIZE (4)), ganss-svStatusFNAV-alm BIT STRING (SIZE (2)) OPTIONAL, ganss-delta-a-sqrt-alm BIT STRING (SIZE (13)), ganss-omegazero-alm BIT STRING (SIZE (16)), ganss-m-zero-alm BIT STRING (SIZE (16)), ganss-omega-alm BIT STRING (SIZE (16)), ganss-af-zero-alm BIT STRING (SIZE (16)), ganss-af-one-alm BIT STRING (SIZE (13)), ie-Extensions ProtocolExtensionContainer { { GANSS-SatelliteInformationKPItem-ExtIEs } } OPTIONAL, ... } GANSS-SatelliteInformationKPItem-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GANSS-SAT-Info-Almanac-GLOkpList ::= SEQUENCE (SIZE (1.. maxGANSSSatAlmanac)) OF GANSS-SAT-Info-Almanac-GLOkp GANSS-SAT-Info-Almanac-GLOkp ::= SEQUENCE { gloAlmNA BIT STRING (SIZE(11)), gloAlmnA BIT STRING (SIZE(5)), gloAlmHA BIT STRING (SIZE(5)), gloAlmLambdaA BIT STRING (SIZE(21)), gloAlmTlambdaA BIT STRING (SIZE(21)), gloAlmDeltaIA BIT STRING (SIZE(18)), gloAkmDeltaTA BIT STRING (SIZE(22)), gloAlmDeltaTdotA BIT STRING (SIZE(7)), gloAlmEpsilonA BIT STRING (SIZE(15)), gloAlmOmegaA BIT STRING (SIZE(16)), gloAlmTauA BIT STRING (SIZE(10)), gloAlmCA BIT STRING (SIZE(1)), gloAlmMA BIT STRING (SIZE(2)) OPTIONAL, ie-Extensions ProtocolExtensionContainer { { GANSS-SAT-Info-Almanac-GLOkp-ExtIEs } } OPTIONAL, ... } GANSS-SAT-Info-Almanac-GLOkp-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GANSS-SAT-Info-Almanac-MIDIkpList ::= SEQUENCE (SIZE (1.. maxGANSSSatAlmanac)) OF GANSS-SAT-Info-Almanac-MIDIkp GANSS-SAT-Info-Almanac-MIDIkp ::= SEQUENCE { svID INTEGER(0..63), midiAlmE BIT STRING (SIZE (11)), midiAlmDeltaI BIT STRING (SIZE (11)), midiAlmOmegaDot BIT STRING (SIZE (11)), midiAlmSqrtA BIT STRING (SIZE (17)), midiAlmOmega0 BIT STRING (SIZE (16)), midiAlmOmega BIT STRING (SIZE (16)), midiAlmMo BIT STRING (SIZE (16)), midiAlmaf0 BIT STRING (SIZE (11)), midiAlmaf1 BIT STRING (SIZE (10)), midiAlmL1Health BIT STRING (SIZE (1)), midiAlmL2Health BIT STRING (SIZE (1)), midiAlmL5Health BIT STRING (SIZE (1)), ie-Extensions ProtocolExtensionContainer { { GANSS-SAT-Info-Almanac-MIDIkp-ExtIEs } } OPTIONAL, ... } GANSS-SAT-Info-Almanac-MIDIkp-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GANSS-SAT-Info-Almanac-NAVkpList ::= SEQUENCE (SIZE (1.. maxGANSSSatAlmanac)) OF GANSS-SAT-Info-Almanac-NAVkp GANSS-SAT-Info-Almanac-NAVkp ::= SEQUENCE { svID INTEGER(0..63), navAlmE BIT STRING (SIZE (16)), navAlmDeltaI BIT STRING (SIZE (16)), navAlmOMEGADOT BIT STRING (SIZE (16)), navAlmSVHealth BIT STRING (SIZE (8)), navAlmSqrtA BIT STRING (SIZE (24)), navAlmOMEGAo BIT STRING (SIZE (24)), navAlmOmega BIT STRING (SIZE (24)), navAlmMo BIT STRING (SIZE (24)), navAlmaf0 BIT STRING (SIZE (11)), navAlmaf1 BIT STRING (SIZE (11)), ie-Extensions ProtocolExtensionContainer { { GANSS-SAT-Info-Almanac-NAVkp-ExtIEs } } OPTIONAL, ... } GANSS-SAT-Info-Almanac-NAVkp-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GANSS-SAT-Info-Almanac-REDkpList ::= SEQUENCE (SIZE (1.. maxGANSSSatAlmanac)) OF GANSS-SAT-Info-Almanac-REDkp GANSS-SAT-Info-Almanac-REDkp ::= SEQUENCE { svID INTEGER(0..63), redAlmDeltaA BIT STRING (SIZE (8)), redAlmOmega0 BIT STRING (SIZE (7)), redAlmPhi0 BIT STRING (SIZE (7)), redAlmL1Health BIT STRING (SIZE (1)), redAlmL2Health BIT STRING (SIZE (1)), redAlmL5Health BIT STRING (SIZE (1)), ie-Extensions ProtocolExtensionContainer { { GANSS-SAT-Info-Almanac-REDkp-ExtIEs } } OPTIONAL, ... } GANSS-SAT-Info-Almanac-REDkp-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GANSS-SAT-Info-Almanac-SBASecefList ::= SEQUENCE (SIZE (1.. maxGANSSSatAlmanac)) OF GANSS-SAT-Info-Almanac-SBASecef GANSS-SAT-Info-Almanac-SBASecef ::= SEQUENCE { sbasAlmDataID BIT STRING (SIZE(2)), svID INTEGER(0..63), sbasAlmHealth BIT STRING (SIZE(8)), sbasAlmXg BIT STRING (SIZE(15)), sbasAlmYg BIT STRING (SIZE(15)), sbasAlmZg BIT STRING (SIZE(9)), sbasAlmXgdot BIT STRING (SIZE(3)), sbasAlmYgDot BIT STRING (SIZE(3)), sbasAlmZgDot BIT STRING (SIZE(4)), sbasAlmTo BIT STRING (SIZE(11)), ie-Extensions ProtocolExtensionContainer { { GANSS-SAT-Info-Almanac-SBASecef-ExtIEs } } OPTIONAL, ... } GANSS-SAT-Info-Almanac-SBASecef-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } Ganss-Sat-Info-AddNavList ::= SEQUENCE (SIZE (1..maxGANSSSat)) OF SEQUENCE { satId INTEGER (0..63), svHealth BIT STRING (SIZE (6)), iod BIT STRING (SIZE (11)), ganssAddClockModels GANSS-AddClockModels, ganssAddOrbitModels GANSS-AddOrbitModels, ie-Extensions ProtocolExtensionContainer { { Ganss-Sat-Info-AddNavList-ExtIEs } } OPTIONAL, ... } Ganss-Sat-Info-AddNavList-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GANSS-Sat-Info-Nav ::= SEQUENCE (SIZE(1..maxGANSSSat)) OF SEQUENCE { satId INTEGER(0..63), svHealth BIT STRING (SIZE(9)), iod BIT STRING (SIZE(10)), ganssClockModel GANSS-Clock-Model, ganssOrbitModel GANSS-Orbit-Model, ie-Extensions ProtocolExtensionContainer { { GANSS-Sat-Info-Nav-ExtIEs } } OPTIONAL, ... } GANSS-Sat-Info-Nav-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GANSS-SignalID ::= SEQUENCE { ganssSignalID INTEGER(0..3,...,4..7), ie-Extensions ProtocolExtensionContainer { { GANSS-SignalID-ExtIEs } } OPTIONAL, ... } GANSS-SignalID-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GANSS-StatusHealth ::= ENUMERATED { udre-scale-1dot0, udre-scale-0dot75, udre-scale-0dot5, udre-scale-0dot3, udre-scale-Odot2, udre-scale-0dot1, no-data, invalid-data } GANSS-Time-Model ::= SEQUENCE { ganss-time-model-refTime INTEGER(0..37799), ganss-t-a0 INTEGER(-2147483648..2147483647), ganss-t-a1 INTEGER(-8388608..8388607) OPTIONAL, ganss-t-a2 INTEGER(-64..63) OPTIONAL, gnss-to-id ENUMERATED{gps,...,galileo,qzss,glonass,bds}, ganss-wk-number INTEGER(0..8191) OPTIONAL, ie-Extensions ProtocolExtensionContainer { { GANSS-Time-Model-ExtIEs } } OPTIONAL, ... } GANSS-Time-Model-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { {ID id-ganss-Delta-T CRITICALITY ignore EXTENSION GANSS-Delta-T PRESENCE optional}, ... } GANSS-Delta-T ::= INTEGER(-128..127) GANSS-UTRAN-TimeRelationshipUncertainty ::= ENUMERATED { gANSS-UTRAN-TRU-50nano, gANSS-UTRAN-TRU-500nano, gANSS-UTRAN-TRU-1micro, gANSS-UTRAN-TRU-10micro, gANSS-UTRAN-TRU-1milli, gANSS-UTRAN-TRU-10milli, gANSS-UTRAN-TRU-100milli, gANSS-UTRAN-TRU-unreliable, ... } GANSS-UTRAN-TRU ::= SEQUENCE { gANSS-UTRAN-TimeRelationshipUncertainty GANSS-UTRAN-TimeRelationshipUncertainty, ganssId GANSSID OPTIONAL, ie-Extensions ProtocolExtensionContainer { { GANSS-UTRAN-TRU-ExtIEs } } OPTIONAL, ... } GANSS-UTRAN-TRU-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GANSS-UTC-Model ::= SEQUENCE { a-one-utc BIT STRING (SIZE (24)), a-zero-utc BIT STRING (SIZE (32)), t-ot-utc BIT STRING (SIZE (8)), w-n-t-utc BIT STRING (SIZE (8)), delta-t-ls-utc BIT STRING (SIZE (8)), w-n-lsf-utc BIT STRING (SIZE (8)), dn-utc BIT STRING (SIZE (8)), delta-t-lsf-utc BIT STRING (SIZE (8)), ie-Extensions ProtocolExtensionContainer { { GANSS-UTC-Model-ExtIEs } } OPTIONAL, ... } GANSS-UTC-Model-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } TUTRAN-GANSS-DriftRate ::= ENUMERATED { uTRAN-GANSSDrift0, uTRAN-GANSSDrift1, uTRAN-GANSSDrift2, uTRAN-GANSSDrift5, uTRAN-GANSSDrift10, uTRAN-GANSSDrift15, uTRAN-GANSSDrift25, uTRAN-GANSSDrift50, uTRAN-GANSSDrift-1, uTRAN-GANSSDrift-2, uTRAN-GANSSDrift-5, uTRAN-GANSSDrift-10, uTRAN-GANSSDrift-15, uTRAN-GANSSDrift-25, uTRAN-GANSSDrift-50, ... } GLONASSclockModel ::= SEQUENCE { gloTau BIT STRING (SIZE (22)), gloGamma BIT STRING (SIZE (11)), gloDeltaTau BIT STRING (SIZE (5)) OPTIONAL, ie-Extensions ProtocolExtensionContainer { { GLONASSclockModel-ExtIEs } } OPTIONAL, ... } GLONASSclockModel-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } NAVclockModel ::= SEQUENCE { navToc BIT STRING (SIZE (16)), navaf2 BIT STRING (SIZE (8)), navaf1 BIT STRING (SIZE (16)), navaf0 BIT STRING (SIZE (22)), navTgd BIT STRING (SIZE (8)), ie-Extensions ProtocolExtensionContainer { { NAVclockModel-ExtIEs } } OPTIONAL, ... } NAVclockModel-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } NavModel-CNAVKeplerianSet ::= SEQUENCE { cnavTop BIT STRING (SIZE (11)), cnavURAindex BIT STRING (SIZE (5)), cnavDeltaA BIT STRING (SIZE (26)), cnavAdot BIT STRING (SIZE (25)), cnavDeltaNo BIT STRING (SIZE (17)), cnavDeltaNoDot BIT STRING (SIZE (23)), cnavMo BIT STRING (SIZE (33)), cnavE BIT STRING (SIZE (33)), cnavOmega BIT STRING (SIZE (33)), cnavOMEGA0 BIT STRING (SIZE (33)), cnavDeltaOmegaDot BIT STRING (SIZE (17)), cnavIo BIT STRING (SIZE (33)), cnavIoDot BIT STRING (SIZE (15)), cnavCis BIT STRING (SIZE (16)), cnavCic BIT STRING (SIZE (16)), cnavCrs BIT STRING (SIZE (24)), cnavCrc BIT STRING (SIZE (24)), cnavCus BIT STRING (SIZE (21)), cnavCuc BIT STRING (SIZE (21)), ie-Extensions ProtocolExtensionContainer { { NavModel-CNAVKeplerianSet-ExtIEs } } OPTIONAL, ... } NavModel-CNAVKeplerianSet-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } NavModel-GLONASSecef ::= SEQUENCE { gloEn BIT STRING (SIZE (5)), gloP1 BIT STRING (SIZE (2)), gloP2 BIT STRING (SIZE (1)), gloM BIT STRING (SIZE (2)) OPTIONAL, gloX BIT STRING (SIZE (27)), gloXdot BIT STRING (SIZE (24)), gloXdotdot BIT STRING (SIZE (5)), gloY BIT STRING (SIZE (27)), gloYdot BIT STRING (SIZE (24)), gloYdotdot BIT STRING (SIZE (5)), gloZ BIT STRING (SIZE (27)), gloZdot BIT STRING (SIZE (24)), gloZdotdot BIT STRING (SIZE (5)), ie-Extensions ProtocolExtensionContainer { { NavModel-GLONASSecef-ExtIEs } } OPTIONAL, ... } NavModel-GLONASSecef-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } NavModel-NAVKeplerianSet ::= SEQUENCE { navURA BIT STRING (SIZE (4)), navFitFlag BIT STRING (SIZE (1)), navToe BIT STRING (SIZE (16)), navOmega BIT STRING (SIZE (32)), navDeltaN BIT STRING (SIZE (16)), navM0 BIT STRING (SIZE (32)), navOmegaADot BIT STRING (SIZE (24)), navE BIT STRING (SIZE (32)), navIDot BIT STRING (SIZE (14)), navAPowerHalf BIT STRING (SIZE (32)), navI0 BIT STRING (SIZE (32)), navOmegaA0 BIT STRING (SIZE (32)), navCrs BIT STRING (SIZE (16)), navCis BIT STRING (SIZE (16)), navCus BIT STRING (SIZE (16)), navCrc BIT STRING (SIZE (16)), navCic BIT STRING (SIZE (16)), navCuc BIT STRING (SIZE (16)), ie-Extensions ProtocolExtensionContainer { { NavModel-NAVKeplerianSet-ExtIEs } } OPTIONAL, ... } NavModel-NAVKeplerianSet-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } NavModel-SBASecef ::= SEQUENCE { -- the following IE shall be present if ‘SBASclockModel’ in ‘GANSS-AddClockModels’ is not included in ‘Ganss-Sat-Info-AddNavList’ sbasTo BIT STRING (SIZE (13)) OPTIONAL, sbasAccuracy BIT STRING (SIZE (4)), sbasXg BIT STRING (SIZE (30)), sbasYg BIT STRING (SIZE (30)), sbasZg BIT STRING (SIZE (25)), sbasXgDot BIT STRING (SIZE (17)), sbasYgDot BIT STRING (SIZE (17)), sbasZgDot BIT STRING (SIZE (18)), sbasXgDotDot BIT STRING (SIZE (10)), sbagYgDotDot BIT STRING (SIZE (10)), sbasZgDotDot BIT STRING (SIZE (10)), ie-Extensions ProtocolExtensionContainer { { NavModel-SBASecef-ExtIEs } } OPTIONAL, ... } NavModel-SBASecef-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } NavModel-BDSKeplerianSet ::= SEQUENCE { uRAIndex-BDS BIT STRING (SIZE (4)), tOA-BDS BIT STRING (SIZE (17)), a1-2-BDS BIT STRING (SIZE (32)), e-BDS BIT STRING (SIZE (32)), oMG-BDS BIT STRING (SIZE (32)), dLTn-BDS BIT STRING (SIZE (16)), m0-BDS BIT STRING (SIZE (32)), oMG0-BDS BIT STRING (SIZE (32)), oMGdot-BDS BIT STRING (SIZE (24)), i0-BDS BIT STRING (SIZE (32)), iDOT-BDS BIT STRING (SIZE (14)), cuc-BDS BIT STRING (SIZE (18)), cus-BDS BIT STRING (SIZE (18)), crc-BDS BIT STRING (SIZE (18)), crs-BDS BIT STRING (SIZE (18)), cic-BDS BIT STRING (SIZE (18)), cis-BDS BIT STRING (SIZE (18)), aODE-BDS BIT STRING (SIZE (5)), ie-Extensions ProtocolExtensionContainer { { NavModel-BDSKeplerianSet-ExtIEs } } OPTIONAL, ... } NavModel-BDSKeplerianSet-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } SBASclockModel ::= SEQUENCE { sbasTo BIT STRING (SIZE (13)), sbasAgfo BIT STRING (SIZE (12)), sbasAgf1 BIT STRING (SIZE (8)), ie-Extensions ProtocolExtensionContainer { { SBASclockModel-ExtIEs } } OPTIONAL, ... } SBASclockModel-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } BDSClockModel ::= SEQUENCE { toc-BDS BIT STRING (SIZE (17) ), a0-BDS BIT STRING (SIZE (24) ), a1-BDS BIT STRING (SIZE (22) ), a2-BDS BIT STRING (SIZE (11) ), tGD1-BDS BIT STRING (SIZE (10) ), aODC-BDS BIT STRING (SIZE (5) ), ie-Extensions ProtocolExtensionContainer { { BDSClockModel-ExtIEs } } OPTIONAL, ... } BDSClockModel-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } UTCmodelSet1 ::= SEQUENCE { utcA0 BIT STRING (SIZE(16)), utcA1 BIT STRING (SIZE(13)), utcA2 BIT STRING (SIZE(7)), utcDeltaTls BIT STRING (SIZE(8)), utcTot BIT STRING (SIZE(16)), utcWNot BIT STRING (SIZE(13)), utcWNlsf BIT STRING (SIZE(8)), utcDN BIT STRING (SIZE(4)), utcDeltaTlsf BIT STRING (SIZE(8)), ie-Extensions ProtocolExtensionContainer { { UTCmodelSet1-ExtIEs } } OPTIONAL, ... } UTCmodelSet1-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } UTCmodelSet2 ::= SEQUENCE { nA BIT STRING (SIZE(11)), tauC BIT STRING (SIZE(32)), deltaUT1 DeltaUT1 OPTIONAL, kp BIT STRING (SIZE(2)) OPTIONAL, ie-Extensions ProtocolExtensionContainer { { UTCmodelSet2-ExtIEs } } OPTIONAL, ... } UTCmodelSet2-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } UTCmodelSet3 ::= SEQUENCE { utcA1wnt BIT STRING (SIZE(24)), utcA0wnt BIT STRING (SIZE(32)), utcTot BIT STRING (SIZE(8)), utcWNt BIT STRING (SIZE(8)), utcDeltaTls BIT STRING (SIZE(8)), utcWNlsf BIT STRING (SIZE(8)), utcDN BIT STRING (SIZE(8)), utcDeltaTlsf BIT STRING (SIZE(8)), utcStandardID BIT STRING (SIZE(3)), ie-Extensions ProtocolExtensionContainer { { UTCmodelSet3-ExtIEs } } OPTIONAL, ... } UTCmodelSet3-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } UTCmodelSet4 ::= SEQUENCE { utca0-BDS BIT STRING (SIZE(32)), utca1-BDS BIT STRING (SIZE(24)), utcDeltatLS-BDS BIT STRING (SIZE(8)), utcWNt BIT STRING (SIZE(8)), utcDeltaTls BIT STRING (SIZE(8)), utcWNlsf-BDS BIT STRING (SIZE(8)), utcDN-BDS BIT STRING (SIZE(8)), utcDeltaTlsf-BDS BIT STRING (SIZE(8)), ie-Extensions ProtocolExtensionContainer { { UTCmodelSet4-ExtIEs } } OPTIONAL, ... } UTCmodelSet4-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } UTRAN-GANSSReferenceTimeDL ::= SEQUENCE { utran-GANSSTimingOfCellFrames INTEGER(0..3999999), uC-ID UC-ID OPTIONAL, referenceSfn INTEGER(0..4095), ie-Extensions ProtocolExtensionContainer { { UTRAN-GANSSReferenceTimeDL-ExtIEs } } OPTIONAL, ... } UTRAN-GANSSReferenceTimeDL-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } UTRAN-GANSSReferenceTimeUL ::= SEQUENCE { ue-GANSSTimingOfCellFrames INTEGER(0..345599999999), gANSS-TimeId GANSSID OPTIONAL, gANSS-TimeUncertainty INTEGER(0..127) OPTIONAL, uC-ID UC-ID, referenceSfn INTEGER(0..4095), ie-Extensions ProtocolExtensionContainer { { UTRAN-GANSSReferenceTimeUL-ExtIEs } } OPTIONAL, ... } UTRAN-GANSSReferenceTimeUL-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } -- ************************************************************** -- -- GPS Almanac and Satellite Health -- -- ************************************************************** GPS-AlmanacAndSatelliteHealth ::= SEQUENCE { wn-a BIT STRING (SIZE (8)), almanacSatInfoList AlmanacSatInfoList, svGlobalHealth BIT STRING (SIZE (364)) OPTIONAL, iE-Extensions ProtocolExtensionContainer { { GPS-AlmanacAndSatelliteHealth-ExtIEs } } OPTIONAL, ... } GPS-AlmanacAndSatelliteHealth-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { {ID id-completeAlmanacProvided CRITICALITY ignore EXTENSION CompleteAlmanacProvided PRESENCE optional}, ... } CompleteAlmanacProvided ::= BOOLEAN AlmanacSatInfoList ::= SEQUENCE (SIZE (1..maxSatAlmanac)) OF AlmanacSatInfo AlmanacSatInfo ::= SEQUENCE { dataID BIT STRING (SIZE (2)), satID INTEGER (0..63), e BIT STRING (SIZE (16)), t-oa BIT STRING (SIZE (8)), deltaI BIT STRING (SIZE (16)), omegaDot BIT STRING (SIZE (16)), satHealth BIT STRING (SIZE (8)), a-Sqrt BIT STRING (SIZE (24)), omega0 BIT STRING (SIZE (24)), m0 BIT STRING (SIZE (24)), omega BIT STRING (SIZE (24)), af0 BIT STRING (SIZE (11)), af1 BIT STRING (SIZE (11)), iE-Extensions ProtocolExtensionContainer { { AlmanacSatInfo-ExtIEs } } OPTIONAL, ... } AlmanacSatInfo-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } -- ************************************************************** -- -- GPS Clock And Ephemeris Parameters -- -- ************************************************************** GPS-ClockAndEphemerisParameters ::= SEQUENCE { codeOnL2 BIT STRING (SIZE (2)), uraIndex BIT STRING (SIZE (4)), satHealth BIT STRING (SIZE (6)), iodc BIT STRING (SIZE (10)), l2Pflag BIT STRING (SIZE (1)), sf1Revd SubFrame1Reserved, t-GD BIT STRING (SIZE (8)), t-oc BIT STRING (SIZE (16)), af2 BIT STRING (SIZE (8)), af1 BIT STRING (SIZE (16)), af0 BIT STRING (SIZE (22)), c-rs BIT STRING (SIZE (16)), delta-n BIT STRING (SIZE (16)), m0 BIT STRING (SIZE (32)), c-uc BIT STRING (SIZE (16)), e BIT STRING (SIZE (32)), c-us BIT STRING (SIZE (16)), a-Sqrt BIT STRING (SIZE (32)), t-oe BIT STRING (SIZE (16)), fitInterval BIT STRING (SIZE (1)), aodo BIT STRING (SIZE (5)), c-ic BIT STRING (SIZE (16)), omega0 BIT STRING (SIZE (32)), c-is BIT STRING (SIZE (16)), i0 BIT STRING (SIZE (32)), c-rc BIT STRING (SIZE (16)), omega BIT STRING (SIZE (32)), omegaDot BIT STRING (SIZE (24)), iDot BIT STRING (SIZE (14)), iE-Extensions ProtocolExtensionContainer { { GPS-ClockAndEphemerisParameters-ExtIEs } } OPTIONAL, ... } GPS-ClockAndEphemerisParameters-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } SubFrame1Reserved ::= SEQUENCE { reserved1 BIT STRING (SIZE (23)), reserved2 BIT STRING (SIZE (24)), reserved3 BIT STRING (SIZE (24)), reserved4 BIT STRING (SIZE (16)) } -- ************************************************************** -- -- GPS Ionospheric Model -- -- ************************************************************** GPS-Ionospheric-Model ::= SEQUENCE { alfa0 BIT STRING (SIZE (8)), alfa1 BIT STRING (SIZE (8)), alfa2 BIT STRING (SIZE (8)), alfa3 BIT STRING (SIZE (8)), beta0 BIT STRING (SIZE (8)), beta1 BIT STRING (SIZE (8)), beta2 BIT STRING (SIZE (8)), beta3 BIT STRING (SIZE (8)), iE-Extensions ProtocolExtensionContainer { { GPS-Ionospheric-Model-ExtIEs } } OPTIONAL, ... } GPS-Ionospheric-Model-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } -- ************************************************************** -- -- GPS Measured Results -- -- ************************************************************** MeasuredResultsList ::= SEQUENCE (SIZE (1..maxNrOfSets)) OF GPS-MeasuredResults GPS-MeasuredResults ::= SEQUENCE { gps-TOW-1msec INTEGER (0..604799999), gps-MeasurementParamList GPS-MeasurementParamList, iE-Extensions ProtocolExtensionContainer { { GPS-MeasuredResults-ExtIEs } } OPTIONAL, ... } GPS-MeasuredResults-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { {ID id-UTRAN-GPSReferenceTimeResult CRITICALITY ignore EXTENSION UTRAN-GPSReferenceTimeResult PRESENCE optional} | {ID id-GPSReferenceTimeUncertainty CRITICALITY ignore EXTENSION GPSReferenceTimeUncertainty PRESENCE optional}, ... } GPS-MeasurementParamList ::= SEQUENCE (SIZE (1..maxSat)) OF GPS-MeasurementParam GPS-MeasurementParam ::= SEQUENCE { satelliteID INTEGER (0..63), c-N0 INTEGER (0..63), doppler INTEGER (-32768..32768), wholeGPS-Chips INTEGER (0..1022), fractionalGPS-Chips INTEGER (0..1023), multipathIndicator MultipathIndicator, pseudorangeRMS-Error INTEGER (0..63), iE-Extensions ProtocolExtensionContainer { { GPS-MeasurementParam-ExtIEs } } OPTIONAL, ... } MultipathIndicator ::= ENUMERATED { nm, low, medium, high } GPS-MeasurementParam-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } -- ************************************************************** -- -- GPS Navigation Model -- -- ************************************************************** GPS-NavigationModel ::= SEQUENCE (SIZE (1..maxSat)) OF NavigationModelSatInfo NavigationModelSatInfo ::= SEQUENCE { satID INTEGER (0..63), satelliteStatus SatelliteStatus, gps-clockAndEphemerisParms GPS-ClockAndEphemerisParameters OPTIONAL, -- This IE is not present if satelliteStatus is es-SN iE-Extensions ProtocolExtensionContainer { { NavigationModelSatInfo-ExtIEs } } OPTIONAL, ... } NavigationModelSatInfo-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } SatelliteStatus ::= ENUMERATED { ns-NN, es-SN, es-NN, rev2, rev } -- ************************************************************** -- -- GPS Real Time Integrity -- -- ************************************************************** GPS-RealTimeIntegrity ::= CHOICE { badSatellites BadSatList, noBadSatellites NoBadSatellites, ... } BadSatList ::= SEQUENCE (SIZE (1..maxSat)) OF INTEGER (0..63) NoBadSatellites ::= NULL -- ************************************************************** -- -- GPS Reference Location -- -- ************************************************************** GPS-ReferenceLocation ::= SEQUENCE { ue-PositionEstimate UE-PositionEstimate, iE-Extensions ProtocolExtensionContainer { { GPS-ReferenceLocation-ExtIEs } } OPTIONAL, ... } GPS-ReferenceLocation-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } -- ************************************************************** -- -- GPS Reference Time -- -- ************************************************************** GPS-ReferenceTime ::= SEQUENCE { gps-Week INTEGER (0..1023), gps-TOW-1msec INTEGER (0..604799999), gps-TOW-AssistList GPS-TOW-AssistList OPTIONAL, iE-Extensions ProtocolExtensionContainer { { GPS-ReferenceTime-ExtIEs } } OPTIONAL, ... } GPS-ReferenceTime-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { {ID id-UTRAN-GPSReferenceTime CRITICALITY ignore EXTENSION UTRAN-GPSReferenceTime PRESENCE optional}| {ID id-GPS-UTRAN-TRU CRITICALITY ignore EXTENSION GPS-UTRAN-TRU PRESENCE optional}| {ID id-UTRAN-GPS-DriftRate CRITICALITY ignore EXTENSION UTRAN-GPS-DriftRate PRESENCE optional}| {ID id-GPSReferenceTimeUncertainty CRITICALITY ignore EXTENSION GPSReferenceTimeUncertainty PRESENCE optional}| {ID id-GPS-Week-Cycle CRITICALITY ignore EXTENSION GPS-Week-Cycle PRESENCE optional}, ... } GPS-Week-Cycle ::= INTEGER(0..7) GPS-TOW-AssistList ::= SEQUENCE (SIZE (1..maxSat)) OF GPS-TOW-Assist GPS-TOW-Assist ::= SEQUENCE { satID INTEGER (0..63), tlm-Message BIT STRING (SIZE (14)), antiSpoof BOOLEAN, alert BOOLEAN, tlm-Reserved BIT STRING (SIZE (2)), iE-Extensions ProtocolExtensionContainer { { GPS-TOW-Assist-ExtIEs } } OPTIONAL, ... } GPS-TOW-Assist-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } UTRAN-GPS-DriftRate ::= ENUMERATED { utran-GPSDrift0, utran-GPSDrift1, utran-GPSDrift2, utran-GPSDrift5, utran-GPSDrift10, utran-GPSDrift15, utran-GPSDrift25, utran-GPSDrift50, utran-GPSDrift-1, utran-GPSDrift-2, utran-GPSDrift-5, utran-GPSDrift-10, utran-GPSDrift-15, utran-GPSDrift-25, utran-GPSDrift-50, ...} -- ************************************************************** -- -- GPS Reference Time Uncertainty -- -- ************************************************************** GPSReferenceTimeUncertainty ::= SEQUENCE { gps-RefTimeUNC INTEGER(0..127), iE-Extensions ProtocolExtensionContainer { { GPSReferenceTimeUncertainty-ExtIEs } } OPTIONAL, ... } GPSReferenceTimeUncertainty-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } -- ************************************************************** -- -- GPS Transmission TOW -- -- ************************************************************** GPS-Transmission-TOW ::= INTEGER (0..604799) -- ************************************************************** -- -- GPS UTC Model -- -- ************************************************************** GPS-UTC-Model ::= SEQUENCE { a1 BIT STRING (SIZE (24)), a0 BIT STRING (SIZE (32)), t-ot BIT STRING (SIZE (8)), delta-t-LS BIT STRING (SIZE (8)), wn-t BIT STRING (SIZE (8)), wn-lsf BIT STRING (SIZE (8)), dn BIT STRING (SIZE (8)), delta-t-LSF BIT STRING (SIZE (8)), iE-Extensions ProtocolExtensionContainer { { GPS-UTCmodel-ExtIEs } } OPTIONAL, ... } GPS-UTCmodel-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } -- ************************************************************** -- -- GPS UTRAN Time Relationship Uncertainty -- nsec=nanosecond, usec=microsecond, msec=millisecond, sec=second -- -- ************************************************************** GPS-UTRAN-TRU ::= ENUMERATED { nsec-50, nsec-500, usec-1, usec-10, msec-1, msec-10, msec-100, unreliable, ...} -- ************************************************************** -- -- Additional GPS Assistance Data Required -- -- ************************************************************** AdditionalGPSAssistDataRequired ::= SEQUENCE { almanacRequest BOOLEAN, utcModelRequest BOOLEAN, ionosphericModelRequest BOOLEAN, navigationModelRequest BOOLEAN, dgpsCorrectionsRequest BOOLEAN, referenceLocationRequest BOOLEAN, referenceTimeRequest BOOLEAN, aquisitionAssistanceRequest BOOLEAN, realTimeIntegrityRequest BOOLEAN, navModelAddDataRequest NavModelAdditionalData OPTIONAL, iE-Extensions ProtocolExtensionContainer { { AdditionalGPSAssistDataRequired-ExtIEs } } OPTIONAL, ... } AdditionalGPSAssistDataRequired-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } -- ************************************************************** -- -- Additional GANSS Assistance Data Required -- -- ************************************************************** AdditionalGanssAssistDataRequired::= SEQUENCE { ganssReferenceTime BOOLEAN, ganssreferenceLocation BOOLEAN, ganssIonosphericModel BOOLEAN, ganssRequestedGenericAssistanceDataList GanssRequestedGenericAssistanceDataList, iE-Extensions ProtocolExtensionContainer { { AdditionalGanssAssistDataRequired-ExtIEs } } OPTIONAL, ... } AdditionalGanssAssistDataRequired-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { {ID id-ganssReq-AddIonosphericModel CRITICALITY ignore EXTENSION GANSSReq-AddIonosphericModel PRESENCE optional}| {ID id-ganssReq-EarthOrientPara CRITICALITY ignore EXTENSION GANSSReq-EarthOrientPara PRESENCE optional}, ... } GANSSReq-AddIonosphericModel ::= SEQUENCE { ganss-add-iono-mode-req BIT STRING (SIZE(2)), iE-Extensions ProtocolExtensionContainer { { GANSSReq-AddIonosphericModel-ExtIEs } } OPTIONAL, ...} GANSSReq-AddIonosphericModel-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GANSSReq-EarthOrientPara ::= BOOLEAN GanssRequestedGenericAssistanceDataList ::= SEQUENCE (SIZE (1..maxGANSS)) OF GanssReqGenericData GanssReqGenericData ::= SEQUENCE { ganssId GANSSID OPTIONAL, ganssRealTimeIntegrity BOOLEAN OPTIONAL, ganssDifferentialCorrection DGANSS-Sig-Id-Req OPTIONAL, ganssAlmanac BOOLEAN OPTIONAL, ganssNavigationModel BOOLEAN OPTIONAL, ganssTimeModelGnssGnss BIT STRING (SIZE (9)) OPTIONAL, ganssReferenceMeasurementInfo BOOLEAN OPTIONAL, ganssDataBits GanssDataBits OPTIONAL, ganssUTCModel BOOLEAN OPTIONAL, ganssNavigationModelAdditionalData NavigationModelGANSS OPTIONAL, iE-Extensions ProtocolExtensionContainer { { GanssReqGenericData-ExtIEs } } OPTIONAL, ...} GanssReqGenericData-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { {ID id-ganssAddNavigationModel-req CRITICALITY ignore EXTENSION GANSS-AddNavigationModel-Req PRESENCE optional}| {ID id-ganssAddUTCModel-req CRITICALITY ignore EXTENSION GANSS-AddUTCModel-Req PRESENCE optional}| {ID id-ganssAuxInfo-req CRITICALITY ignore EXTENSION GANSS-AuxInfo-req PRESENCE optional}| {ID id-GANSS-SBAS-ID CRITICALITY ignore EXTENSION GANSS-SBAS-ID PRESENCE optional}| {ID id-GANSS-AddADchoices CRITICALITY ignore EXTENSION GANSS-AddADchoices PRESENCE optional}| {ID id-BDSIonosphericGridModel CRITICALITY ignore EXTENSION BDSIonosphericGridModel PRESENCE optional}| {ID id-DBDSCorrection CRITICALITY ignore EXTENSION DBDSCorrection PRESENCE optional}, ... } BDSIonosphericGridModel ::= BOOLEAN DBDSCorrection ::= SEQUENCE { dGANSSSignalBDS BIT STRING (SIZE (8)), iE-Extensions ProtocolExtensionContainer { { DBDSCorrection-ExtIEs } } OPTIONAL, ... } DBDSCorrection-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GANSS-AddNavigationModel-Req ::= BOOLEAN GANSS-AddUTCModel-Req ::= BOOLEAN GANSS-AuxInfo-req ::= BOOLEAN GANSS-AddADchoices ::= SEQUENCE { orbitModelID INTEGER (0..7) OPTIONAL, clockModelID INTEGER (0..7) OPTIONAL, utcModelID INTEGER (0..7) OPTIONAL, almanacModelID INTEGER (0..7) OPTIONAL, iE-Extensions ProtocolExtensionContainer { { GANSS-AddADchoices-ExtIEs } } OPTIONAL, ...} GANSS-AddADchoices-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } DGANSS-Sig-Id-Req ::= BIT STRING (SIZE (8)) GanssDataBits ::= SEQUENCE { ganssTod INTEGER (0..86399), dataBitAssistancelist ReqDataBitAssistanceList, iE-Extensions ProtocolExtensionContainer { { GanssDataBits-ExtIEs } } OPTIONAL, ... } GanssDataBits-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } ReqDataBitAssistanceList ::= SEQUENCE { ganssSignalID BIT STRING (SIZE (8)), ganssDataBitInterval INTEGER(0..15), ganssSatelliteInfo SEQUENCE (SIZE (1..maxGANSSSat)) OF INTEGER(0..63) OPTIONAL, iE-Extensions ProtocolExtensionContainer { { ReqDataBitAssistanceList-ExtIEs } } OPTIONAL, ... } ReqDataBitAssistanceList-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } -- ************************************************************** -- -- Information Exchange ID -- -- ************************************************************** InformationExchangeID ::= INTEGER (0..1048575) -- ************************************************************** -- -- Information Report Characteristics -- -- ************************************************************** InformationReportCharacteristics ::= SEQUENCE { type InformationReportCharacteristicsType, periodicity InformationReportPeriodicity OPTIONAL, -- present if type indicates periodic ... } InformationReportCharacteristicsType ::= ENUMERATED { onDemand, periodic, onModification, ... } InformationReportPeriodicity ::= CHOICE { min INTEGER (1..60, ...), -- Unit min, Step 1min hour INTEGER (1..24, ...), -- Unit hour, Step 1hour ... } -- ************************************************************** -- -- Information Type -- -- ************************************************************** InformationType ::= CHOICE { implicitInformation MethodType, explicitInformation ExplicitInformationList, ... } ExplicitInformationList ::= SEQUENCE (SIZE (1..maxNrOfExpInfo)) OF ExplicitInformation ExplicitInformation ::= CHOICE { almanacAndSatelliteHealth AlmanacAndSatelliteHealth, utcModel UtcModel, ionosphericModel IonosphericModel, navigationModel NavigationModel, dgpsCorrections DgpsCorrections, referenceTime ReferenceTime, acquisitionAssistance AcquisitionAssistance, realTimeIntegrity RealTimeIntegrity, almanacAndSatelliteHealthSIB AlmanacAndSatelliteHealthSIB-InfoType, ... , referenceLocation ReferenceLocation, ganss-Common-DataReq GANSSCommonDataReq, ganss-Generic-DataList GANSSGenericDataList } DganssCorrectionsReq ::= SEQUENCE { transmissionGanssTimeIndicator TransmissionGanssTimeIndicator OPTIONAL, dganss-sig-id-req DGANSS-Sig-Id-Req, iE-Extensions ProtocolExtensionContainer { { DganssCorrectionsReq-ExtIEs} } OPTIONAL, ... } DganssCorrectionsReq-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } Ganss-almanacAndSatelliteHealthReq ::= SEQUENCE { transmissionGanssTimeIndicator TransmissionGanssTimeIndicator OPTIONAL, iE-Extensions ProtocolExtensionContainer { { Ganss-almanacAndSatelliteHealthReq-ExtIEs} } OPTIONAL, ... } Ganss-almanacAndSatelliteHealthReq-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GANSSCommonDataReq ::= SEQUENCE{ ganss-ReferenceTime ENUMERATED {requested, not-requested} OPTIONAL, ganss-IonosphericModel ENUMERATED {requested, not-requested} OPTIONAL, ganss-ReferenceLocation ENUMERATED {requested, not-requested} OPTIONAL, ie-Extensions ProtocolExtensionContainer { { GANSSCommonDataReq-ExtIEs } } OPTIONAL, ... } GANSSCommonDataReq-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { {ID id-GANSS-AddIonoModelReq CRITICALITY ignore EXTENSION GANSS-AddIonoModelReq PRESENCE optional} | {ID id-GANSS-EarthOrientParaReq CRITICALITY ignore EXTENSION GANSS-EarthOrientParaReq PRESENCE optional} , ... } GANSS-AddIonoModelReq ::= SEQUENCE { dataID BIT STRING (SIZE(2)), iE-Extensions ProtocolExtensionContainer { { GANSS-AddIonoModelReq-ExtIEs} } OPTIONAL, ... } GANSS-AddIonoModelReq-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GANSS-EarthOrientParaReq ::= SEQUENCE { eopReq ENUMERATED {requested, not-requested}, iE-Extensions ProtocolExtensionContainer { { GANSS-EarthOrientParaReq-ExtIEs} } OPTIONAL, ... } GANSS-EarthOrientParaReq-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GANSSGenericDataList ::= SEQUENCE (SIZE(1..maxGANSS)) OF GANSSGenericDataReq GANSSGenericDataReq ::= SEQUENCE { ganssID GANSSID OPTIONAL, ganss-realTimeIntegrity Ganss-realTimeIntegrityReq OPTIONAL, ganss-dataBitAssistance GanssDataBits OPTIONAL, dganssCorrections DganssCorrectionsReq OPTIONAL, ganss-almanacAndSatelliteHealth Ganss-almanacAndSatelliteHealthReq OPTIONAL, ganss-referenceMeasurementInfo Ganss-referenceMeasurementInfoReq OPTIONAL, ganss-utcModel Ganss-utcModelReq OPTIONAL, ganss-TimeModel-Gnss-Gnss Ganss-TimeModel-Gnss-Gnss OPTIONAL, navigationModel NavigationModelGANSS OPTIONAL, ..., ganss-AddNavModelsReq AddNavigationModelsGANSS OPTIONAL, ganss-AddUtcModelsReq GANSS-AddUtcModelsReq OPTIONAL, ganss-AuxInfoReq GANSS-AuxInfoReq OPTIONAL, -- the following IE shall be present if GANSSID is ‘0’ (SBAS) ganss-SBAS-ID GANSS-SBAS-ID OPTIONAL, dBDS-Corrections DBDS-Corrections OPTIONAL, bDS-Ionospheric-Grid-Model-Request BDS-Ionospheric-Grid-Model-Request OPTIONAL } AddNavigationModelsGANSS ::= SEQUENCE { ganssWeek INTEGER(0..4095), ganssTOE INTEGER(0..167), t-toe-limit INTEGER(0..10), addSatRelatedDataListGANSS AddSatelliteRelatedDataListGANSS, iE-Extensions ProtocolExtensionContainer { { AddNavigationModelsGANSS-ExtIEs } } OPTIONAL, ... } AddNavigationModelsGANSS-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } AddSatelliteRelatedDataListGANSS ::= SEQUENCE (SIZE (0..maxGANSSSat)) OF AddSatelliteRelatedDataGANSS AddSatelliteRelatedDataGANSS ::= SEQUENCE { satID INTEGER (0..63), iod BIT STRING (SIZE(10)), iE-Extensions ProtocolExtensionContainer { { AddSatelliteRelatedDataGANSS-ExtIEs } } OPTIONAL, ... } AddSatelliteRelatedDataGANSS-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } BDS-Ionospheric-Grid-Model-Request ::= ENUMERATED { requested, ... } DBDS-Corrections ::= SEQUENCE { transmissionGanssTimeIndicator TransmissionGanssTimeIndicator OPTIONAL, dGANSS-Signal BIT STRING( SIZE (8)), iE-Extensions ProtocolExtensionContainer { { DBDS-Corrections-ExtIEs } } OPTIONAL, ... } DBDS-Corrections-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GANSS-AddUtcModelsReq ::= SEQUENCE { transmissionGanssTimeIndicator TransmissionGanssTimeIndicator OPTIONAL, iE-Extensions ProtocolExtensionContainer { { GANSS-AddUtcModelsReq-ExtIEs} } OPTIONAL, ... } GANSS-AddUtcModelsReq-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GANSS-AuxInfoReq ::= SEQUENCE { transmissionGanssTimeIndicator TransmissionGanssTimeIndicator OPTIONAL, iE-Extensions ProtocolExtensionContainer { { GANSS-AuxInfoReq-ExtIEs} } OPTIONAL, ... } GANSS-AuxInfoReq-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GANSS-SBAS-ID ::= ENUMERATED { waas, egnos, msas, gagan, ... } Ganss-utcModelReq ::= SEQUENCE { transmissionGanssTimeIndicator TransmissionGanssTimeIndicator OPTIONAL, iE-Extensions ProtocolExtensionContainer { { Ganss-utcModelReq-ExtIEs} } OPTIONAL, ... } Ganss-utcModelReq-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } Ganss-realTimeIntegrityReq ::= SEQUENCE { transmissionGanssTimeIndicator TransmissionGanssTimeIndicator OPTIONAL, iE-Extensions ProtocolExtensionContainer { { Ganss-realTimeIntegrityReq-ExtIEs} } OPTIONAL, ... } Ganss-realTimeIntegrityReq-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } Ganss-referenceMeasurementInfoReq ::= SEQUENCE { transmissionGanssTimeIndicator TransmissionGanssTimeIndicator OPTIONAL, iE-Extensions ProtocolExtensionContainer { { Ganss-referenceMeasurementInfoReq-ExtIEs} } OPTIONAL, ... } Ganss-referenceMeasurementInfoReq-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } Ganss-TimeModel-Gnss-Gnss ::= SEQUENCE{ ganssTimeModelGnssGnssExt BIT STRING (SIZE(9)), transmissionGanssTimeIndicator TransmissionGanssTimeIndicator OPTIONAL, iE-Extensions ProtocolExtensionContainer { { Ganss-TimeModel-Gnss-Gnss-ExtIEs} } OPTIONAL, ... } Ganss-TimeModel-Gnss-Gnss-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } TransmissionGanssTimeIndicator ::= ENUMERATED { requested, not-Requested } AlmanacAndSatelliteHealth ::= NULL UtcModel ::= SEQUENCE { transmissionTOWIndicator TransmissionTOWIndicator, iE-Extensions ProtocolExtensionContainer { { UtcModel-ExtIEs } } OPTIONAL, ... } UtcModel-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } IonosphericModel ::= SEQUENCE { transmissionTOWIndicator TransmissionTOWIndicator, iE-Extensions ProtocolExtensionContainer { { IonosphericModel-ExtIEs } } OPTIONAL, ... } IonosphericModel-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } NavigationModel ::= SEQUENCE { transmissionTOWIndicator TransmissionTOWIndicator, navModelAdditionalData NavModelAdditionalData OPTIONAL, iE-Extensions ProtocolExtensionContainer { { NavigationModel-ExtIEs } } OPTIONAL, ... } NavigationModel-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } NavModelAdditionalData ::= SEQUENCE { gps-Week INTEGER (0..1023), gps-TOE INTEGER (0..167), t-TOE-limit INTEGER (0..10), satRelatedDataList SatelliteRelatedDataList, iE-Extensions ProtocolExtensionContainer { { NavModelAdditionalData-ExtIEs } } OPTIONAL, ... } NavModelAdditionalData-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } SatelliteRelatedDataList ::= SEQUENCE (SIZE (0..maxSat)) OF SatelliteRelatedData SatelliteRelatedData ::= SEQUENCE { satID INTEGER (0..63), iode INTEGER (0..255), iE-Extensions ProtocolExtensionContainer { { SatelliteRelatedData-ExtIEs } } OPTIONAL, ... } SatelliteRelatedData-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } NavigationModelGANSS ::= SEQUENCE { ganssWeek INTEGER(0..4095), ganssTOE INTEGER(0..167), t-toe-limit INTEGER(0..10), satRelatedDataListGANSS SatelliteRelatedDataListGANSS, iE-Extensions ProtocolExtensionContainer { { NavigationModelGANSS-ExtIEs } } OPTIONAL, ... } NavigationModelGANSS-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } SatelliteRelatedDataListGANSS ::= SEQUENCE (SIZE (0..maxGANSSSat)) OF SatelliteRelatedDataGANSS SatelliteRelatedDataGANSS ::= SEQUENCE { satID INTEGER (0..63), iod BIT STRING (SIZE(10)), iE-Extensions ProtocolExtensionContainer { { SatelliteRelatedDataGANSS-ExtIEs } } OPTIONAL, ... } SatelliteRelatedDataGANSS-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } DgpsCorrections ::= NULL ReferenceTime ::= NULL AcquisitionAssistance ::= NULL RealTimeIntegrity ::= NULL AlmanacAndSatelliteHealthSIB-InfoType ::= SEQUENCE { transmissionTOWIndicator TransmissionTOWIndicator, iE-Extensions ProtocolExtensionContainer { { AlmanacAndSatelliteHealthSIB-InfoType-ExtIEs } } OPTIONAL, ... } AlmanacAndSatelliteHealthSIB-InfoType-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } ReferenceLocation ::= NULL TransmissionTOWIndicator ::= ENUMERATED { requested, not-Requested } -- ************************************************************** -- -- Message Structure -- -- ************************************************************** MessageStructure ::= SEQUENCE (SIZE (1..maxNrOfLevels)) OF SEQUENCE { iE-ID ProtocolIE-ID, repetitionNumber MessageStructureRepetition OPTIONAL, iE-Extensions ProtocolExtensionContainer { {MessageStructure-ExtIEs} } OPTIONAL, ... } MessageStructureRepetition ::= INTEGER (1..256) MessageStructure-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } -- ************************************************************** -- -- Measurement Instructions Used -- -- ************************************************************** MeasInstructionsUsed ::= SEQUENCE { measurementValidity MeasurementValidity, iE-Extensions ProtocolExtensionContainer { { MeasInstructionsUsed-ExtIEs } } OPTIONAL, ... } MeasInstructionsUsed-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } -- ************************************************************** -- -- Measurement Validity -- -- ************************************************************** MeasurementValidity ::= SEQUENCE { ue-State ENUMERATED { cell-DCH, all-States-Except-Cell-DCH, all-States, ... }, iE-Extensions ProtocolExtensionContainer { { MeasurementValidity-ExtIEs } } OPTIONAL, ... } MeasurementValidity-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } -- ************************************************************** -- -- Method Type -- -- ************************************************************** MethodType ::= ENUMERATED { ue-assisted, ue-based } -- ************************************************************** -- -- OTDOA Measurement Group -- -- ************************************************************** OTDOA-MeasurementGroup ::= SEQUENCE { otdoa-ReferenceCellInfo OTDOA-ReferenceCellInfo, otdoa-NeighbourCellInfoList OTDOA-NeighbourCellInfoList, otdoa-MeasuredResultsSets OTDOA-MeasuredResultsSets, iE-Extensions ProtocolExtensionContainer { { OTDOA-MeasurementGroup-ExtIEs } } OPTIONAL, ... } OTDOA-MeasurementGroup-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } OTDOA-ReferenceCellInfo ::= SEQUENCE { uC-ID UC-ID, uTRANAccessPointPositionAltitude UTRANAccessPointPositionAltitude, tUTRANGPSMeasurementValueInfo TUTRANGPSMeasurementValueInfo OPTIONAL, iE-Extensions ProtocolExtensionContainer { { OTDOA-ReferenceCellInfo-ExtIEs } } OPTIONAL, ... } OTDOA-ReferenceCellInfo-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { { ID id-TUTRANGANSSMeasurementValueInfo CRITICALITY ignore EXTENSION TUTRANGANSSMeasurementValueInfo PRESENCE optional }| { ID id-additionalMeasurementInforLCR CRITICALITY ignore EXTENSION AdditionalMeasurementInforLCR PRESENCE optional }, -- 1.28Mcps TDD only ... } OTDOA-ReferenceCellInfoSAS-centric ::= SEQUENCE { uC-ID UC-ID, iE-Extensions ProtocolExtensionContainer { { OTDOA-ReferenceCellInfoSAS-centric-ExtIEs } } OPTIONAL, ... } OTDOA-ReferenceCellInfoSAS-centric-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } OTDOA-NeighbourCellInfoList ::= SEQUENCE (SIZE (1..maxNrOfMeasNCell)) OF OTDOA-NeighbourCellInfo OTDOA-NeighbourCellInfo ::= SEQUENCE { uC-ID UC-ID, uTRANAccessPointPositionAltitude UTRANAccessPointPositionAltitude, relativeTimingDifferenceInfo RelativeTimingDifferenceInfo, iE-Extensions ProtocolExtensionContainer { { OTDOA-NeighbourCellInfo-ExtIEs } } OPTIONAL, ... } OTDOA-NeighbourCellInfo-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } OTDOA-MeasuredResultsSets ::= SEQUENCE (SIZE (1..maxNrOfMeasurements)) OF OTDOA-MeasuredResultsInfoList OTDOA-MeasuredResultsInfoList ::= SEQUENCE (SIZE (1..maxNrOfMeasNCell)) OF OTDOA-MeasuredResultsInfo OTDOA-MeasuredResultsInfo ::= SEQUENCE { uC-ID UC-ID, ue-SFNSFNTimeDifferenceType2Info UE-SFNSFNTimeDifferenceType2Info, iE-Extensions ProtocolExtensionContainer { { OTDOA-MeasuredResultsInfo-ExtIEs } } OPTIONAL, ... } OTDOA-MeasuredResultsInfo-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { {ID id-OTDOA-AddMeasuredResultsInfo CRITICALITY ignore EXTENSION OTDOA-AddMeasuredResultsInfo PRESENCE optional}, ... } OTDOA-AddMeasuredResultsInfo ::= SEQUENCE { primaryCPICH-Info PrimaryScramblingCode, iE-Extensions ProtocolExtensionContainer { { OTDOA-AddMeasuredResultsInfo-ExtIEs } } OPTIONAL, ... } OTDOA-AddMeasuredResultsInfo-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } UE-SFNSFNTimeDifferenceType2Info ::= SEQUENCE { ue-SFNSFNTimeDifferenceType2 INTEGER (0..40961), ue-PositioningMeasQuality UE-PositioningMeasQuality, measurementDelay INTEGER (0..65535), iE-Extensions ProtocolExtensionContainer { { UE-SFNSFNTimeDifferenceInfo-ExtIEs } } OPTIONAL, ... } UE-SFNSFNTimeDifferenceInfo-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } UC-ID ::= SEQUENCE { rNC-ID INTEGER (0..4095), c-ID INTEGER (0..65535), iE-Extensions ProtocolExtensionContainer { { UC-ID-ExtIEs } } OPTIONAL, ... } UC-ID-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { { ID id-Extended-RNC-ID CRITICALITY reject EXTENSION Extended-RNC-ID PRESENCE optional}, ... } Extended-RNC-ID ::= INTEGER (4096..65535) RelativeTimingDifferenceInfo ::= CHOICE { sFNSFNMeasurementValueInfo SFNSFNMeasurementValueInfo, tUTRANGPSMeasurementValueInfo TUTRANGPSMeasurementValueInfo, ..., tUTRANGANSSMeasurementValueInfo TUTRANGANSSMeasurementValueInfo } SFNSFNMeasurementValueInfo ::= SEQUENCE { sFNSFNValue SFNSFNValue, sFNSFNQuality SFNSFNQuality OPTIONAL, sFNSFNDriftRate SFNSFNDriftRate, sFNSFNDriftRateQuality SFNSFNDriftRateQuality OPTIONAL, iE-Extensions ProtocolExtensionContainer { { SFNSFNMeasurementValueInfo-ExtIEs } } OPTIONAL, ... } SFNSFNMeasurementValueInfo-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } SFNSFNValue ::= INTEGER (0..614399) SFNSFNQuality ::= INTEGER (0..255) -- Unit chip, Step 1/16 chip, Range 0.. 255/16 chip SFNSFNDriftRate ::= INTEGER (-100..100) -- Unit chip/s, Step 1/256 chip/s, Range -100/256..+100/256 chip/s SFNSFNDriftRateQuality ::= INTEGER (0..100) -- Unit chip/s, Step 1/256 chip/s, Range 0..100/256 chip/s TUTRANGPSMeasurementValueInfo ::= SEQUENCE { sFN SFN, tUTRANGPS TUTRANGPS, tUTRANGPSQuality TUTRANGPSQuality OPTIONAL, tUTRANGPSDriftRate TUTRANGPSDriftRate, tUTRANGPSDriftRateQuality TUTRANGPSDriftRateQuality OPTIONAL, iE-Extensions ProtocolExtensionContainer { { TUTRANGPSMeasurementValueInfo-ExtIEs } } OPTIONAL, ... } TUTRANGPSMeasurementValueInfo-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } SFN ::= INTEGER (0..4095) TUTRANGPS ::= SEQUENCE { ms-part INTEGER (0..16383), ls-part INTEGER (0..4294967295) } TUTRANGPSQuality ::= INTEGER (0..255) -- Unit chip, Step 1/16 chip, Range 0.. 255/16 chip TUTRANGPSDriftRate ::= INTEGER (-50..50) -- Unit chip/s, Step 1/256 chip/s, Range -50/256..+50/256 chip/s TUTRANGPSDriftRateQuality ::= INTEGER (0..50) -- Unit chip/s, Step 1/256 chip/s, Range 0..50/256 chip/s TUTRANGANSSMeasurementValueInfo ::= SEQUENCE { ganssID GANSSID OPTIONAL, sFN SFN, tUTRANGANSS TUTRANGANSS, tUTRANGANSSQuality INTEGER(0..255) OPTIONAL, tUTRANGANSSDriftRate INTEGER(-50..50), tUTRANGANSSDriftRateQuality INTEGER(0..50) OPTIONAL, iE-Extensions ProtocolExtensionContainer { { TUTRANGANSSMeasurementValueInfo-ExtIEs } } OPTIONAL, ... } TUTRANGANSSMeasurementValueInfo-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } TUTRANGANSS ::= SEQUENCE { ms-part INTEGER (0..16383), ls-part INTEGER (0..4294967295) } AdditionalMeasurementInforLCR ::= SEQUENCE { timingAdvanceLCR-R7 TimingAdvanceLCR-R7, rxTimingDeviationLCR RxTimingDeviationLCR, angleOfArrivalLCR AngleOfArrivalLCR OPTIONAL, iE-Extensions ProtocolExtensionContainer { { AdditionalMeasurementInforLCR-ExtIEs } } OPTIONAL, ... } AdditionalMeasurementInforLCR-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } TimingAdvanceLCR-R7 ::= INTEGER (0..8191) -- ************************************************************** -- -- Periodic Position Calculation Info -- -- ************************************************************** PeriodicPosCalcInfo ::= SEQUENCE { referenceNumber INTEGER (0..32767, ...), amountOutstandingRequests INTEGER (1..8639999, ...), reportingInterval INTEGER (1..8639999, ...), iE-Extensions ProtocolExtensionContainer { { PeriodicPosCalcInfo-ExtIEs } } OPTIONAL, ... } PeriodicPosCalcInfo-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } -- ************************************************************** -- -- Periodic Location Info -- -- ************************************************************** PeriodicLocationInfo ::= SEQUENCE { reportingAmount INTEGER (1..8639999, ...), reportingInterval INTEGER (1..8639999, ...), iE-Extensions ProtocolExtensionContainer { { PeriodicLocationInfo-ExtIEs } } OPTIONAL, ... } PeriodicLocationInfo-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } -- ************************************************************** -- -- Periodic Termination Cause -- -- ************************************************************** PeriodicTerminationCause ::= ENUMERATED { rrc-state-transition, cancelled-by-srnc, cancelled-by-sas, undefined, ... } -- ************************************************************** -- -- Positioning Method -- -- ************************************************************** PositioningMethod ::= SEQUENCE { additionalMethodType AdditionalMethodType, selectedPositionMethod SelectedPositionMethod, iE-Extensions ProtocolExtensionContainer { { PositioningMethod-ExtIEs } } OPTIONAL, ... } PositioningMethod-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { -- The following IE shall be present if the Selected Position Method IE value is set to "GNSS" or “OTDOA or GNSS” { ID id-GNSS-PositioningMethod CRITICALITY ignore EXTENSION GNSS-PositioningMethod PRESENCE conditional}| -- This IE shall be present if the Selected Position Method IE value is set to “GPS and AddPos” or “OTDOA or GPS and AddPos” { ID id-Additional-PositioningMethod CRITICALITY ignore EXTENSION Additional-PositioningMethod PRESENCE conditional}, ... } GNSS-PositioningMethod ::= BIT STRING (SIZE(9)) Additional-PositioningMethod ::= BIT STRING (SIZE(8)) SelectedPositionMethod ::= ENUMERATED { oTDOA, gPS, oTDOA-or-GPS, cell-id, uTDOA, ..., gNSS, oTDOA-or-GNSS, gPS-and-AddPos, oTDOA-or-GPS-and-AddPos } -- ************************************************************** -- -- Positioning Priority -- -- ************************************************************** PositioningPriority ::= ENUMERATED { high-priority, normal-priority, ... } -- ************************************************************** -- -- RRC State Change -- -- ************************************************************** RRCstateChange ::= SEQUENCE { new-ue-State ENUMERATED { cell-DCH, cell-FACH, cell-PCH, ura-PCH, ... }, iE-Extensions ProtocolExtensionContainer { { RRCstateChange-ExtIEs } } OPTIONAL, ... } RRCstateChange-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } -- ************************************************************** -- -- Requested Data Value -- -- ************************************************************** RequestedDataValue ::= SEQUENCE { gpsAlmanacAndSatelliteHealth GPS-AlmanacAndSatelliteHealth OPTIONAL, gps-UTC-Model GPS-UTC-Model OPTIONAL, gps-Ionospheric-Model GPS-Ionospheric-Model OPTIONAL, gps-NavigationModel GPS-NavigationModel OPTIONAL, dgpsCorrections DGPSCorrections OPTIONAL, referenceTime GPS-ReferenceTime OPTIONAL, gps-AcquisitionAssistance GPS-AcquisitionAssistance OPTIONAL, gps-RealTime-Integrity GPS-RealTimeIntegrity OPTIONAL, almanacAndSatelliteHealthSIB AlmanacAndSatelliteHealthSIB OPTIONAL, gps-Transmission-TOW GPS-Transmission-TOW OPTIONAL, iE-Extensions ProtocolExtensionContainer { { RequestedDataValue-ExtIEs} } OPTIONAL, ... } --at least one of the above IEs shall be present in the requested data value RequestedDataValue-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { { ID id-GPS-ReferenceLocation CRITICALITY ignore EXTENSION GPS-ReferenceLocation PRESENCE optional }| { ID id-GANSS-CommonAssistanceData CRITICALITY ignore EXTENSION GANSS-CommonAssistanceData PRESENCE optional }| { ID id-GANSS-GenericAssistanceDataList CRITICALITY ignore EXTENSION GANSS-GenericAssistanceDataList PRESENCE optional }, ... } -- ************************************************************** -- -- Requested Data Value Information -- -- ************************************************************** RequestedDataValueInformation ::= CHOICE { informationAvailable InformationAvailable, informationNotAvailable InformationNotAvailable } InformationAvailable::= SEQUENCE { requestedDataValue RequestedDataValue, iE-Extensions ProtocolExtensionContainer { { InformationAvailable-ExtIEs} } OPTIONAL, ... } InformationAvailable-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } InformationNotAvailable ::= NULL -- ************************************************************** -- -- Request Type -- -- ************************************************************** RequestType ::= SEQUENCE { event RequestTypeEvent, reportArea RequestTypeReportArea, horizontalaccuracyCode RequestTypeAccuracyCode OPTIONAL, iE-Extensions ProtocolExtensionContainer { { RequestType-ExtIEs} } OPTIONAL, ... } RequestType-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } RequestTypeEvent ::= ENUMERATED { stop-change-of-service-area, direct, change-of-service-area, stop-direct, ..., periodic, stop-periodic } RequestTypeReportArea ::= ENUMERATED { service-area, geographical-area, ... } RequestTypeAccuracyCode ::= INTEGER (0..127) -- ************************************************************** -- -- Response Time -- -- ************************************************************** ResponseTime ::= ENUMERATED { low-delay, delay-tolerant, ... } -- ************************************************************** -- -- Horizontal Accuracy Code -- -- ************************************************************** HorizontalAccuracyCode ::= INTEGER (0..127) -- ************************************************************** -- -- UE Positioning Capability -- -- ************************************************************** UE-PositioningCapability ::= SEQUENCE { standAloneLocationMethodsSupported BOOLEAN, ueBasedOTDOASupported BOOLEAN, networkAssistedGPSSupport NetworkAssistedGPSSuport, supportGPSTimingOfCellFrame BOOLEAN, supportForIPDL BOOLEAN, supportForRxTxTimeDiff BOOLEAN, supportForUEAGPSinCellPCH BOOLEAN, supportForSFNSFNTimeDiff BOOLEAN, iE-Extensions ProtocolExtensionContainer { {UE-PositioningCapability-ExtIEs} } OPTIONAL, ... } UE-PositioningCapability-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { { ID id-NetworkAssistedGANSSSuport CRITICALITY ignore EXTENSION NetworkAssistedGANSSSupport PRESENCE optional}| { ID id-AddPosSupport CRITICALITY ignore EXTENSION AddPosSupport PRESENCE optional}, ... } NetworkAssistedGANSSSupport ::= SEQUENCE (SIZE (1..maxGANSS)) OF SEQUENCE { ganssID GANSSID OPTIONAL, ganssMode ENUMERATED { networkBased, ue-Based, both, none }, ganssSignalID GANSS-SignalID OPTIONAL, supportGANSSTimingOfCellFrame BOOLEAN, supportGANSSCarrierPhaseMeasurement BOOLEAN, iE-Extensions ProtocolExtensionContainer { { NetworkAssistedGANSSSuport-ExtIEs} } OPTIONAL, ... } AddPosSupport ::= SEQUENCE (SIZE (1..maxAddPos)) OF AddPosSupport-Element AddPosSupport-Element ::= SEQUENCE { addPosID ENUMERATED { barometricPressure, wLAN, bluetooth, mBS, ... }, addPosMode ENUMERATED { standalone, ue-assisted, both, ... }, ... } NetworkAssistedGANSSSuport-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { -- the following IE shall be present if ‘GANSSID’ in ‘NetworkAssistedGANSSSupport’ is ‘0’ (SBAS) { ID id-GANSS-SBAS-IDs CRITICALITY ignore EXTENSION GANSS-SBAS-IDs PRESENCE optional }| { ID id-GANSS-Signal-IDs CRITICALITY ignore EXTENSION GANSS-Signal-IDs PRESENCE optional }| { ID id-supportGANSSNonNativeADchoices CRITICALITY ignore EXTENSION SupportGANSSNonNativeADchoices PRESENCE optional }, ... } NetworkAssistedGPSSuport ::= ENUMERATED { network-based, ue-based, both, none, ... } GANSS-SBAS-IDs ::= SEQUENCE { ganss-sbas-ids BIT STRING (SIZE(8)), iE-Extensions ProtocolExtensionContainer { { GANSS-SBAS-IDs-ExtIEs} } OPTIONAL, ... } GANSS-SBAS-IDs-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GANSS-Signal-IDs ::= SEQUENCE { ganss-signal-ids BIT STRING (SIZE(8)), iE-Extensions ProtocolExtensionContainer { { GANSS-Signal-IDs-ExtIEs} } OPTIONAL, ... } GANSS-Signal-IDs-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } SupportGANSSNonNativeADchoices ::= BOOLEAN -- ************************************************************** -- -- UTDOA Positioning (Position Activation Request Message) -- -- ************************************************************** UTDOAPositioning ::= SEQUENCE { utdoa-BitCount UTDOA-BitCount, utdoa-timeInterval UTDOA-TimeInterval, iE-Extensions ProtocolExtensionContainer { { UTDOAPositioning-ExtIEs } } OPTIONAL, ... } UTDOAPositioning-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } UTDOA-BitCount ::= INTEGER (0..5000) UTDOA-TimeInterval ::= INTEGER (0..3000) EnvironmentCharacterisation ::= ENUMERATED { heavyMultipathandNLOSconditions, noOrLightMultipathAndUsuallyLOSconditions, notDefinedOrMixedEnvironment, ... } -- ************************************************************** -- -- GPS and GANSS Positioning (Position Activation Request Message) -- -- ************************************************************** GPSPositioning ::= SEQUENCE { gpsPositioningInstructions GPSPositioningInstructions, requestedDataValue RequestedDataValue OPTIONAL, iE-Extensions ProtocolExtensionContainer { { GPSPositioning-ExtIEs } } OPTIONAL, ... } GPSPositioning-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GPSPositioningInstructions ::= SEQUENCE { horizontalAccuracyCode HorizontalAccuracyCode OPTIONAL, verticalAccuracyCode VerticalAccuracyCode OPTIONAL, gpsTimingOfCellWanted BOOLEAN, additionalAssistanceDataRequest BOOLEAN, iE-Extensions ProtocolExtensionContainer { { GPSPositioningInstructions-ExtIEs } } OPTIONAL, ... } GPSPositioningInstructions-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { {ID id-MeasurementValidity CRITICALITY ignore EXTENSION MeasurementValidity PRESENCE optional}, ... } GANSSPositioning ::= SEQUENCE { ganssPositioningInstructions GANSS-PositioningInstructions, requestedDataValue RequestedDataValue OPTIONAL, iE-Extensions ProtocolExtensionContainer { { GANSSPositioning-ExtIEs } } OPTIONAL, ... } GANSSPositioning-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } GANSS-PositioningInstructions ::= SEQUENCE { horizontalAccuracyCode HorizontalAccuracyCode OPTIONAL, verticalAccuracyCode VerticalAccuracyCode OPTIONAL, ganssTimingOfCellWanted BIT STRING (SIZE (8)), additionalAssistanceDataRequest BIT STRING (SIZE (8)), measurementValidity MeasurementValidity OPTIONAL, iE-Extensions ProtocolExtensionContainer { { GANSS-PositioningInstructions-ExtIEs } } OPTIONAL, ... } GANSS-PositioningInstructions-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { {ID id-GANSScarrierPhaseRequested CRITICALITY ignore EXTENSION GANSScarrierPhaseRequested PRESENCE optional}| {ID id-GANSSMultiFreqMeasRequested CRITICALITY ignore EXTENSION GANSSMultiFreqMeasRequested PRESENCE optional}, ... } GANSScarrierPhaseRequested ::= BIT STRING (SIZE (8)) GANSSMultiFreqMeasRequested ::= BIT STRING (SIZE (8)) -- ************************************************************** -- -- OTDOA Assistance Data -- -- ************************************************************** OTDOAAssistanceData ::= SEQUENCE { uE-Positioning-OTDOA-AssistanceData UE-Positioning-OTDOA-AssistanceData, iE-Extensions ProtocolExtensionContainer { { OTDOAAssistanceData-ExtIEs } } OPTIONAL, ... } OTDOAAssistanceData-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } -- ************************************ -- -- UE Positioning OTDOA Assistance Data -- -- ************************************ UE-Positioning-OTDOA-AssistanceData ::= SEQUENCE { ue-positioning-OTDOA-ReferenceCellInfo UE-Positioning-OTDOA-ReferenceCellInfo OPTIONAL, ue-positioning-OTDOA-NeighbourCellList UE-Positioning-OTDOA-NeighbourCellList OPTIONAL, iE-Extensions ProtocolExtensionContainer { { UE-Positioning-OTDOAAssistanceData-ExtIEs } } OPTIONAL, ... } UE-Positioning-OTDOAAssistanceData-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } UE-Positioning-OTDOA-ReferenceCellInfo ::= SEQUENCE { sfn SFN OPTIONAL, modeSpecificInfo CHOICE { fdd SEQUENCE { primaryCPICH-Info PrimaryScramblingCode, ... }, tdd SEQUENCE{ cellParameterID CellParameterID, --- coding is FFS ... }, ... }, frequencyInfo FrequencyInfo OPTIONAL, positioningMode CHOICE { ueBased SEQUENCE { cellPosition ReferenceCellPosition OPTIONAL, -- actual value roundTripTime = (IE value * 0.0625) + 876 roundTripTime INTEGER (0..32766) OPTIONAL, ... }, ueAssisted SEQUENCE { ... }, ... }, ue-positioning-IPDL-Paremeters UE-Positioning-IPDL-Parameters OPTIONAL, iE-Extensions ProtocolExtensionContainer { { UE-Positioning-OTDOAReferenceCellInfo-ExtIEs } } OPTIONAL, ... } UE-Positioning-OTDOAReferenceCellInfo-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { { ID id-ExtendedRoundTripTime CRITICALITY ignore EXTENSION ExtendedRoundTripTime PRESENCE optional }| -- FDD only { ID id-timingAdvanceLCR-R7 CRITICALITY ignore EXTENSION TimingAdvanceLCR-R7 PRESENCE optional }| -- 1.28Mcps TDD only { ID id-rxTimingDeviationLCR CRITICALITY ignore EXTENSION RxTimingDeviationLCR PRESENCE optional }| -- 1.28Mcps TDD only { ID id-angleOfArrivalLCR CRITICALITY ignore EXTENSION AngleOfArrivalLCR PRESENCE optional }, -- 1.28Mcps TDD only ... } ReferenceCellPosition ::= CHOICE { ellipsoidPoint GeographicalCoordinates, ellipsoidPointWithAltitude GA-PointWithAltitude, ... } UE-Positioning-IPDL-Parameters ::= SEQUENCE { modeSpecificInfo CHOICE { fdd SEQUENCE { ip-Spacing IP-Spacing, ip-Length IP-Length, ip-Offset INTEGER (0..9), seed INTEGER (0..63), ... }, tdd SEQUENCE { -- coding is FFS ... }, ... }, burstModeParameters BurstModeParameters OPTIONAL, iE-Extensions ProtocolExtensionContainer { { UE-Positioning-IPDL-Parameters-ExtIEs } } OPTIONAL, ... } UE-Positioning-IPDL-Parameters-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } IP-Spacing ::= ENUMERATED { e5, e7, e10, e15, e20, e30, e40, e50, ... } IP-Length ::= ENUMERATED { ipl5, ipl10, ... } BurstModeParameters ::= SEQUENCE { burstStart INTEGER (0..15), burstLength INTEGER (10..25), burstFreq INTEGER (1..16), iE-Extensions ProtocolExtensionContainer { { BurstModeParameters-ExtIEs } } OPTIONAL, ... } BurstModeParameters-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } UE-Positioning-OTDOA-NeighbourCellList ::= SEQUENCE (SIZE (1..maxCellMeas)) OF UE-Positioning-OTDOA-NeighbourCellInfo UE-Positioning-OTDOA-NeighbourCellInfo ::= SEQUENCE { modeSpecificInfo CHOICE { fdd SEQUENCE { primaryCPICH-Info PrimaryScramblingCode, ... }, tdd SEQUENCE{ cellParameterID CellParameterID, -- coding is FFS ... }, ... }, frequencyInfo FrequencyInfo OPTIONAL, ue-positioning-IPDL-Paremeters UE-Positioning-IPDL-Parameters OPTIONAL, sfn-SFN-RelTimeDifference SFN-SFN-RelTimeDifference1, sfn-Offset-Validity SFN-Offset-Validity OPTIONAL, sfn-SFN-Drift SFN-SFN-Drift OPTIONAL, searchWindowSize OTDOA-SearchWindowSize, positioningMode CHOICE { ueBased SEQUENCE { relativeNorth INTEGER (-20000..20000) OPTIONAL, relativeEast INTEGER (-20000..20000) OPTIONAL, relativeAltitude INTEGER (-4000..4000) OPTIONAL, fineSFN-SFN FineSFNSFN OPTIONAL, -- actual value roundTripTime = (IE value * 0.0625) + 876 roundTripTime INTEGER (0.. 32766) OPTIONAL, ... }, ueAssisted SEQUENCE { ... }, ... }, iE-Extensions ProtocolExtensionContainer { { UE-Positioning-OTDOANeighbourCellInfo-ExtIEs } } OPTIONAL, ... } UE-Positioning-OTDOANeighbourCellInfo-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { { ID id-ExtendedRoundTripTime CRITICALITY ignore EXTENSION ExtendedRoundTripTime PRESENCE optional }, -- FDD only ... } SFN-SFN-RelTimeDifference1 ::= SEQUENCE { sfn-Offset INTEGER (0 .. 4095), sfn-sfn-Reltimedifference INTEGER (0.. 38399), iE-Extensions ProtocolExtensionContainer { { SFN-SFN-RelTimeDifference1-ExtIEs } } OPTIONAL, ... } SFN-SFN-RelTimeDifference1-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } SFN-Offset-Validity ::= ENUMERATED { false } OTDOA-SearchWindowSize ::= ENUMERATED { c20, c40, c80, c160, c320, c640, c1280, moreThan1280, ... } SFN-SFN-Drift ::= ENUMERATED { sfnsfndrift0, sfnsfndrift1, sfnsfndrift2, sfnsfndrift3, sfnsfndrift4, sfnsfndrift5, sfnsfndrift8, sfnsfndrift10, sfnsfndrift15, sfnsfndrift25, sfnsfndrift35, sfnsfndrift50, sfnsfndrift65, sfnsfndrift80, sfnsfndrift100, sfnsfndrift-1, sfnsfndrift-2, sfnsfndrift-3, sfnsfndrift-4, sfnsfndrift-5, sfnsfndrift-8, sfnsfndrift-10, sfnsfndrift-15, sfnsfndrift-25, sfnsfndrift-35, sfnsfndrift-50, sfnsfndrift-65, sfnsfndrift-80, sfnsfndrift-100, ...} FineSFNSFN ::= INTEGER (0..15) -- Range 0..0.9375 step size 0.0625 -- ************************************************************** -- -- Vertical Accuracy Code -- -- ************************************************************** VerticalAccuracyCode ::= INTEGER (0..127) -- ************************************************************** -- -- UTDOA Group -- -- ************************************************************** UTDOA-Group ::= SEQUENCE { uC-ID UC-ID, frequencyInfo FrequencyInfo, uTDOA-ChannelSettings UTDOA-RRCState, iE-Extensions ProtocolExtensionContainer { { UTDOA-Group-ExtIEs } } OPTIONAL, ... } UTDOA-Group-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } FrequencyInfo ::= SEQUENCE { modeSpecificInfo CHOICE { fdd FrequencyInfoFDD, tdd FrequencyInfoTDD, ... }, iE-Extensions ProtocolExtensionContainer { { FrequencyInfo-ExtIEs } } OPTIONAL, ... } FrequencyInfo-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } FrequencyInfoFDD ::= SEQUENCE { uarfcn-UL UARFCN OPTIONAL, uarfcn-DL UARFCN, iE-Extensions ProtocolExtensionContainer { { FrequencyInfoFDD-ExtIEs } } OPTIONAL, ... } FrequencyInfoFDD-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } FrequencyInfoTDD ::= SEQUENCE { uarfcn UARFCN, iE-Extensions ProtocolExtensionContainer { {FrequencyInfoTDD-ExtIEs} } OPTIONAL, ... } FrequencyInfoTDD-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } UTDOA-RRCState ::= CHOICE { uTDOA-CELLDCH UTDOA-CELLDCH, uTDOA-CELLFACH UTDOA-CELLFACH, ... } -- *********************************** -- -- UTDOA Cell DCH Information -- -- *********************************** UTDOA-CELLDCH ::= SEQUENCE { uL-DPCHInfo UL-DPCHInfo, compressedModeAssistanceData Compressed-Mode-Assistance-Data OPTIONAL, dCH-Information DCH-Information OPTIONAL, e-DPCH-Information E-DPCH-Information OPTIONAL, iE-Extensions ProtocolExtensionContainer { { UTDOA-CELLDCH-ExtIEs} } OPTIONAL, ... } UTDOA-CELLDCH-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } UL-DPCHInfo ::= CHOICE { fdd SEQUENCE { scramblingCodeType ScramblingCodeType, scramblingCode UL-ScramblingCode, tfci-Existence BOOLEAN, numberOfFBI-Bits NumberOfFBI-Bits, iE-Extensions ProtocolExtensionContainer { { UL-DPCHInfoFDD-ExtIEs} } OPTIONAL, ... }, tdd SEQUENCE { cellParameterID CellParameterID, tFCI-Coding TFCI-Coding, punctureLimit PuncturingLimit, repetitionPeriod RepetitionPeriod, repetitionLength RepetitionLength, tdd-DPCHOffset TDD-DPCHOffset, uL-Timeslot-Information UL-Timeslot-Information, frameOffset FrameOffset, specialBurstScheduling SpecialBurstScheduling, iE-Extensions ProtocolExtensionContainer { { UL-DPCHInfoTDD-ExtIEs} } OPTIONAL, ... }, ... } UL-DPCHInfoFDD-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } UL-DPCHInfoTDD-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } Compressed-Mode-Assistance-Data ::= SEQUENCE { dl-information DL-InformationFDD, ul-information UL-InformationFDD, iE-Extensions ProtocolExtensionContainer { { Compressed-Mode-Assistance-DataFDD-ExtIEs} } OPTIONAL, ... } Compressed-Mode-Assistance-DataFDD-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } DL-InformationFDD ::= SEQUENCE { primaryScramblingCode PrimaryScramblingCode, chipOffset ChipOffset, frameOffset FrameOffset, iE-Extensions ProtocolExtensionContainer { { DL-InformationFDD-ExtIEs} } OPTIONAL, ... } DL-InformationFDD-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } UL-InformationFDD ::= SEQUENCE { transmissionGapPatternSequenceInfo Transmission-Gap-Pattern-Sequence-Information, activePatternSequenceInfo Active-Pattern-Sequence-Information, cFN CFN, iE-Extensions ProtocolExtensionContainer { { UL-InformationFDD-ExtIEs} } OPTIONAL, ... } UL-InformationFDD-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } Transmission-Gap-Pattern-Sequence-Information ::= SEQUENCE (SIZE (1..maxTGPS)) OF SEQUENCE { tGPSID TGPSID, tGSN TGSN, tGL1 GapLength, tGL2 GapLength OPTIONAL, tGD TGD, tGPL1 GapDuration, uplink-Compressed-Mode-Method Uplink-Compressed-Mode-Method, iE-Extensions ProtocolExtensionContainer { {Transmission-Gap-Pattern-Sequence-Information-ExtIEs} } OPTIONAL, ... } Transmission-Gap-Pattern-Sequence-Information-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } TGD ::= INTEGER (0|15..269) -- 0 = Undefined, only one transmission gap in the transmission gap pattern sequence TGPRC ::= INTEGER (0..511) -- 0 = infinity TGPSID ::= INTEGER (1.. maxTGPS) TGSN ::= INTEGER (0..14) Uplink-Compressed-Mode-Method ::= ENUMERATED { sFdiv2, higher-layer-scheduling, ... } GapDuration ::= INTEGER (1..144,...) -- Unit frame GapLength ::= INTEGER (1..14) -- Unit slot Active-Pattern-Sequence-Information ::= SEQUENCE { cMConfigurationChangeCFN CFN, transmission-Gap-Pattern-Sequence-Status Transmission-Gap-Pattern-Sequence-Status-List OPTIONAL, iE-Extensions ProtocolExtensionContainer { {Active-Pattern-Sequence-Information-ExtIEs} } OPTIONAL, ... } Active-Pattern-Sequence-Information-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } Transmission-Gap-Pattern-Sequence-Status-List ::= SEQUENCE (SIZE (1..maxTGPS)) OF SEQUENCE { tGPSID TGPSID, tGPRC TGPRC, tGCFN CFN, iE-Extensions ProtocolExtensionContainer { { Transmission-Gap-Pattern-Sequence-Status-List-ExtIEs } } OPTIONAL, ... } Transmission-Gap-Pattern-Sequence-Status-List-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } DCH-Information ::= SEQUENCE { tFCS TFCS, trChInfo TrChInfoList, iE-Extensions ProtocolExtensionContainer { { DCH-Information-ExtIEs} } OPTIONAL, ... } DCH-Information-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } TrChInfoList ::= SEQUENCE (SIZE(1..maxTrCH)) OF UL-TrCHInfo UL-TrCHInfo ::= SEQUENCE { uL-TrCHtype UL-TrCHType, tfs TransportFormatSet, iE-Extensions ProtocolExtensionContainer { { UL-TrCHInfo-ExtIEs} } OPTIONAL, ... } UL-TrCHInfo-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } UL-TrCHType ::= ENUMERATED {dch, usch, ...} E-DPCH-Information ::= SEQUENCE { maxSet-E-DPDCHs Max-Set-E-DPDCHs, ul-PunctureLimit PuncturingLimit, e-TFCS-Information E-TFCS-Information, e-TTI E-TTI, e-DPCCH-PO E-DPCCH-PO OPTIONAL, iE-Extensions ProtocolExtensionContainer { { E-DPCH-Information-ExtIEs} } OPTIONAL, ... } E-DPCH-Information-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } Max-Set-E-DPDCHs ::= ENUMERATED { vN64, vN32, vN16, vN8, v2xN4, v2xN2, v2xN2plus2xN4, ... } -- Values related to TS 25.212 [16] E-TFCS-Information ::= SEQUENCE { e-DCH-TFCS-Index E-DCH-TFCS-Index, reference-E-TFCI-Information Reference-E-TFCI-Information OPTIONAL, iE-Extensions ProtocolExtensionContainer { {E-TFCS-Information-ExtIEs} } OPTIONAL, ... } E-TFCS-Information-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } E-DCH-TFCS-Index ::= INTEGER (1..4,...) Reference-E-TFCI-Information ::= SEQUENCE (SIZE (1..maxNrOfRefETFCIs)) OF Reference-E-TFCI-Information-Item Reference-E-TFCI-Information-Item ::= SEQUENCE { reference-E-TFCI E-TFCI, reference-E-TFCI-PO Reference-E-TFCI-PO, iE-Extensions ProtocolExtensionContainer { { Reference-E-TFCI-Information-Item-ExtIEs} } OPTIONAL, ... } Reference-E-TFCI-Information-Item-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } Reference-E-TFCI-PO ::= INTEGER (0.. maxNrOfRefETFCI-PO-QUANTSTEPs) -- FFS according to mapping in TS 25.213 [17] E-TFCI ::= INTEGER (0..127) E-TTI ::= ENUMERATED { e-TTI-2ms, e-TTI-10ms, ... } E-DPCCH-PO ::= INTEGER (0..maxNrOfEDPCCH-PO-QUANTSTEPs) CellParameterID ::= INTEGER (0..127,...) TFCI-Coding ::= ENUMERATED { v4, v8, v16, v32, ... } RepetitionLength ::= INTEGER (1..63) RepetitionPeriod ::= ENUMERATED { v1, v2, v4, v8, v16, v32, v64, ... } TDD-DPCHOffset ::= CHOICE { initialOffset INTEGER (0..255), noinitialOffset INTEGER (0..63) } UL-Timeslot-Information ::= SEQUENCE (SIZE (1..maxNrOfULTSs)) OF UL-Timeslot-InformationItem maxNrOfULTSs INTEGER ::= 15 UL-Timeslot-InformationItem ::= SEQUENCE { timeSlot TimeSlot, midambleShiftAndBurstType MidambleShiftAndBurstType, tFCI-Presence BOOLEAN, uL-Code-InformationList TDD-UL-Code-Information, iE-Extensions ProtocolExtensionContainer { { UL-Timeslot-InformationItem-ExtIEs} } OPTIONAL, ... } UL-Timeslot-InformationItem-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } TimeSlot ::= INTEGER (0..14) MidambleShiftAndBurstType ::= CHOICE { type1 SEQUENCE { midambleConfigurationBurstType1And3 MidambleConfigurationBurstType1And3, midambleAllocationMode CHOICE { defaultMidamble NULL, commonMidamble NULL, ueSpecificMidamble MidambleShiftLong, ... }, ... }, type2 SEQUENCE { midambleConfigurationBurstType2 MidambleConfigurationBurstType2, midambleAllocationMode CHOICE { defaultMidamble NULL, commonMidamble NULL, ueSpecificMidamble MidambleShiftShort, ... }, ... }, type3 SEQUENCE { midambleConfigurationBurstType1And3 MidambleConfigurationBurstType1And3, midambleAllocationMode CHOICE { defaultMidamble NULL, ueSpecificMidamble MidambleShiftLong, ... }, ... }, ... } MidambleShiftLong ::= INTEGER (0..15) MidambleShiftShort ::= INTEGER (0..5) MidambleConfigurationBurstType1And3 ::= ENUMERATED {v4, v8, v16} MidambleConfigurationBurstType2 ::= ENUMERATED {v3, v6} TDD-UL-Code-Information ::= SEQUENCE (SIZE (1..maxNrOfDPCHs)) OF TDD-UL-Code-InformationItem maxNrOfDPCHs INTEGER ::= 240 TDD-UL-Code-InformationItem ::= SEQUENCE { tdd-ChannelisationCode TDD-ChannelisationCode, iE-Extensions ProtocolExtensionContainer { { TDD-UL-Code-InformationItem-ExtIEs} } OPTIONAL, ... } TDD-UL-Code-InformationItem-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } TDD-ChannelisationCode ::= ENUMERATED { chCode1div1, chCode2div1, chCode2div2, chCode4div1, chCode4div2, chCode4div3, chCode4div4, chCode8div1, chCode8div2, chCode8div3, chCode8div4, chCode8div5, chCode8div6, chCode8div7, chCode8div8, chCode16div1, chCode16div2, chCode16div3, chCode16div4, chCode16div5, chCode16div6, chCode16div7, chCode16div8, chCode16div9, chCode16div10, chCode16div11, chCode16div12, chCode16div13, chCode16div14, chCode16div15, chCode16div16, ... } SpecialBurstScheduling ::= INTEGER (1..256) -- Number of frames between special burst transmission during DTX -- ********************************** -- -- UTDOA Cell Fach Information -- -- ********************************** UTDOA-CELLFACH ::= SEQUENCE { pRACHparameters PRACHparameters, cRNTI C-RNTI, uschParameters UschParameters OPTIONAL, iE-Extensions ProtocolExtensionContainer { { UTDOA-CELLFACH-ExtIEs} } OPTIONAL, ... } UTDOA-CELLFACH-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } PRACHparameters ::= SEQUENCE (SIZE (1..maxPRACH)) OF PRACH-ChannelInfo PRACH-ChannelInfo ::= SEQUENCE { pRACH-Info PRACH-Info, tFS TransportFormatSet, tFCS TFCS, iE-Extensions ProtocolExtensionContainer { { PRACH-ChannelInfo-ExtIEs} } OPTIONAL, ... } PRACH-ChannelInfo-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } PRACH-Info ::= CHOICE { fdd SEQUENCE { availableSignatures AvailableSignatures, availableSF SF-PRACH, preambleScramblingCodeWordNumber PreambleScramblingCodeWordNumber, puncturingLimit PuncturingLimit, availableSubChannelNumbers AvailableSubChannelNumbers, iE-Extensions ProtocolExtensionContainer { { PRACH-Info-FDD-ExtIEs} } OPTIONAL, ... }, tdd SEQUENCE { timeSlot TimeSlot, tdd-ChannelisationCode TDD-ChannelisationCode, maxPRACH-MidambleShifts MaxPRACH-MidambleShifts, pRACH-Midamble PRACH-Midamble, iE-Extensions ProtocolExtensionContainer { { PRACH-Info-TDD-ExtIEs} } OPTIONAL, ... }, ... } PRACH-Info-FDD-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } PRACH-Info-TDD-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } SF-PRACH ::= ENUMERATED { sfpr32, sfpr64, sfpr128, sfpr256, ... } AvailableSignatures ::= BIT STRING { signature15(0), signature14(1), signature13(2), signature12(3), signature11(4), signature10(5), signature9(6), signature8(7), signature7(8), signature6(9), signature5(10), signature4(11), signature3(12), signature2(13), signature1(14), signature0(15) } (SIZE(16)) PreambleScramblingCodeWordNumber ::= INTEGER (0..15) PuncturingLimit ::= INTEGER (0..15) -- 0: 40%; 1: 44%; ... 14: 96%; 15: 100% AvailableSubChannelNumbers ::= BIT STRING { subCh11(0), subCh10(1), subCh9(2), subCh8(3), subCh7(4), subCh6(5), subCh5(6), subCh4(7), subCh3(8), subCh2(9), subCh1(10), subCh0(11) } (SIZE(12)) ScramblingCodeType ::= ENUMERATED { shortSC, longSC } UL-ScramblingCode ::= INTEGER (0..16777215) NumberOfFBI-Bits ::= INTEGER (0..2) TransportFormatSet ::= SEQUENCE { dynamicPart TransportFormatSet-DynamicPartList, semi-staticPart TransportFormatSet-Semi-staticPart, iE-Extensions ProtocolExtensionContainer { { TransportFormatSet-ExtIEs} } OPTIONAL, ... } TransportFormatSet-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } TransportFormatSet-DynamicPartList ::= SEQUENCE (SIZE (1..maxNrOfTFs)) OF SEQUENCE { rlc-Size RLC-Size, numberOfTbsTTIList SEQUENCE (SIZE (1..maxNrOfTFs)) OF TbsTTIInfo, iE-Extensions ProtocolExtensionContainer { { TransportFormatSet-DynamicPartList-ExtIEs} } OPTIONAL, ... } TransportFormatSet-DynamicPartList-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } TbsTTIInfo ::= SEQUENCE { tTIInfo TransportFormatSet-TransmissionTimeIntervalDynamic OPTIONAL, numberOfTbs TransportFormatSet-NrOfTransportBlocks, iE-Extensions ProtocolExtensionContainer { { TbsTTIInfo-ExtIEs} } OPTIONAL, ... } TbsTTIInfo-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } RLC-Size ::= INTEGER (129..5055) TransportFormatSet-NrOfTransportBlocks ::= INTEGER (0..512) TransportFormatSet-Semi-staticPart ::= SEQUENCE { transmissionTimeInterval TransportFormatSet-TransmissionTimeIntervalSemiStatic, channelCoding TransportFormatSet-ChannelCodingType, codingRate TransportFormatSet-CodingRate OPTIONAL, -- This IE shall be present if the Type of channel coding IE is set to 'convolutional' or 'turbo' rateMatchingAttribute TransportFormatSet-RateMatchingAttribute, cRC-Size TransportFormatSet-CRC-Size, iE-Extensions ProtocolExtensionContainer { { TransportFormatSet-Semi-staticPart-ExtIEs} } OPTIONAL, ... } TransportFormatSet-Semi-staticPart-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } TransportFormatSet-TransmissionTimeIntervalSemiStatic ::= ENUMERATED { msec-5, msec-10, msec-20, msec-40, msec-80, dynamic, ... } TransportFormatSet-ChannelCodingType ::= ENUMERATED { no-codingTDD, convolutional-coding, turbo-coding, ... } TransportFormatSet-CodingRate ::= ENUMERATED { half, third, ... } TransportFormatSet-RateMatchingAttribute ::= INTEGER (1..maxRateMatching) TransportFormatSet-CRC-Size ::= ENUMERATED { v0, v8, v12, v16, v24, ... } TransportFormatSet-TransmissionTimeIntervalDynamic ::= ENUMERATED { msec-10, msec-20, msec-40, msec-80, dynamic, ... } TFCS ::= SEQUENCE (SIZE (1..maxTFC)) OF CTFC CTFC ::= CHOICE{ ctfc2Bit SEQUENCE (SIZE (1..maxTFC)) OF INTEGER (0..3), ctfc4Bit SEQUENCE (SIZE (1..maxTFC)) OF INTEGER (0..15), ctfc6Bit SEQUENCE (SIZE (1..maxTFC)) OF INTEGER (0..63), ctfc8Bit SEQUENCE (SIZE (1..maxTFC)) OF INTEGER (0..255), ctfc12Bit SEQUENCE (SIZE (1..maxTFC)) OF INTEGER (0..4095), ctfc16Bit SEQUENCE (SIZE (1..maxTFC)) OF INTEGER (0..65535), ctfc24Bit SEQUENCE (SIZE (1..maxTFC)) OF INTEGER (0..16777215), ... } C-RNTI ::= BIT STRING (SIZE (16)) UARFCN ::= INTEGER (0..16383) CFN ::= INTEGER (0..255) ChipOffset ::= INTEGER (0..38399) -- Unit Chip FrameOffset ::= INTEGER (0..255) PrimaryScramblingCode ::= INTEGER (0..511) UschParameters ::= SEQUENCE { cellParameterID CellParameterID, tFCI-Coding TFCI-Coding, punctureLimit PuncturingLimit, repetitionPeriod RepetitionPeriod, uSCH-SchedulingOffset USCH-SchedulingOffset, uL-Timeslot-Information UL-Timeslot-Information, tFCS TFCS, trChInfo TrChInfoList, iE-Extensions ProtocolExtensionContainer { { UschParameters-ExtIEs} } OPTIONAL, ... } UschParameters-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } USCH-SchedulingOffset ::= INTEGER (0..255) MaxPRACH-MidambleShifts ::= ENUMERATED { shift4, shift8, ... } PRACH-Midamble ::= ENUMERATED { inverted, direct, ... } --****************************************** -- -- Positioning Response Time -- --****************************************** Positioning-ResponseTime ::= ENUMERATED { ms250, ms500, s1, s2, s3, s4, s6, s8, s12, s16, s20, s24, s28, s32, s64, ... } --****************************************** -- -- Amount of Reporting -- --****************************************** AmountOfReporting ::= ENUMERATED { ra2, ra4, ra8, ra16, ra32, ra64, ra-Infinity, ... } -- ************************************************************** -- -- Include Velocity -- -- ************************************************************** IncludeVelocity ::= ENUMERATED { requested } -- ************************************************************** -- -- VelocityEstimate -- -- ************************************************************** -- VelocityEstimate is based on Description of Velocity in 23.032 VelocityEstimate ::= CHOICE { horizontalVelocity HorizontalVelocity, horizontalWithVerticalVelocity HorizontalWithVerticalVelocity, horizontalVelocityWithUncertainty HorizontalVelocityWithUncertainty, horizontalWithVerticalVelocityAndUncertainty HorizontalWithVerticalVelocityAndUncertainty, ... } HorizontalVelocity ::= SEQUENCE { horizontalSpeedAndBearing HorizontalSpeedAndBearing, iE-Extensions ProtocolExtensionContainer { { HorizontalVelocity-ExtIEs} } OPTIONAL, ... } HorizontalVelocity-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } HorizontalWithVerticalVelocity ::= SEQUENCE { horizontalSpeedAndBearing HorizontalSpeedAndBearing, verticalVelocity VerticalVelocity, iE-Extensions ProtocolExtensionContainer { { HorizontalWithVerticalVelocity-ExtIEs} } OPTIONAL, ... } HorizontalWithVerticalVelocity-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } HorizontalVelocityWithUncertainty ::= SEQUENCE { horizontalSpeedAndBearing HorizontalSpeedAndBearing, uncertaintySpeed INTEGER (0..255), iE-Extensions ProtocolExtensionContainer { { HorizontalVelocityWithUncertainty-ExtIEs} } OPTIONAL, ... } HorizontalVelocityWithUncertainty-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } HorizontalWithVerticalVelocityAndUncertainty ::= SEQUENCE { horizontalSpeedAndBearing HorizontalSpeedAndBearing, verticalVelocity VerticalVelocity, horizontalUncertaintySpeed INTEGER (0..255), verticalUncertaintySpeed INTEGER (0..255), iE-Extensions ProtocolExtensionContainer { { HorizontalWithVerticalVelocityAndUncertainty-ExtIEs} } OPTIONAL, ... } HorizontalWithVerticalVelocityAndUncertainty-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } HorizontalSpeedAndBearing ::= SEQUENCE { bearing INTEGER (0..359), horizontalSpeed INTEGER (0..2047) } VerticalVelocity ::= SEQUENCE { verticalSpeed INTEGER (0..255), verticalSpeedDirection VerticalSpeedDirection } VerticalSpeedDirection ::= ENUMERATED { upward, downward } --****************************************** -- -- UTRAN-GPS Reference Time -- --****************************************** UTRAN-GPSReferenceTime ::= SEQUENCE { utran-GPSTimingOfCell INTEGER (0..2322431999999, ...), uC-ID UC-ID OPTIONAL, sfn INTEGER (0..4095), iE-Extensions ProtocolExtensionContainer { { UTRAN-GPSReferenceTime-ExtIEs } } OPTIONAL, ... } UTRAN-GPSReferenceTime-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } --****************************************** -- -- UTRAN-GPS Reference Time Result -- --****************************************** UTRAN-GPSReferenceTimeResult ::= SEQUENCE { ue-GPSTimingOfCell INTEGER (0..37158911999999, ...), uC-ID UC-ID, sfn INTEGER (0..4095), iE-Extensions ProtocolExtensionContainer { { UTRAN-GPSReferenceTimeResult-ExtIEs } } OPTIONAL, ... } UTRAN-GPSReferenceTimeResult-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } --****************************************** -- -- UTRAN-GANSS Reference Time Result -- --****************************************** UTRAN-GANSSReferenceTimeResult ::= SEQUENCE { ue-GANSSTimingOfCell INTEGER (0..345599999999, ...), ganss-Time-ID GANSSID OPTIONAL, ganssTodUncertainty INTEGER(0..127) OPTIONAL, uC-ID UC-ID, sfn INTEGER (0..4095), iE-Extensions ProtocolExtensionContainer { { UTRAN-GANSSReferenceTimeResult-ExtIEs } } OPTIONAL, ... } UTRAN-GANSSReferenceTimeResult-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } END
ASN.1
wireshark/epan/dissectors/asn1/pcap/PCAP-PDU-Contents.asn
-- -- 3GPP TS 25.453 V17.0.0 (2022-04) -- --9.3.3 PDU Definitions -- ************************************************************** -- -- PDU definitions for PCAP. -- -- ************************************************************** PCAP-PDU-Contents { itu-t (0) identified-organization (4) etsi (0) mobileDomain (0) umts-Access (20) modules (3) pcap(4) version1 (1) pcap-PDU-Contents (1) } DEFINITIONS AUTOMATIC TAGS ::= BEGIN -- ************************************************************** -- -- IE parameter types from other modules. -- -- ************************************************************** IMPORTS Cause, CriticalityDiagnostics, GPS-UTRAN-TRU, InformationExchangeID, InformationReportCharacteristics, InformationType, MeasuredResultsList, RequestedDataValue, RequestedDataValueInformation, UE-PositionEstimate, CellId-MeasuredResultsSets, OTDOA-MeasurementGroup, AccuracyFulfilmentIndicator, HorizontalAccuracyCode, VerticalAccuracyCode, RequestType, UE-PositioningCapability, UC-ID, ResponseTime, PositioningPriority, ClientType, PositioningMethod, UTDOAPositioning, GPSPositioning, OTDOAAssistanceData, UTDOA-Group, Positioning-ResponseTime, EnvironmentCharacterisation, PositionData, IncludeVelocity, VelocityEstimate, UE-PositionEstimateInfo, OTDOA-MeasuredResultsSets, PeriodicPosCalcInfo, PeriodicLocationInfo, AmountOfReporting, MeasInstructionsUsed, RRCstateChange, PeriodicTerminationCause, CellIDPositioning, GANSS-MeasuredResultsList, GANSSPositioning, GANSS-UTRAN-TRU, AdditionalGPSAssistDataRequired, AdditionalGanssAssistDataRequired, OTDOA-ReferenceCellInfoSAS-centric, CellId-IRATMeasuredResultsSets, IMSI, IMEI, AddPos-MeasuredResults FROM PCAP-IEs TransactionID FROM PCAP-CommonDataTypes ProtocolExtensionContainer{}, ProtocolIE-ContainerList{}, ProtocolIE-Container{}, ProtocolIE-Single-Container{}, PrivateIE-Container{}, PCAP-PRIVATE-IES, PCAP-PROTOCOL-EXTENSION, PCAP-PROTOCOL-IES FROM PCAP-Containers id-Cause, id-CriticalityDiagnostics, id-GPS-UTRAN-TRU, id-InformationExchangeID, id-InformationExchangeObjectType-InfEx-Rprt, id-InformationExchangeObjectType-InfEx-Rqst, id-InformationExchangeObjectType-InfEx-Rsp, id-InformationReportCharacteristics, id-InformationType, id-GPS-MeasuredResultsList, id-RequestedDataValue, id-RequestedDataValueInformation, id-TransactionID, id-UE-PositionEstimate, id-CellId-MeasuredResultsSets, id-OTDOA-MeasurementGroup, id-AccuracyFulfilmentIndicator, id-HorizontalAccuracyCode, id-VerticalAccuracyCode, id-RequestType, id-UE-PositioningCapability, id-UC-id, id-ResponseTime, id-PositioningPriority, id-ClientType, id-PositioningMethod, id-UTDOAPositioning, id-GPSPositioning, id-OTDOAAssistanceData, id-UTDOA-Group, id-Positioning-ResponseTime, id-EnvironmentCharacterisation, id-PositionData, id-IncludeVelocity, id-VelocityEstimate, id-UE-PositionEstimateInfo, id-UC-ID-InfEx-Rqst, id-OTDOA-MeasuredResultsSets, id-PeriodicPosCalcInfo, id-PeriodicLocationInfo, id-AmountOfReporting, id-MeasInstructionsUsed, id-RRCstateChange, id-PeriodicTerminationCause, id-CellIDPositioning, id-GANSS-MeasuredResultsList, id-GANSSPositioning, id-GANSS-UTRAN-TRU, id-AdditionalGPSAssistDataRequired, id-AdditionalGanssAssistDataRequired, id-OTDOA-ReferenceCellInfo, id-CellId-IRATMeasuredResultsSets, id-IMSI, id-IMEI, id-AddPos-MeasuredResults FROM PCAP-Constants; -- ************************************************************** -- -- Position Calculation Request -- -- ************************************************************** PositionCalculationRequest ::= SEQUENCE { protocolIEs ProtocolIE-Container { {PositionCalculationRequestIEs} }, protocolExtensions ProtocolExtensionContainer { {PositionCalculationRequestExtensions} } OPTIONAL, ... } PositionCalculationRequestIEs PCAP-PROTOCOL-IES ::= { { ID id-UE-PositionEstimate CRITICALITY reject TYPE UE-PositionEstimate PRESENCE optional } | { ID id-GPS-MeasuredResultsList CRITICALITY reject TYPE MeasuredResultsList PRESENCE optional }, ... } PositionCalculationRequestExtensions PCAP-PROTOCOL-EXTENSION ::= { { ID id-CellId-MeasuredResultsSets CRITICALITY reject EXTENSION CellId-MeasuredResultsSets PRESENCE optional } | { ID id-OTDOA-MeasurementGroup CRITICALITY reject EXTENSION OTDOA-MeasurementGroup PRESENCE optional } | { ID id-HorizontalAccuracyCode CRITICALITY ignore EXTENSION HorizontalAccuracyCode PRESENCE optional } | { ID id-VerticalAccuracyCode CRITICALITY ignore EXTENSION VerticalAccuracyCode PRESENCE optional } | { ID id-UTDOA-Group CRITICALITY reject EXTENSION UTDOA-Group PRESENCE optional } | { ID id-Positioning-ResponseTime CRITICALITY ignore EXTENSION Positioning-ResponseTime PRESENCE optional } | { ID id-IncludeVelocity CRITICALITY ignore EXTENSION IncludeVelocity PRESENCE optional } | { ID id-PeriodicPosCalcInfo CRITICALITY ignore EXTENSION PeriodicPosCalcInfo PRESENCE optional } | { ID id-GANSS-MeasuredResultsList CRITICALITY reject EXTENSION GANSS-MeasuredResultsList PRESENCE optional } | { ID id-CellId-IRATMeasuredResultsSets CRITICALITY ignore EXTENSION CellId-IRATMeasuredResultsSets PRESENCE optional } | { ID id-IMSI CRITICALITY ignore EXTENSION IMSI PRESENCE optional } | { ID id-IMEI CRITICALITY ignore EXTENSION IMEI PRESENCE optional }, ... } -- ************************************************************** -- -- Position Calculation Response -- -- ************************************************************** PositionCalculationResponse ::= SEQUENCE { protocolIEs ProtocolIE-Container { {PositionCalculationResponseIEs} }, protocolExtensions ProtocolExtensionContainer { {PositionCalculationResponseExtensions} } OPTIONAL, ... } PositionCalculationResponseIEs PCAP-PROTOCOL-IES ::= { { ID id-UE-PositionEstimate CRITICALITY ignore TYPE UE-PositionEstimate PRESENCE mandatory } | { ID id-CriticalityDiagnostics CRITICALITY ignore TYPE CriticalityDiagnostics PRESENCE optional }, ... } PositionCalculationResponseExtensions PCAP-PROTOCOL-EXTENSION ::= { { ID id-AccuracyFulfilmentIndicator CRITICALITY ignore EXTENSION AccuracyFulfilmentIndicator PRESENCE optional} | { ID id-VelocityEstimate CRITICALITY ignore EXTENSION VelocityEstimate PRESENCE optional}, ... } -- ************************************************************** -- -- Position Calculation Failure -- -- ************************************************************** PositionCalculationFailure ::= SEQUENCE { protocolIEs ProtocolIE-Container { {PositionCalculationFailureIEs} }, protocolExtensions ProtocolExtensionContainer { {PositionCalculationFailureExtensions} } OPTIONAL, ... } PositionCalculationFailureIEs PCAP-PROTOCOL-IES ::= { { ID id-Cause CRITICALITY ignore TYPE Cause PRESENCE mandatory} | { ID id-CriticalityDiagnostics CRITICALITY ignore TYPE CriticalityDiagnostics PRESENCE optional }, ... } PositionCalculationFailureExtensions PCAP-PROTOCOL-EXTENSION ::= { ... } -- ************************************************************** -- -- INFORMATION EXCHANGE INITIATION REQUEST -- -- ************************************************************** InformationExchangeInitiationRequest ::= SEQUENCE { protocolIEs ProtocolIE-Container {{InformationExchangeInitiationRequest-IEs}}, protocolExtensions ProtocolExtensionContainer {{InformationExchangeInitiationRequest-Extensions}} OPTIONAL, ... } InformationExchangeInitiationRequest-IEs PCAP-PROTOCOL-IES ::= { { ID id-InformationExchangeID CRITICALITY reject TYPE InformationExchangeID PRESENCE mandatory }| { ID id-InformationExchangeObjectType-InfEx-Rqst CRITICALITY reject TYPE InformationExchangeObjectType-InfEx-Rqst PRESENCE mandatory }| -- This IE represents both the Information Exchange Object Type IE and the choice based on the Information Exchange Object Type -- as described in the tabular message format in clause 9.1. { ID id-InformationType CRITICALITY reject TYPE InformationType PRESENCE mandatory }| { ID id-InformationReportCharacteristics CRITICALITY reject TYPE InformationReportCharacteristics PRESENCE mandatory }| { ID id-GPS-UTRAN-TRU CRITICALITY reject TYPE GPS-UTRAN-TRU PRESENCE conditional }, -- This IE shall be present if the information requested in the Information Type IE contains GPS-related data ... } InformationExchangeInitiationRequest-Extensions PCAP-PROTOCOL-EXTENSION ::= { { ID id-GANSS-UTRAN-TRU CRITICALITY reject EXTENSION GANSS-UTRAN-TRU PRESENCE conditional } | -- This IE shall be present if the information requested in the Information Type IE contains GANSS-related data { ID id-IMSI CRITICALITY ignore EXTENSION IMSI PRESENCE optional } | { ID id-IMEI CRITICALITY ignore EXTENSION IMEI PRESENCE optional }, ... } InformationExchangeObjectType-InfEx-Rqst ::= CHOICE { referencePosition RefPosition-InfEx-Rqst, ... , extension-InformationExchangeObjectType-InfEx-Rqst Extension-InformationExchangeObjectType-InfEx-Rqst } RefPosition-InfEx-Rqst ::= SEQUENCE { referencePositionEstimate UE-PositionEstimate, iE-Extensions ProtocolExtensionContainer { { RefPositionItem-InfEx-Rqst-ExtIEs} } OPTIONAL, ... } RefPositionItem-InfEx-Rqst-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } Extension-InformationExchangeObjectType-InfEx-Rqst ::= ProtocolIE-Single-Container {{ Extension-InformationExchangeObjectType-InfEx-RqstIE }} Extension-InformationExchangeObjectType-InfEx-RqstIE PCAP-PROTOCOL-IES ::= { { ID id-UC-ID-InfEx-Rqst CRITICALITY reject TYPE UC-ID-InfEx-Rqst PRESENCE mandatory } | { ID id-CellId-MeasuredResultsSets CRITICALITY ignore TYPE CellId-MeasuredResultsSets PRESENCE mandatory } } UC-ID-InfEx-Rqst ::= SEQUENCE { referenceUC-ID UC-ID, iE-Extensions ProtocolExtensionContainer { { UCIDItem-InfEx-Rqst-ExtIEs} } OPTIONAL, ... } UCIDItem-InfEx-Rqst-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } -- ************************************************************** -- -- INFORMATION EXCHANGE INITIATION RESPONSE -- -- ************************************************************** InformationExchangeInitiationResponse ::= SEQUENCE { protocolIEs ProtocolIE-Container {{InformationExchangeInitiationResponse-IEs}}, protocolExtensions ProtocolExtensionContainer {{InformationExchangeInitiationResponse-Extensions}} OPTIONAL, ... } InformationExchangeInitiationResponse-IEs PCAP-PROTOCOL-IES ::= { { ID id-InformationExchangeID CRITICALITY ignore TYPE InformationExchangeID PRESENCE mandatory }| { ID id-InformationExchangeObjectType-InfEx-Rsp CRITICALITY ignore TYPE InformationExchangeObjectType-InfEx-Rsp PRESENCE optional }| { ID id-CriticalityDiagnostics CRITICALITY ignore TYPE CriticalityDiagnostics PRESENCE optional }, ... } InformationExchangeInitiationResponse-Extensions PCAP-PROTOCOL-EXTENSION ::= { ... } InformationExchangeObjectType-InfEx-Rsp ::= CHOICE { referencePosition RefPosition-InfEx-Rsp, ... } RefPosition-InfEx-Rsp ::= SEQUENCE { requestedDataValue RequestedDataValue, iE-Extensions ProtocolExtensionContainer { { RefPositionItem-InfEx-Rsp-ExtIEs} } OPTIONAL, ... } RefPositionItem-InfEx-Rsp-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } -- ************************************************************** -- -- INFORMATION EXCHANGE INITIATION FAILURE -- -- ************************************************************** InformationExchangeInitiationFailure ::= SEQUENCE { protocolIEs ProtocolIE-Container {{InformationExchangeInitiationFailure-IEs}}, protocolExtensions ProtocolExtensionContainer {{InformationExchangeInitiationFailure-Extensions}} OPTIONAL, ... } InformationExchangeInitiationFailure-IEs PCAP-PROTOCOL-IES ::= { { ID id-InformationExchangeID CRITICALITY ignore TYPE InformationExchangeID PRESENCE mandatory }| { ID id-Cause CRITICALITY ignore TYPE Cause PRESENCE mandatory }| { ID id-CriticalityDiagnostics CRITICALITY ignore TYPE CriticalityDiagnostics PRESENCE optional }, ... } InformationExchangeInitiationFailure-Extensions PCAP-PROTOCOL-EXTENSION ::= { ... } -- ************************************************************** -- -- POSITION INITIATION REQUEST -- -- ************************************************************** PositionInitiationRequest ::= SEQUENCE { protocolIEs ProtocolIE-Container { {PositionInitiationRequestIEs} }, protocolExtensions ProtocolExtensionContainer { {PositionInitiationRequestExtensions} } OPTIONAL, ... } PositionInitiationRequestIEs PCAP-PROTOCOL-IES ::= { { ID id-RequestType CRITICALITY reject TYPE RequestType PRESENCE mandatory } | { ID id-UE-PositioningCapability CRITICALITY reject TYPE UE-PositioningCapability PRESENCE mandatory } | { ID id-UC-id CRITICALITY reject TYPE UC-ID PRESENCE mandatory } | { ID id-VerticalAccuracyCode CRITICALITY ignore TYPE VerticalAccuracyCode PRESENCE optional } | { ID id-ResponseTime CRITICALITY ignore TYPE ResponseTime PRESENCE optional } | { ID id-PositioningPriority CRITICALITY ignore TYPE PositioningPriority PRESENCE optional } | { ID id-ClientType CRITICALITY ignore TYPE ClientType PRESENCE optional }, ... } PositionInitiationRequestExtensions PCAP-PROTOCOL-EXTENSION ::= { { ID id-IncludeVelocity CRITICALITY ignore EXTENSION IncludeVelocity PRESENCE optional }| { ID id-PeriodicLocationInfo CRITICALITY ignore EXTENSION PeriodicLocationInfo PRESENCE optional }| { ID id-IMSI CRITICALITY ignore EXTENSION IMSI PRESENCE optional }| { ID id-IMEI CRITICALITY ignore EXTENSION IMEI PRESENCE optional }, ... } -- ************************************************************** -- -- POSITION INITIATION RESPONSE -- -- ************************************************************** PositionInitiationResponse ::= SEQUENCE { protocolIEs ProtocolIE-Container { {PositionInitiationResponseIEs} }, protocolExtensions ProtocolExtensionContainer { {PositionInitiationResponseExtensions} } OPTIONAL, ... } PositionInitiationResponseIEs PCAP-PROTOCOL-IES ::= { { ID id-UE-PositionEstimate CRITICALITY reject TYPE UE-PositionEstimate PRESENCE mandatory } | { ID id-PositionData CRITICALITY ignore TYPE PositionData PRESENCE mandatory } | { ID id-AccuracyFulfilmentIndicator CRITICALITY ignore TYPE AccuracyFulfilmentIndicator PRESENCE optional }, ... } PositionInitiationResponseExtensions PCAP-PROTOCOL-EXTENSION ::= { { ID id-VelocityEstimate CRITICALITY ignore EXTENSION VelocityEstimate PRESENCE optional }, ... } -- ************************************************************** -- -- POSITION INITIATION FAILURE -- -- ************************************************************** PositionInitiationFailure ::= SEQUENCE { protocolIEs ProtocolIE-Container { {PositionInitiationFailureIEs} }, protocolExtensions ProtocolExtensionContainer { {PositionInitiationFailureExtensions} } OPTIONAL, ... } PositionInitiationFailureIEs PCAP-PROTOCOL-IES ::= { { ID id-Cause CRITICALITY ignore TYPE Cause PRESENCE mandatory } | { ID id-CriticalityDiagnostics CRITICALITY ignore TYPE CriticalityDiagnostics PRESENCE optional }, ... } PositionInitiationFailureExtensions PCAP-PROTOCOL-EXTENSION ::= { ... } -- ************************************************************** -- -- POSITION ACTIVATION REQUEST -- -- ************************************************************** PositionActivationRequest ::= SEQUENCE { protocolIEs ProtocolIE-Container { {PositionActivationRequestIEs} }, protocolExtensions ProtocolExtensionContainer { {PositionActivationRequestExtensions} } OPTIONAL, ... } PositionActivationRequestIEs PCAP-PROTOCOL-IES ::= { { ID id-PositioningMethod CRITICALITY reject TYPE PositioningMethod PRESENCE mandatory } | { ID id-Positioning-ResponseTime CRITICALITY ignore TYPE Positioning-ResponseTime PRESENCE mandatory } | { ID id-PositioningPriority CRITICALITY ignore TYPE PositioningPriority PRESENCE optional } | { ID id-EnvironmentCharacterisation CRITICALITY ignore TYPE EnvironmentCharacterisation PRESENCE optional } | { ID id-UTDOAPositioning CRITICALITY reject TYPE UTDOAPositioning PRESENCE optional } | { ID id-GPSPositioning CRITICALITY reject TYPE GPSPositioning PRESENCE optional } | { ID id-OTDOAAssistanceData CRITICALITY reject TYPE OTDOAAssistanceData PRESENCE optional }, ... } PositionActivationRequestExtensions PCAP-PROTOCOL-EXTENSION ::= { { ID id-IncludeVelocity CRITICALITY ignore EXTENSION IncludeVelocity PRESENCE optional } | { ID id-AmountOfReporting CRITICALITY ignore EXTENSION AmountOfReporting PRESENCE optional } | { ID id-CellIDPositioning CRITICALITY ignore EXTENSION CellIDPositioning PRESENCE optional }| { ID id-GANSSPositioning CRITICALITY reject EXTENSION GANSSPositioning PRESENCE optional }, ... } -- ************************************************************** -- -- POSITION ACTIVATION RESPONSE -- -- ************************************************************** PositionActivationResponse ::= SEQUENCE { protocolIEs ProtocolIE-Container { {PositionActivationResponseIEs} }, protocolExtensions ProtocolExtensionContainer { {PositionActivationResponseExtensions} } OPTIONAL, ... } PositionActivationResponseIEs PCAP-PROTOCOL-IES ::= { { ID id-UE-PositionEstimateInfo CRITICALITY ignore TYPE UE-PositionEstimateInfo PRESENCE optional } | { ID id-GPS-MeasuredResultsList CRITICALITY reject TYPE MeasuredResultsList PRESENCE optional } | { ID id-CellId-MeasuredResultsSets CRITICALITY reject TYPE CellId-MeasuredResultsSets PRESENCE optional } | { ID id-OTDOA-MeasuredResultsSets CRITICALITY reject TYPE OTDOA-MeasuredResultsSets PRESENCE optional } | { ID id-UTDOA-Group CRITICALITY reject TYPE UTDOA-Group PRESENCE optional }, ... } PositionActivationResponseExtensions PCAP-PROTOCOL-EXTENSION ::= { { ID id-VelocityEstimate CRITICALITY ignore EXTENSION VelocityEstimate PRESENCE optional}| { ID id-MeasInstructionsUsed CRITICALITY ignore EXTENSION MeasInstructionsUsed PRESENCE optional}| { ID id-GANSS-MeasuredResultsList CRITICALITY reject EXTENSION GANSS-MeasuredResultsList PRESENCE optional}| { ID id-AdditionalGPSAssistDataRequired CRITICALITY ignore EXTENSION AdditionalGPSAssistDataRequired PRESENCE optional}| { ID id-AdditionalGanssAssistDataRequired CRITICALITY ignore EXTENSION AdditionalGanssAssistDataRequired PRESENCE optional}| { ID id-OTDOA-ReferenceCellInfo CRITICALITY reject EXTENSION OTDOA-ReferenceCellInfoSAS-centric PRESENCE optional}| { ID id-CellId-IRATMeasuredResultsSets CRITICALITY ignore EXTENSION CellId-IRATMeasuredResultsSets PRESENCE optional}| { ID id-AddPos-MeasuredResults CRITICALITY reject EXTENSION AddPos-MeasuredResults PRESENCE optional}, ... } -- ************************************************************** -- -- POSITION ACTIVATION FAILURE -- -- ************************************************************** PositionActivationFailure ::= SEQUENCE { protocolIEs ProtocolIE-Container { {PositionActivationFailureIEs} }, protocolExtensions ProtocolExtensionContainer { {PositionActivationFailureExtensions} } OPTIONAL, ... } PositionActivationFailureIEs PCAP-PROTOCOL-IES ::= { { ID id-Cause CRITICALITY ignore TYPE Cause PRESENCE mandatory } | { ID id-CriticalityDiagnostics CRITICALITY ignore TYPE CriticalityDiagnostics PRESENCE optional }, ... } PositionActivationFailureExtensions PCAP-PROTOCOL-EXTENSION ::= { ... } -- ************************************************************** -- -- INFORMATION REPORT -- -- ************************************************************** InformationReport ::= SEQUENCE { protocolIEs ProtocolIE-Container {{InformationReport-IEs}}, protocolExtensions ProtocolExtensionContainer {{InformationReport-Extensions}} OPTIONAL, ... } InformationReport-IEs PCAP-PROTOCOL-IES ::= { { ID id-InformationExchangeID CRITICALITY ignore TYPE InformationExchangeID PRESENCE mandatory }| { ID id-InformationExchangeObjectType-InfEx-Rprt CRITICALITY ignore TYPE InformationExchangeObjectType-InfEx-Rprt PRESENCE mandatory }, ... } InformationReport-Extensions PCAP-PROTOCOL-EXTENSION ::= { ... } InformationExchangeObjectType-InfEx-Rprt ::= CHOICE { referencePosition RefPosition-InfEx-Rprt, ... } RefPosition-InfEx-Rprt ::= SEQUENCE { requestedDataValueInformation RequestedDataValueInformation, iE-Extensions ProtocolExtensionContainer {{ RefPositionItem-InfEx-Rprt-ExtIEs }} OPTIONAL, ... } RefPositionItem-InfEx-Rprt-ExtIEs PCAP-PROTOCOL-EXTENSION ::= { ... } -- ************************************************************** -- -- INFORMATION EXCHANGE TERMINATION REQUEST -- -- ************************************************************** InformationExchangeTerminationRequest ::= SEQUENCE { protocolIEs ProtocolIE-Container {{InformationExchangeTerminationRequest-IEs}}, protocolExtensions ProtocolExtensionContainer {{InformationExchangeTerminationRequest-Extensions}} OPTIONAL, ... } InformationExchangeTerminationRequest-IEs PCAP-PROTOCOL-IES ::= { { ID id-InformationExchangeID CRITICALITY ignore TYPE InformationExchangeID PRESENCE mandatory}, ... } InformationExchangeTerminationRequest-Extensions PCAP-PROTOCOL-EXTENSION ::= { ... } -- ************************************************************** -- -- INFORMATION EXCHANGE FAILURE INDICATION -- -- ************************************************************** InformationExchangeFailureIndication ::= SEQUENCE { protocolIEs ProtocolIE-Container {{InformationExchangeFailureIndication-IEs}}, protocolExtensions ProtocolExtensionContainer {{InformationExchangeFailureIndication-Extensions}} OPTIONAL, ... } InformationExchangeFailureIndication-IEs PCAP-PROTOCOL-IES ::= { { ID id-InformationExchangeID CRITICALITY ignore TYPE InformationExchangeID PRESENCE mandatory }| { ID id-Cause CRITICALITY ignore TYPE Cause PRESENCE mandatory }, ... } InformationExchangeFailureIndication-Extensions PCAP-PROTOCOL-EXTENSION ::= { ... } -- ************************************************************** -- -- Error Indication -- -- ************************************************************** ErrorIndication ::= SEQUENCE { protocolIEs ProtocolIE-Container { {ErrorIndicationIEs} }, protocolExtensions ProtocolExtensionContainer { {ErrorIndicationExtensions} } OPTIONAL, ... } ErrorIndicationIEs PCAP-PROTOCOL-IES ::= { { ID id-Cause CRITICALITY ignore TYPE Cause PRESENCE optional } | { ID id-CriticalityDiagnostics CRITICALITY ignore TYPE CriticalityDiagnostics PRESENCE optional }, ... } ErrorIndicationExtensions PCAP-PROTOCOL-EXTENSION ::= { ... } -- ************************************************************** -- -- POSITION PARAMETER MODIFICATION -- -- ************************************************************** PositionParameterModification ::= SEQUENCE { protocolIEs ProtocolIE-Container { {PositionParameterModificationIEs} }, protocolExtensions ProtocolExtensionContainer { {PositionParameterModificationExtensions} } OPTIONAL, ... } PositionParameterModificationIEs PCAP-PROTOCOL-IES ::= { { ID id-UC-id CRITICALITY reject TYPE UC-ID PRESENCE optional }| { ID id-UTDOA-Group CRITICALITY reject TYPE UTDOA-Group PRESENCE optional }, ... } PositionParameterModificationExtensions PCAP-PROTOCOL-EXTENSION ::= { { ID id-RRCstateChange CRITICALITY ignore EXTENSION RRCstateChange PRESENCE optional}, ... } -- ************************************************************** -- -- PRIVATE MESSAGE -- -- ************************************************************** PrivateMessage ::= SEQUENCE { privateIEs PrivateIE-Container {{PrivateMessage-IEs}}, ... } PrivateMessage-IEs PCAP-PRIVATE-IES ::= { ... } -- ************************************************************** -- -- ABORT -- -- ************************************************************** Abort ::= SEQUENCE { protocolIEs ProtocolIE-Container { {AbortIEs} }, protocolExtensions ProtocolExtensionContainer { {AbortExtensions} } OPTIONAL, ... } AbortIEs PCAP-PROTOCOL-IES ::= { { ID id-Cause CRITICALITY ignore TYPE Cause PRESENCE mandatory }, ... } AbortExtensions PCAP-PROTOCOL-EXTENSION ::= { ... } -- ************************************************************** -- -- POSITION PERIODIC REPORT -- -- ************************************************************** PositionPeriodicReport ::= SEQUENCE { protocolIEs ProtocolIE-Container {{PositionPeriodicReport-IEs}}, protocolExtensions ProtocolExtensionContainer {{PositionPeriodicReport-Extensions}} OPTIONAL, ... } PositionPeriodicReport-IEs PCAP-PROTOCOL-IES ::= { { ID id-UE-PositionEstimateInfo CRITICALITY ignore TYPE UE-PositionEstimateInfo PRESENCE optional } | { ID id-VelocityEstimate CRITICALITY ignore TYPE VelocityEstimate PRESENCE optional } | { ID id-GPS-MeasuredResultsList CRITICALITY ignore TYPE MeasuredResultsList PRESENCE optional } | { ID id-CellId-MeasuredResultsSets CRITICALITY ignore TYPE CellId-MeasuredResultsSets PRESENCE optional } | { ID id-OTDOA-MeasuredResultsSets CRITICALITY ignore TYPE OTDOA-MeasuredResultsSets PRESENCE optional } | { ID id-Cause CRITICALITY ignore TYPE Cause PRESENCE optional } , ... } PositionPeriodicReport-Extensions PCAP-PROTOCOL-EXTENSION ::= { { ID id-GANSS-MeasuredResultsList CRITICALITY ignore EXTENSION GANSS-MeasuredResultsList PRESENCE optional}| { ID id-AdditionalGPSAssistDataRequired CRITICALITY ignore EXTENSION AdditionalGPSAssistDataRequired PRESENCE optional}| { ID id-AdditionalGanssAssistDataRequired CRITICALITY ignore EXTENSION AdditionalGanssAssistDataRequired PRESENCE optional}| { ID id-OTDOA-ReferenceCellInfo CRITICALITY reject EXTENSION OTDOA-ReferenceCellInfoSAS-centric PRESENCE optional}| { ID id-CellId-IRATMeasuredResultsSets CRITICALITY ignore EXTENSION CellId-IRATMeasuredResultsSets PRESENCE optional}| { ID id-AddPos-MeasuredResults CRITICALITY ignore EXTENSION AddPos-MeasuredResults PRESENCE optional}, ... } -- ************************************************************** -- -- POSITION PERIODIC RESULT -- -- ************************************************************** PositionPeriodicResult ::= SEQUENCE { protocolIEs ProtocolIE-Container {{PositionPeriodicResult-IEs}}, protocolExtensions ProtocolExtensionContainer {{PositionPeriodicResult-Extensions}} OPTIONAL, ... } PositionPeriodicResult-IEs PCAP-PROTOCOL-IES ::= { { ID id-UE-PositionEstimate CRITICALITY ignore TYPE UE-PositionEstimate PRESENCE optional } | { ID id-VelocityEstimate CRITICALITY ignore TYPE VelocityEstimate PRESENCE optional } | { ID id-PositionData CRITICALITY ignore TYPE PositionData PRESENCE optional } | { ID id-AccuracyFulfilmentIndicator CRITICALITY ignore TYPE AccuracyFulfilmentIndicator PRESENCE optional } | { ID id-Cause CRITICALITY ignore TYPE Cause PRESENCE optional }, ... } PositionPeriodicResult-Extensions PCAP-PROTOCOL-EXTENSION ::= { ... } -- ************************************************************** -- -- POSITION PERIODIC TERMINATION -- -- ************************************************************** PositionPeriodicTermination ::= SEQUENCE { protocolIEs ProtocolIE-Container {{PositionPeriodicTermination-IEs}}, protocolExtensions ProtocolExtensionContainer {{PositionPeriodicTermination-Extensions}} OPTIONAL, ... } PositionPeriodicTermination-IEs PCAP-PROTOCOL-IES ::= { { ID id-PeriodicTerminationCause CRITICALITY ignore TYPE PeriodicTerminationCause PRESENCE optional }, ... } PositionPeriodicTermination-Extensions PCAP-PROTOCOL-EXTENSION ::= { ... } END
ASN.1
wireshark/epan/dissectors/asn1/pcap/PCAP-PDU-Descriptions.asn
-- -- 3GPP TS 25.453 V17.0.0 (2022-04) -- -- 9.3.2 Elementary Procedure Definitions -- ************************************************************** -- -- Elementary Procedure definitions -- -- ************************************************************** PCAP-PDU-Descriptions { itu-t (0) identified-organization (4) etsi (0) mobileDomain (0) umts-Access (20) modules (3) pcap(4) version1 (1) pcap-PDU-Descriptions (0)} DEFINITIONS AUTOMATIC TAGS ::= BEGIN -- ************************************************************** -- -- IE parameter types from other modules. -- -- ************************************************************** IMPORTS Criticality, ProcedureCode, TransactionID FROM PCAP-CommonDataTypes PositionCalculationRequest, PositionCalculationResponse, PositionCalculationFailure, InformationExchangeInitiationRequest, InformationExchangeInitiationResponse, InformationExchangeInitiationFailure, InformationReport, InformationExchangeTerminationRequest, InformationExchangeFailureIndication, ErrorIndication, PrivateMessage, PositionInitiationRequest, PositionInitiationResponse, PositionInitiationFailure, PositionActivationRequest, PositionActivationResponse, PositionActivationFailure, PositionParameterModification, Abort, PositionPeriodicReport, PositionPeriodicResult, PositionPeriodicTermination FROM PCAP-PDU-Contents id-PositionCalculation, id-InformationExchangeInitiation, id-InformationReporting, id-InformationExchangeTermination, id-InformationExchangeFailure, id-ErrorIndication, id-privateMessage, id-PositionInitiation, id-PositionActivation, id-PositionParameterModification, id-Abort, id-PositionPeriodicReport, id-PositionPeriodicResult, id-PositionPeriodicTermination FROM PCAP-Constants; -- ************************************************************** -- -- Interface Elementary Procedure Class -- -- ************************************************************** PCAP-ELEMENTARY-PROCEDURE ::= CLASS { &InitiatingMessage , &SuccessfulOutcome OPTIONAL, &UnsuccessfulOutcome OPTIONAL, &Outcome OPTIONAL, &procedureCode ProcedureCode UNIQUE, &criticality Criticality DEFAULT ignore } WITH SYNTAX { INITIATING MESSAGE &InitiatingMessage [SUCCESSFUL OUTCOME &SuccessfulOutcome] [UNSUCCESSFUL OUTCOME &UnsuccessfulOutcome] [OUTCOME &Outcome] PROCEDURE CODE &procedureCode [CRITICALITY &criticality] } -- ************************************************************** -- -- Interface PDU definitions -- -- ************************************************************** PCAP-PDU ::= CHOICE { initiatingMessage InitiatingMessage, successfulOutcome SuccessfulOutcome, unsuccessfulOutcome UnsuccessfulOutcome, outcome Outcome, ... } InitiatingMessage ::= SEQUENCE { procedureCode PCAP-ELEMENTARY-PROCEDURE.&procedureCode ({PCAP-ELEMENTARY-PROCEDURES}), criticality PCAP-ELEMENTARY-PROCEDURE.&criticality ({PCAP-ELEMENTARY-PROCEDURES}{@procedureCode}), transactionID TransactionID, value PCAP-ELEMENTARY-PROCEDURE.&InitiatingMessage ({PCAP-ELEMENTARY-PROCEDURES}{@procedureCode}) } SuccessfulOutcome ::= SEQUENCE { procedureCode PCAP-ELEMENTARY-PROCEDURE.&procedureCode ({PCAP-ELEMENTARY-PROCEDURES}), criticality PCAP-ELEMENTARY-PROCEDURE.&criticality ({PCAP-ELEMENTARY-PROCEDURES}{@procedureCode}), transactionID TransactionID, value PCAP-ELEMENTARY-PROCEDURE.&SuccessfulOutcome ({PCAP-ELEMENTARY-PROCEDURES}{@procedureCode}) } UnsuccessfulOutcome ::= SEQUENCE { procedureCode PCAP-ELEMENTARY-PROCEDURE.&procedureCode ({PCAP-ELEMENTARY-PROCEDURES}), criticality PCAP-ELEMENTARY-PROCEDURE.&criticality ({PCAP-ELEMENTARY-PROCEDURES}{@procedureCode}), transactionID TransactionID, value PCAP-ELEMENTARY-PROCEDURE.&UnsuccessfulOutcome ({PCAP-ELEMENTARY-PROCEDURES}{@procedureCode}) } Outcome ::= SEQUENCE { procedureCode PCAP-ELEMENTARY-PROCEDURE.&procedureCode ({PCAP-ELEMENTARY-PROCEDURES}), criticality PCAP-ELEMENTARY-PROCEDURE.&criticality ({PCAP-ELEMENTARY-PROCEDURES}{@procedureCode}), transactionID TransactionID, value PCAP-ELEMENTARY-PROCEDURE.&Outcome ({PCAP-ELEMENTARY-PROCEDURES}{@procedureCode}) } -- ************************************************************** -- -- Interface Elementary Procedure List -- -- ************************************************************** PCAP-ELEMENTARY-PROCEDURES PCAP-ELEMENTARY-PROCEDURE ::= { PCAP-ELEMENTARY-PROCEDURES-CLASS-1 | PCAP-ELEMENTARY-PROCEDURES-CLASS-2 , ... } PCAP-ELEMENTARY-PROCEDURES-CLASS-1 PCAP-ELEMENTARY-PROCEDURE ::= { positionCalculation | informationExchangeInitiation, ..., positionInitiation | positionActivation } PCAP-ELEMENTARY-PROCEDURES-CLASS-2 PCAP-ELEMENTARY-PROCEDURE ::= { informationReporting | informationExchangeTermination | informationExchangeFailure | errorIndication | privateMessage, ..., positionParameterModification | abort | positionPeriodicReport | positionPeriodicResult | positionPeriodicTermination } -- ************************************************************** -- -- Interface Elementary Procedures -- -- ************************************************************** positionCalculation PCAP-ELEMENTARY-PROCEDURE ::= { INITIATING MESSAGE PositionCalculationRequest SUCCESSFUL OUTCOME PositionCalculationResponse UNSUCCESSFUL OUTCOME PositionCalculationFailure PROCEDURE CODE id-PositionCalculation CRITICALITY reject } informationExchangeInitiation PCAP-ELEMENTARY-PROCEDURE ::= { INITIATING MESSAGE InformationExchangeInitiationRequest SUCCESSFUL OUTCOME InformationExchangeInitiationResponse UNSUCCESSFUL OUTCOME InformationExchangeInitiationFailure PROCEDURE CODE id-InformationExchangeInitiation CRITICALITY reject } positionInitiation PCAP-ELEMENTARY-PROCEDURE ::= { INITIATING MESSAGE PositionInitiationRequest SUCCESSFUL OUTCOME PositionInitiationResponse UNSUCCESSFUL OUTCOME PositionInitiationFailure PROCEDURE CODE id-PositionInitiation CRITICALITY reject } positionActivation PCAP-ELEMENTARY-PROCEDURE ::= { INITIATING MESSAGE PositionActivationRequest SUCCESSFUL OUTCOME PositionActivationResponse UNSUCCESSFUL OUTCOME PositionActivationFailure PROCEDURE CODE id-PositionActivation CRITICALITY reject } informationReporting PCAP-ELEMENTARY-PROCEDURE ::= { INITIATING MESSAGE InformationReport PROCEDURE CODE id-InformationReporting CRITICALITY ignore } informationExchangeTermination PCAP-ELEMENTARY-PROCEDURE ::= { INITIATING MESSAGE InformationExchangeTerminationRequest PROCEDURE CODE id-InformationExchangeTermination CRITICALITY ignore } informationExchangeFailure PCAP-ELEMENTARY-PROCEDURE ::= { INITIATING MESSAGE InformationExchangeFailureIndication PROCEDURE CODE id-InformationExchangeFailure CRITICALITY ignore } errorIndication PCAP-ELEMENTARY-PROCEDURE ::= { INITIATING MESSAGE ErrorIndication PROCEDURE CODE id-ErrorIndication CRITICALITY ignore } privateMessage PCAP-ELEMENTARY-PROCEDURE ::= { INITIATING MESSAGE PrivateMessage PROCEDURE CODE id-privateMessage CRITICALITY ignore } positionParameterModification PCAP-ELEMENTARY-PROCEDURE ::= { INITIATING MESSAGE PositionParameterModification PROCEDURE CODE id-PositionParameterModification CRITICALITY ignore } abort PCAP-ELEMENTARY-PROCEDURE ::= { INITIATING MESSAGE Abort PROCEDURE CODE id-Abort CRITICALITY ignore } positionPeriodicReport PCAP-ELEMENTARY-PROCEDURE ::= { INITIATING MESSAGE PositionPeriodicReport PROCEDURE CODE id-PositionPeriodicReport CRITICALITY ignore } positionPeriodicResult PCAP-ELEMENTARY-PROCEDURE ::= { INITIATING MESSAGE PositionPeriodicResult PROCEDURE CODE id-PositionPeriodicResult CRITICALITY ignore } positionPeriodicTermination PCAP-ELEMENTARY-PROCEDURE ::= { INITIATING MESSAGE PositionPeriodicTermination PROCEDURE CODE id-PositionPeriodicTermination CRITICALITY ignore } END
Configuration
wireshark/epan/dissectors/asn1/pcap/pcap.cnf
# pcap.cnf # pcap conformation file #.OPT PER ALIGNED -L #.END #.EXPORTS #.PDU PCAP-PDU #.MAKE_ENUM ProcedureCode ProtocolIE-ID #.USE_VALS_EXT ProtocolIE-ID CauseRadioNetwork TDD-ChannelisationCode SFN-SFN-Drift CodePhaseSearchWindow TUTRAN-GANSS-DriftRate UTRAN-GPS-DriftRate ExplicitInformation #.NO_EMIT #.OMIT_ASSIGNMENT # Get rid of unused code warnings ProtocolIE-ContainerList Presence #.END #.TYPE_RENAME InitiatingMessage/value InitiatingMessage_value SuccessfulOutcome/value SuccessfulOutcome_value UnsuccessfulOutcome/value UnsuccessfulOutcome_value Outcome/value Outcome_value #.FIELD_RENAME InitiatingMessage/value initiatingMessagevalue UnsuccessfulOutcome/value unsuccessfulOutcome_value SuccessfulOutcome/value successfulOutcome_value Outcome/value outcome_value PrivateIE-Field/id private_id ProtocolExtensionField/id ext_id PrivateIE-Field/value private_value ProtocolIE-Field/value ie_field_value AlmanacSatInfo/t-oa almanacSatInfo_t-oa ReqDataBitAssistanceList/ganssSignalID reqDataBitAssistanceList_ganssSignalID NetworkAssistedGANSSSupport/_item/ganssSignalID networkAssistedGANSSSupport_item_ganssSignalID GANSS-PositioningInstructions/additionalAssistanceDataRequest gANSS-PositioningInstructions_additionalAssistanceDataRequest #.FIELD_ATTR AlmanacSatInfo/t-oa ABBREV=almanacSatInfo.t-oa ReqDataBitAssistanceList/ganssSignalID ABBREV=reqDataBitAssistanceList.ganssSignalID NetworkAssistedGANSSSupport/_item/ganssSignalID ABBREV=networkAssistedGANSSSupport.item.ganssSignalID GANSS-PositioningInstructions/additionalAssistanceDataRequest ABBREV=gANSS-PositioningInstructions.additionalAssistanceDataRequest #.FN_PARS ProtocolIE-ID VAL_PTR=&ProtocolIE_ID #.FN_FTR ProtocolIE-ID if (tree) { proto_item_append_text(proto_item_get_parent_nth(actx->created_item, 2), ": %s", val_to_str_ext(ProtocolIE_ID, &pcap_ProtocolIE_ID_vals_ext, "unknown (%d)")); } #.END #.FN_PARS ProtocolIE-Field/value FN_VARIANT=_pdu_new TYPE_REF_FN=dissect_ProtocolIEFieldValue #.FN_PARS ProtocolExtensionField/extensionValue FN_VARIANT=_pdu_new TYPE_REF_FN=dissect_ProtocolExtensionFieldExtensionValue #.FN_PARS ProcedureCode VAL_PTR = &ProcedureCode #.FN_FTR ProcedureCode col_add_fstr(actx->pinfo->cinfo, COL_INFO, "%s ", val_to_str(ProcedureCode, pcap_ProcedureCode_vals, "unknown message")); #.END #.FN_PARS InitiatingMessage/value FN_VARIANT=_pdu_new TYPE_REF_FN=dissect_InitiatingMessageValue #.FN_PARS SuccessfulOutcome/value FN_VARIANT=_pdu_new TYPE_REF_FN=dissect_SuccessfulOutcomeValue #.FN_PARS UnsuccessfulOutcome/value FN_VARIANT=_pdu_new TYPE_REF_FN=dissect_UnsuccessfulOutcomeValue #.FN_PARS Outcome/value FN_VARIANT=_pdu_new TYPE_REF_FN=dissect_OutcomeValue #--- Parameterization is not supported in asn2wrs --- # Not used yet in PCAP ASN.1 #ProtocolIE-ContainerList {INTEGER : lowerBound, INTEGER : upperBound, PCAP-PROTOCOL-IES : IEsSetParam} ::= # SEQUENCE (SIZE (lowerBound..upperBound)) OF # ProtocolIE-Container {{IEsSetParam}} # FN_PARS ProtocolIE-ContainerList #MIN_VAL = asn1_param_get_integer(%(ACTX)s,"lowerBound") #MAX_VAL = asn1_param_get_integer(%(ACTX)s,"upperBound") # FN_HDR ProtocolIE-ContainerList # static const asn1_par_def_t ProtocolIE_ContainerList_pars[] = { # { "lowerBound", ASN1_PAR_INTEGER }, # { "upperBound", ASN1_PAR_INTEGER }, # { NULL, 0 } # }; # asn1_stack_frame_check(actx, "ProtocolIE-ContainerList", ProtocolIE_ContainerList_pars); # END #ProtocolIE-ContainerPairList {INTEGER : lowerBound, INTEGER : upperBound, PCAP-PROTOCOL-IES-PAIR : IEsSetParam} ::= # SEQUENCE (SIZE (lowerBound..upperBound)) OF # ProtocolIE-ContainerPair {{IEsSetParam}} #RAB-IE-ContainerList { PCAP-PROTOCOL-IES : IEsSetParam } ::= ProtocolIE-ContainerList { 1, maxNrOfRABs, {IEsSetParam} } #ProtocolError-IE-ContainerList { PCAP-PROTOCOL-IES : IEsSetParam } ::= ProtocolIE-ContainerList { 1, maxNrOfRABs, {IEsSetParam} } # FN_BODY ProtocolError-IE-ContainerList # asn1_stack_frame_push(%(ACTX)s, "ProtocolIE-ContainerList"); # asn1_param_push_integer(%(ACTX)s, 1); # asn1_param_push_integer(%(ACTX)s, maxNrOfRABs); #%(DEFAULT_BODY)s # asn1_stack_frame_pop(%(ACTX)s, "ProtocolIE-ContainerList"); # END #.TYPE_ATTR ProtocolExtensionID TYPE = FT_UINT8 DISPLAY = BASE_DEC|BASE_EXT_STRING STRINGS = &pcap_ProtocolIE_ID_vals_ext #.ASSIGN_VALUE_TO_TYPE # PCAP does not have constants assigned to types, they are pure INTEGER # ProcedureCode id-PositionCalculation ProcedureCode id-InformationExchangeInitiation ProcedureCode id-InformationReporting ProcedureCode id-InformationExchangeTermination ProcedureCode id-InformationExchangeFailure ProcedureCode id-ErrorIndication ProcedureCode id-privateMessage ProcedureCode id-PositionParameterModification ProcedureCode id-PositionInitiation ProcedureCode id-PositionActivation ProcedureCode id-Abort ProcedureCode id-PositionPeriodicReport ProcedureCode id-PositionPeriodicResult ProcedureCode id-PositionPeriodicTermination ProcedureCode # ProtocolIE-ID id-Cause ProtocolIE-ID id-CriticalityDiagnostics ProtocolIE-ID id-GPS-UTRAN-TRU ProtocolIE-ID id-InformationExchangeID ProtocolIE-ID id-InformationExchangeObjectType-InfEx-Rprt ProtocolIE-ID id-InformationExchangeObjectType-InfEx-Rqst ProtocolIE-ID id-InformationExchangeObjectType-InfEx-Rsp ProtocolIE-ID id-InformationReportCharacteristics ProtocolIE-ID id-InformationType ProtocolIE-ID id-GPS-MeasuredResultsList ProtocolIE-ID id-MethodType ProtocolIE-ID id-RefPosition-InfEx-Rqst ProtocolIE-ID id-RefPosition-InfEx-Rsp ProtocolIE-ID id-RefPosition-Inf-Rprt ProtocolIE-ID id-RequestedDataValue ProtocolIE-ID id-RequestedDataValueInformation ProtocolIE-ID id-TransactionID ProtocolIE-ID id-UE-PositionEstimate ProtocolIE-ID id-CellId-MeasuredResultsSets ProtocolIE-ID id-OTDOA-MeasurementGroup ProtocolIE-ID id-AccuracyFulfilmentIndicator ProtocolIE-ID id-HorizontalAccuracyCode ProtocolIE-ID id-VerticalAccuracyCode ProtocolIE-ID id-UTDOA-Group ProtocolIE-ID id-RequestType ProtocolIE-ID id-UE-PositioningCapability ProtocolIE-ID id-UC-id ProtocolIE-ID id-ResponseTime ProtocolIE-ID id-PositioningPriority ProtocolIE-ID id-ClientType ProtocolIE-ID id-PositioningMethod ProtocolIE-ID id-UTDOAPositioning ProtocolIE-ID id-GPSPositioning ProtocolIE-ID id-OTDOAAssistanceData ProtocolIE-ID id-Positioning-ResponseTime ProtocolIE-ID id-EnvironmentCharacterisation ProtocolIE-ID id-PositionData ProtocolIE-ID id-IncludeVelocity ProtocolIE-ID id-VelocityEstimate ProtocolIE-ID id-rxTimingDeviation768Info ProtocolIE-ID id-UC-ID-InfEx-Rqst ProtocolIE-ID id-UE-PositionEstimateInfo ProtocolIE-ID id-UTRAN-GPSReferenceTime ProtocolIE-ID id-UTRAN-GPSReferenceTimeResult ProtocolIE-ID id-UTRAN-GPS-DriftRate ProtocolIE-ID id-OTDOA-AddMeasuredResultsInfo ProtocolIE-ID id-GPS-ReferenceLocation ProtocolIE-ID id-OTDOA-MeasuredResultsSets ProtocolIE-ID id-rxTimingDeviation384extInfo ProtocolIE-ID id-ExtendedRoundTripTime ProtocolIE-ID id-PeriodicPosCalcInfo ProtocolIE-ID id-PeriodicLocationInfo ProtocolIE-ID id-AmountOfReporting ProtocolIE-ID id-MeasInstructionsUsed ProtocolIE-ID id-RRCstateChange ProtocolIE-ID id-PeriodicTerminationCause ProtocolIE-ID id-MeasurementValidity ProtocolIE-ID id-roundTripTimeInfoWithType1 ProtocolIE-ID id-CellIDPositioning ProtocolIE-ID id-AddMeasurementInfo ProtocolIE-ID id-Extended-RNC-ID ProtocolIE-ID id-GANSS-CommonAssistanceData ProtocolIE-ID id-GANSS-GenericAssistanceDataList ProtocolIE-ID id-GANSS-MeasuredResultsList ProtocolIE-ID id-GANSS-UTRAN-TRU ProtocolIE-ID id-GANSSPositioning ProtocolIE-ID id-GANSS-PositioningDataSet ProtocolIE-ID id-GNSS-PositioningMethod ProtocolIE-ID id-NetworkAssistedGANSSSuport ProtocolIE-ID id-TUTRANGANSSMeasurementValueInfo ProtocolIE-ID id-AdditionalGPSAssistDataRequired ProtocolIE-ID id-AdditionalGanssAssistDataRequired ProtocolIE-ID id-angleOfArrivalLCR ProtocolIE-ID id-extendedTimingAdvanceLCR ProtocolIE-ID id-additionalMeasurementInforLCR ProtocolIE-ID id-timingAdvanceLCR-R7 ProtocolIE-ID id-rxTimingDeviationLCR ProtocolIE-ID id-GPSReferenceTimeUncertainty ProtocolIE-ID id-GANSS-AddIonoModelReq ProtocolIE-ID id-GANSS-EarthOrientParaReq ProtocolIE-ID id-GANSS-Additional-Ionospheric-Model ProtocolIE-ID id-GANSS-Earth-Orientation-Parameters ProtocolIE-ID id-GANSS-Additional-Time-Models ProtocolIE-ID id-GANSS-Additional-Navigation-Models ProtocolIE-ID id-GANSS-Additional-UTC-Models ProtocolIE-ID id-GANSS-Auxiliary-Information ProtocolIE-ID id-GANSS-SBAS-ID ProtocolIE-ID id-GANSS-SBAS-IDs ProtocolIE-ID id-GANSS-Signal-IDs ProtocolIE-ID id-GANSS-alm-keplerianNAVAlmanac ProtocolIE-ID id-GANSS-alm-keplerianReducedAlmanac ProtocolIE-ID id-GANSS-alm-keplerianMidiAlmanac ProtocolIE-ID id-GANSS-alm-keplerianGLONASS ProtocolIE-ID id-GANSS-alm-ecefSBASAlmanac ProtocolIE-ID id-UTRAN-GANSSReferenceTimeResult ProtocolIE-ID id-GANSS-Reference-Time-Only ProtocolIE-ID id-GANSS-AddADchoices ProtocolIE-ID id-supportGANSSNonNativeADchoices ProtocolIE-ID id-PositionDataUEbased ProtocolIE-ID id-ganssCodePhaseAmbiguityExt ProtocolIE-ID id-ganssIntegerCodePhaseExt ProtocolIE-ID id-GANSScarrierPhaseRequested ProtocolIE-ID id-GANSSMultiFreqMeasRequested ProtocolIE-ID id-ganssReq-AddIonosphericModel ProtocolIE-ID id-ganssReq-EarthOrientPara ProtocolIE-ID id-ganssAddNavigationModel-req ProtocolIE-ID id-ganssAddUTCModel-req ProtocolIE-ID id-ganssAuxInfo-req ProtocolIE-ID id-OTDOA-ReferenceCellInfo ProtocolIE-ID id-DGNSS-ValidityPeriod ProtocolIE-ID id-AzimuthAndElevationLSB ProtocolIE-ID id-completeAlmanacProvided ProtocolIE-ID id-GPS-Week-Cycle ProtocolIE-ID id-GANSS-Day-Cycle ProtocolIE-ID id-ganss-Delta-T ProtocolIE-ID id-requestedCellIDGERANMeasurements ProtocolIE-ID id-CellId-IRATMeasuredResultsSets ProtocolIE-ID id-IMSI ProtocolIE-ID id-IMEI ProtocolIE-ID id-GANSS-alm-keplerianBDSAlmanac ProtocolIE-ID id-BDS-Ionospheric-Grid-Model ProtocolIE-ID id-DBDS-Correction-Information ProtocolIE-ID id-BDSIonosphericGridModel ProtocolIE-ID id-DBDSCorrection ProtocolIE-ID id-Confidence ProtocolIE-ID id-ExtraDopplerInfoExtension ProtocolIE-ID id-GANSS-Confidence ProtocolIE-ID id-GANSS-ExtraDopplerExtension ProtocolIE-ID id-Additional-PositioningDataSet ProtocolIE-ID id-Additional-PositioningMethod ProtocolIE-ID id-AddPos-MeasuredResults ProtocolIE-ID id-AddPosSupport ProtocolIE-ID #.END #.REGISTER #PCAP-PROTOCOL-IES Cause N pcap.ies id-Cause CriticalityDiagnostics N pcap.ies id-CriticalityDiagnostics GPS-UTRAN-TRU N pcap.ies id-GPS-UTRAN-TRU InformationExchangeID N pcap.ies id-InformationExchangeID InformationExchangeObjectType-InfEx-Rprt N pcap.ies id-InformationExchangeObjectType-InfEx-Rprt InformationExchangeObjectType-InfEx-Rqst N pcap.ies id-InformationExchangeObjectType-InfEx-Rqst InformationExchangeObjectType-InfEx-Rsp N pcap.ies id-InformationExchangeObjectType-InfEx-Rsp InformationReportCharacteristics N pcap.ies id-InformationReportCharacteristics InformationType N pcap.ies id-InformationType MeasuredResultsList N pcap.ies id-GPS-MeasuredResultsList UE-PositionEstimate N pcap.ies id-UE-PositionEstimate CellId-MeasuredResultsSets N pcap.ies id-CellId-MeasuredResultsSets OTDOA-MeasurementGroup N pcap.ies id-OTDOA-MeasurementGroup AccuracyFulfilmentIndicator N pcap.ies id-AccuracyFulfilmentIndicator HorizontalAccuracyCode N pcap.ies id-HorizontalAccuracyCode VerticalAccuracyCode N pcap.ies id-VerticalAccuracyCode UTDOA-Group N pcap.ies id-UTDOA-Group RequestType N pcap.ies id-RequestType UE-PositioningCapability N pcap.ies id-UE-PositioningCapability UC-ID N pcap.ies id-UC-id ResponseTime N pcap.ies id-ResponseTime PositioningPriority N pcap.ies id-PositioningPriority ClientType N pcap.ies id-ClientType PositioningMethod N pcap.ies id-PositioningMethod UTDOAPositioning N pcap.ies id-UTDOAPositioning GPSPositioning N pcap.ies id-GPSPositioning OTDOAAssistanceData N pcap.ies id-OTDOAAssistanceData Positioning-ResponseTime N pcap.ies id-Positioning-ResponseTime EnvironmentCharacterisation N pcap.ies id-EnvironmentCharacterisation PositionData N pcap.ies id-PositionData VelocityEstimate N pcap.ies id-VelocityEstimate UC-ID-InfEx-Rqst N pcap.ies id-UC-ID-InfEx-Rqst UE-PositionEstimateInfo N pcap.ies id-UE-PositionEstimateInfo OTDOA-MeasuredResultsSets N pcap.ies id-OTDOA-MeasuredResultsSets PeriodicPosCalcInfo N pcap.ies id-PeriodicPosCalcInfo PeriodicTerminationCause N pcap.ies id-PeriodicTerminationCause GANSS-ALM-BDSKeplericanset N pcap.ies id-GANSS-alm-keplerianBDSAlmanac #PCAP-PROTOCOL-EXTENSION CellId-MeasuredResultsSets N pcap.extension id-CellId-MeasuredResultsSets OTDOA-MeasurementGroup N pcap.extension id-OTDOA-MeasurementGroup HorizontalAccuracyCode N pcap.extension id-HorizontalAccuracyCode VerticalAccuracyCode N pcap.extension id-VerticalAccuracyCode UTDOA-Group N pcap.extension id-UTDOA-Group Positioning-ResponseTime N pcap.extension id-Positioning-ResponseTime IncludeVelocity N pcap.extension id-IncludeVelocity PeriodicPosCalcInfo N pcap.extension id-PeriodicPosCalcInfo AmountOfReporting N pcap.extension id-AmountOfReporting PeriodicLocationInfo N pcap.extension id-PeriodicLocationInfo MeasInstructionsUsed N pcap.extension id-MeasInstructionsUsed CellIDPositioning N pcap.extension id-CellIDPositioning GANSSPositioning N pcap.extension id-GANSSPositioning RRCstateChange N pcap.extension id-RRCstateChange GANSS-MeasuredResultsList N pcap.extension id-GANSS-MeasuredResultsList GANSS-UTRAN-TRU N pcap.extension id-GANSS-UTRAN-TRU AdditionalGPSAssistDataRequired N pcap.extension id-AdditionalGPSAssistDataRequired AdditionalGanssAssistDataRequired N pcap.extension id-AdditionalGanssAssistDataRequired RxTimingDeviation768Info N pcap.extension id-rxTimingDeviation768Info RxTimingDeviation384extInfo N pcap.extension id-rxTimingDeviation384extInfo RoundTripTimeInfoWithType1 N pcap.extension id-roundTripTimeInfoWithType1 AddMeasurementInfo N pcap.extension id-AddMeasurementInfo AngleOfArrivalLCR N pcap.extension id-angleOfArrivalLCR ExtendedTimingAdvanceLCR N pcap.extension id-extendedTimingAdvanceLCR GANSS-PositioningDataSet N pcap.extension id-GANSS-PositioningDataSet GANSS-CommonAssistanceData N pcap.extension id-GANSS-CommonAssistanceData GANSS-GenericAssistanceDataList N pcap.extension id-GANSS-GenericAssistanceDataList GPS-ReferenceLocation N pcap.extension id-GPS-ReferenceLocation UTRAN-GPS-DriftRate N pcap.extension id-UTRAN-GPS-DriftRate GPSReferenceTimeUncertainty N pcap.extension id-GPSReferenceTimeUncertainty OTDOA-AddMeasuredResultsInfo N pcap.extension id-OTDOA-AddMeasuredResultsInfo Extended-RNC-ID N pcap.extension id-Extended-RNC-ID AdditionalMeasurementInforLCR N pcap.extension id-additionalMeasurementInforLCR GNSS-PositioningMethod N pcap.extension id-GNSS-PositioningMethod NetworkAssistedGANSSSupport N pcap.extension id-NetworkAssistedGANSSSuport UTRAN-GPSReferenceTime N pcap.extension id-UTRAN-GPSReferenceTime GANSS-AddIonoModelReq N pcap.extension id-GANSS-AddIonoModelReq GANSS-EarthOrientParaReq N pcap.extension id-GANSS-EarthOrientParaReq GANSS-Additional-Ionospheric-Model N pcap.extension id-GANSS-Additional-Ionospheric-Model GANSS-Earth-Orientation-Parameters N pcap.extension id-GANSS-Earth-Orientation-Parameters GANSS-Additional-Time-Models N pcap.extension id-GANSS-Additional-Time-Models GANSS-Additional-Navigation-Models N pcap.extension id-GANSS-Additional-Navigation-Models GANSS-Additional-UTC-Models N pcap.extension id-GANSS-Additional-UTC-Models GANSS-Auxiliary-Information N pcap.extension id-GANSS-Auxiliary-Information GANSS-SBAS-ID N pcap.extension id-GANSS-SBAS-ID GANSS-SBAS-IDs N pcap.extension id-GANSS-SBAS-IDs GANSS-Signal-IDs N pcap.extension id-GANSS-Signal-IDs GANSS-ALM-NAVKeplerianSet N pcap.ies id-GANSS-alm-keplerianNAVAlmanac GANSS-ALM-ReducedKeplerianSet N pcap.ies id-GANSS-alm-keplerianReducedAlmanac GANSS-ALM-MidiAlmanacSet N pcap.ies id-GANSS-alm-keplerianMidiAlmanac GANSS-ALM-GlonassAlmanacSet N pcap.ies id-GANSS-alm-keplerianGLONASS GANSS-ALM-ECEFsbasAlmanacSet N pcap.ies id-GANSS-alm-ecefSBASAlmanac UTRAN-GANSSReferenceTimeResult N pcap.ies id-UTRAN-GANSSReferenceTimeResult GANSS-Reference-Time-Only N pcap.ies id-GANSS-Reference-Time-Only GANSS-AddADchoices N pcap.extension id-GANSS-AddADchoices SupportGANSSNonNativeADchoices N pcap.extension id-supportGANSSNonNativeADchoices PositionDataUEbased N pcap.extension id-PositionDataUEbased GanssCodePhaseAmbiguityExt N pcap.extension id-ganssCodePhaseAmbiguityExt GanssIntegerCodePhaseExt N pcap.extension id-ganssIntegerCodePhaseExt GANSScarrierPhaseRequested N pcap.extension id-GANSScarrierPhaseRequested GANSSMultiFreqMeasRequested N pcap.extension id-GANSSMultiFreqMeasRequested GANSSReq-AddIonosphericModel N pcap.extension id-ganssReq-AddIonosphericModel GANSSReq-EarthOrientPara N pcap.extension id-ganssReq-EarthOrientPara GANSS-AddNavigationModel-Req N pcap.extension id-ganssAddNavigationModel-req GANSS-AddUTCModel-Req N pcap.extension id-ganssAddUTCModel-req GANSS-AuxInfo-req N pcap.extension id-ganssAuxInfo-req #N pcap.extension id-GANSS-AlmanacModelChoice Not used? OTDOA-ReferenceCellInfoSAS-centric N pcap.extension id-OTDOA-ReferenceCellInfo DGNSS-ValidityPeriod N pcap.extension id-DGNSS-ValidityPeriod AzimuthAndElevationLSB N pcap.extension id-AzimuthAndElevationLSB CompleteAlmanacProvided N pcap.extension id-completeAlmanacProvided GPS-Week-Cycle N pcap.extension id-GPS-Week-Cycle GANSS-Day-Cycle N pcap.extension id-GANSS-Day-Cycle GANSS-Delta-T N pcap.extension id-ganss-Delta-T RequestedCellIDGERANMeasurements N pcap.extension id-requestedCellIDGERANMeasurements CellId-IRATMeasuredResultsSets N pcap.extension id-CellId-IRATMeasuredResultsSets IMSI N pcap.extension id-IMSI IMEI N pcap.extension id-IMEI BDS-Ionospheric-Grid-Model N pcap.extension id-BDS-Ionospheric-Grid-Model DBDS-Correction-Information N pcap.extension id-DBDS-Correction-Information BDSIonosphericGridModel N pcap.extension id-BDSIonosphericGridModel DBDSCorrection N pcap.extension id-DBDSCorrection Confidence N pcap.extension id-Confidence ExtraDopplerInfoExtension N pcap.extension id-ExtraDopplerInfoExtension Confidence N pcap.extension id-GANSS-Confidence GANSS-ExtraDopplerExtension N pcap.extension id-GANSS-ExtraDopplerExtension Additional-PositioningDataSet N pcap.extension id-Additional-PositioningDataSet Additional-PositioningMethod N pcap.extension id-Additional-PositioningMethod AddPos-MeasuredResults N pcap.extension id-AddPos-MeasuredResults AddPosSupport N pcap.extension id-AddPosSupport #PCAP-ELEMENTARY-PROCEDURE PositionCalculationRequest N pcap.proc.imsg id-PositionCalculation PositionCalculationResponse N pcap.proc.sout id-PositionCalculation PositionCalculationFailure N pcap.proc.uout id-PositionCalculation InformationExchangeInitiationRequest N pcap.proc.imsg id-InformationExchangeInitiation InformationExchangeInitiationResponse N pcap.proc.sout id-InformationExchangeInitiation InformationExchangeInitiationFailure N pcap.proc.uout id-InformationExchangeInitiation PositionInitiationRequest N pcap.proc.imsg id-PositionInitiation PositionInitiationResponse N pcap.proc.sout id-PositionInitiation PositionInitiationFailure N pcap.proc.uout id-PositionInitiation PositionActivationRequest N pcap.proc.imsg id-PositionActivation PositionActivationResponse N pcap.proc.sout id-PositionActivation PositionActivationFailure N pcap.proc.uout id-PositionActivation InformationReport N pcap.proc.imsg id-InformationReporting InformationExchangeTerminationRequest N pcap.proc.imsg id-InformationExchangeTermination InformationExchangeFailureIndication N pcap.proc.imsg id-InformationExchangeFailure ErrorIndication N pcap.proc.imsg id-ErrorIndication PrivateMessage N pcap.proc.imsg id-privateMessage PositionParameterModification N pcap.proc.imsg id-PositionParameterModification Abort N pcap.proc.imsg id-Abort PositionPeriodicReport N pcap.proc.imsg id-PositionPeriodicReport PositionPeriodicResult N pcap.proc.imsg id-PositionPeriodicResult PositionPeriodicTermination N pcap.proc.imsg id-PositionPeriodicTermination #.END
Text
wireshark/epan/dissectors/asn1/pkcs1/CMakeLists.txt
# CMakeLists.txt # # Wireshark - Network traffic analyzer # By Gerald Combs <[email protected]> # Copyright 1998 Gerald Combs # # SPDX-License-Identifier: GPL-2.0-or-later # set( PROTOCOL_NAME pkcs1 ) set( PROTO_OPT ) set( EXT_ASN_FILE_LIST ) set( ASN_FILE_LIST PKIXAlgs-2009.asn ) set( EXTRA_DIST ${ASN_FILE_LIST} packet-${PROTOCOL_NAME}-template.c packet-${PROTOCOL_NAME}-template.h ${PROTOCOL_NAME}.cnf ) set( SRC_FILES ${EXTRA_DIST} ${EXT_ASN_FILE_LIST} ) set( A2W_FLAGS -b ) set( EXTRA_CNF "${CMAKE_CURRENT_BINARY_DIR}/../x509af/x509af-exp.cnf" ) ASN2WRS()
C
wireshark/epan/dissectors/asn1/pkcs1/packet-pkcs1-template.c
/* packet-pkcs1.c * Routines for PKCS#1/RFC2313 packet dissection * Ronnie Sahlberg 2004 * * Wireshark - Network traffic analyzer * By Gerald Combs <[email protected]> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #include <epan/packet.h> #include <epan/oids.h> #include <epan/asn1.h> #include "packet-ber.h" #include "packet-pkcs1.h" #include "packet-x509af.h" #define PNAME "PKCS#1" #define PSNAME "PKCS-1" #define PFNAME "pkcs-1" void proto_register_pkcs1(void); void proto_reg_handoff_pkcs1(void); /* Initialize the protocol and registered fields */ static int proto_pkcs1 = -1; #include "packet-pkcs1-hf.c" /* Initialize the subtree pointers */ #include "packet-pkcs1-ett.c" #include "packet-pkcs1-fn.c" /*--- proto_register_pkcs1 ----------------------------------------------*/ void proto_register_pkcs1(void) { /* List of fields */ static hf_register_info hf[] = { #include "packet-pkcs1-hfarr.c" }; /* List of subtrees */ static gint *ett[] = { #include "packet-pkcs1-ettarr.c" }; /* Register protocol */ proto_pkcs1 = proto_register_protocol(PNAME, PSNAME, PFNAME); /* Register fields and subtrees */ proto_register_field_array(proto_pkcs1, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); } /*--- proto_reg_handoff_pkcs1 -------------------------------------------*/ void proto_reg_handoff_pkcs1(void) { #include "packet-pkcs1-dis-tab.c" register_ber_oid_dissector("1.2.840.113549.2.2", dissect_ber_oid_NULL_callback, proto_pkcs1, "md2"); register_ber_oid_dissector("1.2.840.113549.2.4", dissect_ber_oid_NULL_callback, proto_pkcs1, "md4"); register_ber_oid_dissector("1.2.840.113549.2.5", dissect_ber_oid_NULL_callback, proto_pkcs1, "md5"); register_ber_oid_dissector("1.2.840.113549.1.1.1", dissect_ber_oid_NULL_callback, proto_pkcs1, "rsaEncryption"); register_ber_oid_dissector("1.2.840.113549.1.1.2", dissect_ber_oid_NULL_callback, proto_pkcs1, "md2WithRSAEncryption"); register_ber_oid_dissector("1.2.840.113549.1.1.3", dissect_ber_oid_NULL_callback, proto_pkcs1, "md4WithRSAEncryption"); register_ber_oid_dissector("1.2.840.113549.1.1.4", dissect_ber_oid_NULL_callback, proto_pkcs1, "md5WithRSAEncryption"); /* these two are not from RFC2313 but pulled in from http://www.alvestrand.no/objectid/1.2.840.113549.1.1.html */ register_ber_oid_dissector("1.2.840.113549.1.1.5", dissect_ber_oid_NULL_callback, proto_pkcs1, "sha1WithRSAEncryption"); register_ber_oid_dissector("1.2.840.113549.1.1.6", dissect_ber_oid_NULL_callback, proto_pkcs1, "rsaOAEPEncryptionSET"); /* these sha2 algorithms are from RFC3447 */ register_ber_oid_dissector("1.2.840.113549.1.1.11", dissect_ber_oid_NULL_callback, proto_pkcs1, "sha256WithRSAEncryption"); register_ber_oid_dissector("1.2.840.113549.1.1.12", dissect_ber_oid_NULL_callback, proto_pkcs1, "sha384WithRSAEncryption"); register_ber_oid_dissector("1.2.840.113549.1.1.13", dissect_ber_oid_NULL_callback, proto_pkcs1, "sha512WithRSAEncryption"); register_ber_oid_dissector("1.2.840.113549.1.1.14", dissect_ber_oid_NULL_callback, proto_pkcs1, "sha224WithRSAEncryption"); /* ECDSA SHA-1 algorithm from RFC 3279 */ register_ber_oid_dissector("1.2.840.10045.4.1", dissect_ber_oid_NULL_callback, proto_pkcs1, "ecdsa-with-SHA1"); /* SM2-with-SM3 from GM/T 0006 Cryptographic application identifier criterion specification */ register_ber_oid_dissector("1.2.156.10197.1.501", dissect_ber_oid_NULL_callback, proto_pkcs1, "SM2-with-SM3"); /* ECDSA SHA2 algorithms from X9.62, RFC5480, RFC 5758, RFC 5912 */ register_ber_oid_dissector("1.2.840.10045.4.3.1", dissect_ber_oid_NULL_callback, proto_pkcs1, "ecdsa-with-SHA224"); register_ber_oid_dissector("1.2.840.10045.4.3.2", dissect_ber_oid_NULL_callback, proto_pkcs1, "ecdsa-with-SHA256"); register_ber_oid_dissector("1.2.840.10045.4.3.3", dissect_ber_oid_NULL_callback, proto_pkcs1, "ecdsa-with-SHA384"); register_ber_oid_dissector("1.2.840.10045.4.3.4", dissect_ber_oid_NULL_callback, proto_pkcs1, "ecdsa-with-SHA512"); /* DSA SHA2 algorithms from FIPS186-3, RFC5480, RFC 5758, RFC 5912 */ register_ber_oid_dissector("2.16.840.1.101.3.4.3.1", dissect_ber_oid_NULL_callback, proto_pkcs1, "id-dsa-with-sha224"); register_ber_oid_dissector("2.16.840.1.101.3.4.3.2", dissect_ber_oid_NULL_callback, proto_pkcs1, "id-dsa-with-sha256"); oid_add_from_string("secp192r1","1.2.840.10045.3.1.1"); oid_add_from_string("sect163k1","1.3.132.0.1"); oid_add_from_string("sect163r2","1.3.132.0.15"); oid_add_from_string("secp224r1","1.3.132.0.33"); oid_add_from_string("sect233k1","1.3.132.0.26"); oid_add_from_string("sect233r1","1.3.132.0.27"); oid_add_from_string("secp256r1","1.2.840.10045.3.1.7"); oid_add_from_string("sect283k1","1.3.132.0.16"); oid_add_from_string("sect283r1","1.3.132.0.17"); oid_add_from_string("secp384r1","1.3.132.0.34"); oid_add_from_string("sect409k1","1.3.132.0.36"); oid_add_from_string("sect409r1","1.3.132.0.37"); oid_add_from_string("secp521r1","1.3.132.0.35"); oid_add_from_string("sect571k1","1.3.132.0.38"); oid_add_from_string("sect571r1","1.3.132.0.39"); /* SM2 from GM/T 0006 Cryptographic application identifier criterion specification */ oid_add_from_string("sm2","1.2.156.10197.1.301"); /* sha2 family, see RFC3447 and http://www.oid-info.com/get/2.16.840.1.101.3.4.2 */ oid_add_from_string("sha256", "2.16.840.1.101.3.4.2.1"); oid_add_from_string("sha384", "2.16.840.1.101.3.4.2.2"); oid_add_from_string("sha512", "2.16.840.1.101.3.4.2.3"); oid_add_from_string("sha224", "2.16.840.1.101.3.4.2.4"); /* SM3 from GM/T 0006 Cryptographic application identifier criterion specification */ oid_add_from_string("sm3","1.2.156.10197.1.401"); /* PQC digital signature algorithms from OQS-OpenSSL, see https://github.com/open-quantum-safe/openssl/blob/OQS-OpenSSL_1_1_1-stable/oqs-template/oqs-sig-info.md */ oid_add_from_string("dilithium2", "1.3.6.1.4.1.2.267.7.4.4"); oid_add_from_string("p256_dilithium2", "1.3.9999.2.7.1"); oid_add_from_string("rsa3072_dilithium2", "1.3.9999.2.7.2"); oid_add_from_string("dilithium3", "1.3.6.1.4.1.2.267.7.6.5"); oid_add_from_string("p384_dilithium3", "1.3.9999.2.7.3"); oid_add_from_string("dilithium5", "1.3.6.1.4.1.2.267.7.8.7"); oid_add_from_string("p521_dilithium5", "1.3.9999.2.7.4"); oid_add_from_string("dilithium2_aes", "1.3.6.1.4.1.2.267.11.4.4"); oid_add_from_string("p256_dilithium2_aes", "1.3.9999.2.11.1"); oid_add_from_string("rsa3072_dilithium2_aes", "1.3.9999.2.11.2"); oid_add_from_string("dilithium3_aes", "1.3.6.1.4.1.2.267.11.6.5"); oid_add_from_string("p384_dilithium3_aes", "1.3.9999.2.11.3"); oid_add_from_string("dilithium5_aes", "1.3.6.1.4.1.2.267.11.8.7"); oid_add_from_string("p521_dilithium5_aes", "1.3.9999.2.11.4"); oid_add_from_string("falcon512", "1.3.9999.3.1"); oid_add_from_string("p256_falcon512", "1.3.9999.3.2"); oid_add_from_string("rsa3072_falcon512", "1.3.9999.3.3"); oid_add_from_string("falcon1024", "1.3.9999.3.4"); oid_add_from_string("p521_falcon1024", "1.3.9999.3.5"); oid_add_from_string("picnicl1full", "1.3.6.1.4.1.311.89.2.1.7"); oid_add_from_string("p256_picnicl1full", "1.3.6.1.4.1.311.89.2.1.8"); oid_add_from_string("rsa3072_picnicl1full", "1.3.6.1.4.1.311.89.2.1.9"); oid_add_from_string("picnic3l1", "1.3.6.1.4.1.311.89.2.1.21"); oid_add_from_string("p256_picnic3l1", "1.3.6.1.4.1.311.89.2.1.22"); oid_add_from_string("rsa3072_picnic3l1", "1.3.6.1.4.1.311.89.2.1.23"); oid_add_from_string("rainbowIclassic", "1.3.9999.5.1.1.1"); oid_add_from_string("p256_rainbowIclassic", "1.3.9999.5.1.2.1"); oid_add_from_string("rsa3072_rainbowIclassic", "1.3.9999.5.1.3.1"); oid_add_from_string("rainbowVclassic", "1.3.9999.5.3.1.1"); oid_add_from_string("p521_rainbowVclassic", "1.3.9999.5.3.2.1"); oid_add_from_string("sphincsharaka128frobust", "1.3.9999.6.1.1"); oid_add_from_string("p256_sphincsharaka128frobust", "1.3.9999.6.1.2"); oid_add_from_string("rsa3072_sphincsharaka128frobust", "1.3.9999.6.1.3"); oid_add_from_string("sphincssha256128frobust", "1.3.9999.6.4.1"); oid_add_from_string("p256_sphincssha256128frobust", "1.3.9999.6.4.2"); oid_add_from_string("rsa3072_sphincssha256128frobust", "1.3.9999.6.4.3"); oid_add_from_string("sphincsshake256128frobust", "1.3.9999.6.7.1"); oid_add_from_string("p256_sphincsshake256128frobust", "1.3.9999.6.7.2"); oid_add_from_string("rsa3072_sphincsshake256128frobust", "1.3.9999.6.7.3"); }
C/C++
wireshark/epan/dissectors/asn1/pkcs1/packet-pkcs1-template.h
/* packet-pkcs1.h * Routines for PKCS#1/RFC2313 packet dissection * Ronnie Sahlberg 2004 * * Wireshark - Network traffic analyzer * By Gerald Combs <[email protected]> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef PACKET_PKCS1_H #define PACKET_PKCS1_H #include "packet-pkcs1-exp.h" #endif /* PACKET_PKCS1_H */
Configuration
wireshark/epan/dissectors/asn1/pkcs1/pkcs1.cnf
# pkcs1.cnf # PKCS#1 conformation file #.IMPORT ../x509af/x509af-exp.cnf #.EXPORTS RSAPublicKey DigestInfo #.NO_EMIT #.TYPE_RENAME #.FIELD_RENAME #.FN_PARS FieldID/fieldType FN_VARIANT = _str VAL_PTR = &actx->external.direct_reference #.FN_BODY FieldID/parameters offset = call_ber_oid_callback(actx->external.direct_reference, tvb, offset, actx->pinfo, tree, NULL); #.REGISTER DSA-Params B "1.2.840.10040.4.1" "id-dsa" DomainParameters B "1.2.840.10046.2.1" "dhpublicnumber" KEA-Params-Id B "2.16.840.1.101.2.1.1.22" "id-keyExchangeAlgorithm" ECParameters B "1.2.840.10045.2.1" "id-ecPublicKey" ECParameters B "1.3.132.1.12" "id-ecDH" ECParameters B "1.2.840.10045.2.13" "id-ecMQV" RSASSA-PSS-params B "1.2.840.113549.1.1.10" "id-RSASSA-PSS" HashAlgorithm B "1.2.840.113549.1.1.8" "id-mgf1" Prime-p B "1.2.840.10045.1.1" "prime-field" #.NO_EMIT DSAPublicKey DHPublicKey DSA-Sig-Value ECDSA-Sig-Value #.TYPE_ATTR RSAPublicKey/modulus TYPE = FT_BYTES DISPLAY = BASE_NONE #.END
ASN.1
wireshark/epan/dissectors/asn1/pkcs1/PKIXAlgs-2009.asn
-- -- Transcribed from RFC 5912 -- PKIXAlgs-2009 { iso(1) identified-organization(3) dod(6) internet(1) security(5) mechanisms(5) pkix(7) id-mod(0) id-mod-pkix1-algorithms2008-02(56) } DEFINITIONS EXPLICIT TAGS ::= BEGIN IMPORTS PUBLIC-KEY, SIGNATURE-ALGORITHM, DIGEST-ALGORITHM, SMIME-CAPS FROM AlgorithmInformation-2009 {iso(1) identified-organization(3) dod(6) internet(1) security(5) mechanisms(5) pkix(7) id-mod(0) id-mod-algorithmInformation-02(58)} mda-sha224, mda-sha256, mda-sha384, mda-sha512 FROM PKIX1-PSS-OAEP-Algorithms-2009 {iso(1) identified-organization(3) dod(6) internet(1) security(5) mechanisms(5) pkix(7) id-mod(0) id-mod-pkix1-rsa-pkalgs-02(54)} -- Additional IMPORT for Wireshark AlgorithmIdentifier FROM AuthenticationFramework {joint-iso-itu-t ds(5) module(1) authenticationFramework(7) 4}; -- -- Public Key (pk-) Algorithms -- PublicKeys PUBLIC-KEY ::= { pk-rsa | pk-dsa | pk-dh | pk-kea | pk-rsaSSA-PSS, ..., pk-ec | pk-ecDH | pk-ecMQV } -- -- Signature Algorithms (sa-) -- SignatureAlgs SIGNATURE-ALGORITHM ::= { sa-rsaWithMD2 | sa-rsaWithMD5 | sa-rsaWithSHA1 | sa-dsaWithSHA1 | sa-ecdsaWithSHA1, ..., -- Extensible sa-dsaWithSHA224 | sa-dsaWithSHA256 | sa-ecdsaWithSHA224 | sa-ecdsaWithSHA256 | sa-ecdsaWithSHA384 | sa-ecdsaWithSHA512, ..., sa-rsaSSA-PSS } -- -- S/MIME CAPS for algorithms in this document -- -- For all of the algorithms laid out in this document, the -- parameters field for the S/MIME capabilities is defined as -- ABSENT as there are no specific values that need to be known -- by the receiver for negotiation. -- SMimeCaps SMIME-CAPS ::= { sa-rsaWithMD2.&smimeCaps | sa-rsaWithMD5.&smimeCaps | sa-rsaWithSHA1.&smimeCaps | sa-dsaWithSHA1.&smimeCaps | sa-dsaWithSHA224.&smimeCaps | sa-dsaWithSHA256.&smimeCaps | sa-ecdsaWithSHA1.&smimeCaps | sa-ecdsaWithSHA224.&smimeCaps | sa-ecdsaWithSHA256.&smimeCaps | sa-ecdsaWithSHA384.&smimeCaps | sa-ecdsaWithSHA512.&smimeCaps, ... } -- RSA PK Algorithm, Parameters, and Keys -- pk-rsa PUBLIC-KEY ::= { -- IDENTIFIER rsaEncryption -- KEY RSAPublicKey -- PARAMS TYPE NULL ARE absent -- Private key format not in this module -- -- CERT-KEY-USAGE {digitalSignature, nonRepudiation, -- keyEncipherment, dataEncipherment, keyCertSign, cRLSign} -- } rsaEncryption OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-1(1) 1 } RSAPublicKey ::= SEQUENCE { modulus INTEGER, -- n publicExponent INTEGER -- e } -- Wireshark additions to ensure compatibility with the original PKCS1.asn DigestInfo ::= SEQUENCE { digestAlgorithm DigestAlgorithmIdentifier, digest Digest } DigestAlgorithmIdentifier ::= AlgorithmIdentifier Digest ::= OCTET STRING -- End of Wireshark additions -- DSA PK Algorithm, Parameters, and Keys -- pk-dsa PUBLIC-KEY ::= { -- IDENTIFIER id-dsa -- KEY DSAPublicKey -- PARAMS TYPE DSA-Params ARE inheritable -- Private key format not in this module -- -- CERT-KEY-USAGE { digitalSignature, nonRepudiation, keyCertSign, -- cRLSign } -- } id-dsa OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) x9-57(10040) x9algorithm(4) 1 } DSA-Params ::= SEQUENCE { p INTEGER, q INTEGER, g INTEGER } DSAPublicKey ::= INTEGER -- public key, y -- Diffie-Hellman PK Algorithm, Parameters, and Keys -- pk-dh PUBLIC-KEY ::= { -- IDENTIFIER dhpublicnumber -- KEY DHPublicKey -- PARAMS TYPE DomainParameters ARE inheritable -- Private key format not in this module -- -- CERT-KEY-USAGE {keyAgreement, encipherOnly, decipherOnly } -- } dhpublicnumber OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) ansi-x942(10046) number-type(2) 1 } DomainParameters ::= SEQUENCE { p INTEGER, -- odd prime, p=jq +1 g INTEGER, -- generator, g q INTEGER, -- factor of p-1 j INTEGER OPTIONAL, -- subgroup factor, j>= 2 validationParams ValidationParams OPTIONAL } ValidationParams ::= SEQUENCE { seed BIT STRING, pgenCounter INTEGER } DHPublicKey ::= INTEGER -- public key, y = g^x mod p -- KEA PK Algorithm and Parameters -- pk-kea PUBLIC-KEY ::= { -- IDENTIFIER id-keyExchangeAlgorithm -- key is not encoded -- -- PARAMS TYPE KEA-Params-Id ARE required -- Private key format not in this module -- -- CERT-KEY-USAGE {keyAgreement, encipherOnly, decipherOnly } -- } id-keyExchangeAlgorithm OBJECT IDENTIFIER ::= { joint-iso-itu-t(2) country(16) us(840) organization(1) gov(101) dod(2) infosec(1) algorithms(1) 22 } KEA-Params-Id ::= OCTET STRING -- RSASSA-PSS (RFC 4055) -- pk-rsaSSA-PSS PUBLIC-KEY ::= { -- IDENTIFIER id-RSASSA-PSS -- KEY RSAPublicKey -- PARAMS TYPE RSASSA-PSS-params ARE optional -- CERT-KEY-USAGE { nonRepudiation, digitalSignature, keyCertSign, cRLSign } -- } id-mgf1 OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-1(1) 8 } id-RSASSA-PSS OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-1(1) 10 } HashAlgorithm ::= AlgorithmIdentifier{DIGEST-ALGORITHM, {HashAlgorithms}} HashAlgorithms DIGEST-ALGORITHM ::= { { IDENTIFIER id-sha1 PARAMS TYPE NULL ARE preferredPresent }, ... } -- sha1Identifier AlgorithmIdentifier ::= { -- algorithmId id-sha1, -- parameters NULL -- } MaskGenAlgorithm ::= AlgorithmIdentifier{ALGORITHM, {PKCS1MGFAlgorithms}} -- mgf1SHA1 MaskGenAlgorithm ::= { -- algorithmId id-mgf1, -- parameters HashAlgorithm : sha1Identifier -- } PKCS1MGFAlgorithms ALGORITHM ::= { { IDENTIFIER id-mgf1 PARAMS TYPE HashAlgorithm ARE required }, ... } -- AlgorithmIdentifier parameters for id-RSASSA-PSS. -- Note that the tags in this Sequence are explicit. -- Note: The hash algorithm in hashAlgorithm and in -- maskGenAlgorithm should be the same. RSASSA-PSS-params ::= SEQUENCE { hashAlgorithm [0] HashAlgorithm DEFAULT sha1Identifier, maskGenAlgorithm [1] MaskGenAlgorithm DEFAULT mgf1SHA1, saltLength [2] INTEGER DEFAULT 20, trailerField [3] INTEGER DEFAULT 1 } -- Elliptic Curve (EC) Signatures: Unrestricted Algorithms -- (Section 2.1.1 of RFC 5480) -- -- EC Unrestricted Algorithm ID -- -- this is used for ECDSA -- pk-ec PUBLIC-KEY ::= { -- IDENTIFIER id-ecPublicKey -- KEY ECPoint -- PARAMS TYPE ECParameters ARE required -- Private key format not in this module -- -- CERT-KEY-USAGE { digitalSignature, nonRepudiation, keyAgreement, -- keyCertSign, cRLSign } -- } ECPoint ::= OCTET STRING -- see RFC 5480 for syntax and restrictions id-ecPublicKey OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) ansi-X9-62(10045) keyType(2) 1 } -- Elliptic Curve (EC) Signatures: Restricted Algorithms -- (Section 2.1.2 of RFC 5480) -- -- EC Diffie-Hellman Algorithm ID -- pk-ecDH PUBLIC-KEY ::= { -- IDENTIFIER id-ecDH -- KEY ECPoint -- PARAMS TYPE ECParameters ARE required -- Private key format not in this module -- -- CERT-KEY-USAGE { keyAgreement, encipherOnly, decipherOnly } -- } id-ecDH OBJECT IDENTIFIER ::= { iso(1) identified-organization(3) certicom(132) schemes(1) ecdh(12) } -- EC Menezes-Qu-Vanstone Algorithm ID -- pk-ecMQV PUBLIC-KEY ::= { -- IDENTIFIER id-ecMQV -- KEY ECPoint -- PARAMS TYPE ECParameters ARE required -- Private key format not in this module -- -- CERT-KEY-USAGE { keyAgreement, encipherOnly, decipherOnly } -- } id-ecMQV OBJECT IDENTIFIER ::= { iso(1) identified-organization(3) certicom(132) schemes(1) ecmqv(13) } -- Parameters and Keys for both Restricted and Unrestricted EC ECParameters ::= CHOICE { specifiedCurve SpecifiedECDomain, -- From RFC 3279 / SEC 1 namedCurve OBJECT IDENTIFIER -- implicitlyCA NULL -- Wireshark note: the PKIXAlgs-2009 module from RFC 5912 only allows -- namedCurve to be used. This ECParameters type is however a subset of -- the type defined in X9.62 and RFC 3279 which additionally defines -- 'specified' and 'implicitlyCA'. Since the explicitly specified curve -- parameters were spotted in the wild as part of exploiting CVE-2020-0601, -- we will include it here anyway. We do not include implicitlyCA, it does -- not appear to be supported by OpenSSL, unlike the other two fields. } (WITH COMPONENTS {namedCurve PRESENT}) -- ECParameters from RFC 3279, but renamed to SpecifiedECDomain (RFC 5480). -- Adapted from https://tools.ietf.org/html/rfc3279#page-14 SpecifiedECDomain ::= SEQUENCE { version ECPVer, -- version is always 1 fieldID FieldID, -- identifies the finite field over -- which the curve is defined curve Curve, -- coefficients a and b of the -- elliptic curve base ECPoint, -- specifies the base point P -- on the elliptic curve order INTEGER, -- the order n of the base point cofactor INTEGER OPTIONAL -- The integer h = #E(Fq)/n } ECPVer ::= INTEGER {ecpVer1(1)} FieldID ::= SEQUENCE { fieldType OBJECT IDENTIFIER, parameters ANY DEFINED BY fieldType } Curve ::= SEQUENCE { a FieldElement, b FieldElement, seed BIT STRING OPTIONAL } FieldElement ::= OCTET STRING -- FieldID.parameters definitions, OIDs are listed in pkcs1.cnf -- https://tools.ietf.org/html/rfc3279#page-21 Prime-p ::= INTEGER -- Finite field F(p), where p is an odd prime -- Sec 2.1.1.1 Named Curve CURVE ::= CLASS { &id OBJECT IDENTIFIER UNIQUE } WITH SYNTAX { ID &id } NamedCurve CURVE ::= { { ID secp192r1 } | { ID sect163k1 } | { ID sect163r2 } | { ID secp224r1 } | { ID sect233k1 } | { ID sect233r1 } | { ID secp256r1 } | { ID sect283k1 } | { ID sect283r1 } | { ID secp384r1 } | { ID sect409k1 } | { ID sect409r1 } | { ID secp521r1 } | { ID sect571k1 } | { ID sect571r1 }, ... -- Extensible } -- Note in [X9.62] the curves are referred to as 'ansiX9' as -- opposed to 'sec'. For example, secp192r1 is the same curve as -- ansix9p192r1. -- Note that in [PKI-ALG] the secp192r1 curve was referred to as -- prime192v1 and the secp256r1 curve was referred to as -- prime256v1. -- Note that [FIPS186-3] refers to secp192r1 as P-192, -- secp224r1 as P-224, secp256r1 as P-256, secp384r1 as P-384, -- and secp521r1 as P-521. secp192r1 OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) ansi-X9-62(10045) curves(3) prime(1) 1 } sect163k1 OBJECT IDENTIFIER ::= { iso(1) identified-organization(3) certicom(132) curve(0) 1 } sect163r2 OBJECT IDENTIFIER ::= { iso(1) identified-organization(3) certicom(132) curve(0) 15 } secp224r1 OBJECT IDENTIFIER ::= { iso(1) identified-organization(3) certicom(132) curve(0) 33 } sect233k1 OBJECT IDENTIFIER ::= { iso(1) identified-organization(3) certicom(132) curve(0) 26 } sect233r1 OBJECT IDENTIFIER ::= { iso(1) identified-organization(3) certicom(132) curve(0) 27 } secp256r1 OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) ansi-X9-62(10045) curves(3) prime(1) 7 } sect283k1 OBJECT IDENTIFIER ::= { iso(1) identified-organization(3) certicom(132) curve(0) 16 } sect283r1 OBJECT IDENTIFIER ::= { iso(1) identified-organization(3) certicom(132) curve(0) 17 } secp384r1 OBJECT IDENTIFIER ::= { iso(1) identified-organization(3) certicom(132) curve(0) 34 } sect409k1 OBJECT IDENTIFIER ::= { iso(1) identified-organization(3) certicom(132) curve(0) 36 } sect409r1 OBJECT IDENTIFIER ::= { iso(1) identified-organization(3) certicom(132) curve(0) 37 } secp521r1 OBJECT IDENTIFIER ::= { iso(1) identified-organization(3) certicom(132) curve(0) 35 } sect571k1 OBJECT IDENTIFIER ::= { iso(1) identified-organization(3) certicom(132) curve(0) 38 } sect571r1 OBJECT IDENTIFIER ::= { iso(1) identified-organization(3) certicom(132) curve(0) 39 } -- RSA with MD-2 -- sa-rsaWithMD2 SIGNATURE-ALGORITHM ::= { -- IDENTIFIER md2WithRSAEncryption -- PARAMS TYPE NULL ARE required -- HASHES { mda-md2 } -- PUBLIC-KEYS { pk-rsa } -- SMIME-CAPS { IDENTIFIED BY md2WithRSAEncryption } -- } md2WithRSAEncryption OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-1(1) 2 } -- RSA with MD-5 -- sa-rsaWithMD5 SIGNATURE-ALGORITHM ::= { -- IDENTIFIER md5WithRSAEncryption -- PARAMS TYPE NULL ARE required -- HASHES { mda-md5 } -- PUBLIC-KEYS { pk-rsa } -- SMIME-CAPS { IDENTIFIED BY md5WithRSAEncryption } -- } md5WithRSAEncryption OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-1(1) 4 } -- RSA with SHA-1 -- sa-rsaWithSHA1 SIGNATURE-ALGORITHM ::= { -- IDENTIFIER sha1WithRSAEncryption -- PARAMS TYPE NULL ARE required -- HASHES { mda-sha1 } -- PUBLIC-KEYS { pk-rsa } -- SMIME-CAPS {IDENTIFIED BY sha1WithRSAEncryption } -- } sha1WithRSAEncryption OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-1(1) 5 } -- DSA with SHA-1 -- sa-dsaWithSHA1 SIGNATURE-ALGORITHM ::= { -- IDENTIFIER dsa-with-sha1 -- VALUE DSA-Sig-Value -- PARAMS TYPE NULL ARE absent -- HASHES { mda-sha1 } -- PUBLIC-KEYS { pk-dsa } -- SMIME-CAPS { IDENTIFIED BY dsa-with-sha1 } -- } dsa-with-sha1 OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) x9-57(10040) x9algorithm(4) 3 } -- DSA with SHA-224 -- sa-dsaWithSHA224 SIGNATURE-ALGORITHM ::= { -- IDENTIFIER dsa-with-sha224 -- VALUE DSA-Sig-Value -- PARAMS TYPE NULL ARE absent -- HASHES { mda-sha224 } -- PUBLIC-KEYS { pk-dsa } -- SMIME-CAPS { IDENTIFIED BY dsa-with-sha224 } -- } dsa-with-sha224 OBJECT IDENTIFIER ::= { joint-iso-ccitt(2) country(16) us(840) organization(1) gov(101) csor(3) algorithms(4) id-dsa-with-sha2(3) 1 } -- DSA with SHA-256 -- sa-dsaWithSHA256 SIGNATURE-ALGORITHM ::= { -- IDENTIFIER dsa-with-sha256 -- VALUE DSA-Sig-Value -- PARAMS TYPE NULL ARE absent -- HASHES { mda-sha256 } -- PUBLIC-KEYS { pk-dsa } -- SMIME-CAPS { IDENTIFIED BY dsa-with-sha256 } -- } dsa-with-sha256 OBJECT IDENTIFIER ::= { joint-iso-ccitt(2) country(16) us(840) organization(1) gov(101) csor(3) algorithms(4) id-dsa-with-sha2(3) 2 } -- ECDSA with SHA-1 -- sa-ecdsaWithSHA1 SIGNATURE-ALGORITHM ::= { -- IDENTIFIER ecdsa-with-SHA1 -- VALUE ECDSA-Sig-Value -- PARAMS TYPE NULL ARE absent -- HASHES { mda-sha1 } -- PUBLIC-KEYS { pk-ec } -- SMIME-CAPS {IDENTIFIED BY ecdsa-with-SHA1 } -- } ecdsa-with-SHA1 OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) ansi-X9-62(10045) signatures(4) 1 } -- ECDSA with SHA-224 -- sa-ecdsaWithSHA224 SIGNATURE-ALGORITHM ::= { -- IDENTIFIER ecdsa-with-SHA224 -- VALUE ECDSA-Sig-Value -- PARAMS TYPE NULL ARE absent -- HASHES { mda-sha224 } -- PUBLIC-KEYS { pk-ec } -- SMIME-CAPS { IDENTIFIED BY ecdsa-with-SHA224 } -- } ecdsa-with-SHA224 OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) ansi-X9-62(10045) signatures(4) ecdsa-with-SHA2(3) 1 } -- ECDSA with SHA-256 -- sa-ecdsaWithSHA256 SIGNATURE-ALGORITHM ::= { -- IDENTIFIER ecdsa-with-SHA256 -- VALUE ECDSA-Sig-Value -- PARAMS TYPE NULL ARE absent -- HASHES { mda-sha256 } -- PUBLIC-KEYS { pk-ec } -- SMIME-CAPS { IDENTIFIED BY ecdsa-with-SHA256 } -- } ecdsa-with-SHA256 OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) ansi-X9-62(10045) signatures(4) ecdsa-with-SHA2(3) 2 } -- ECDSA with SHA-384 -- sa-ecdsaWithSHA384 SIGNATURE-ALGORITHM ::= { -- IDENTIFIER ecdsa-with-SHA384 -- VALUE ECDSA-Sig-Value -- PARAMS TYPE NULL ARE absent -- HASHES { mda-sha384 } -- PUBLIC-KEYS { pk-ec } -- SMIME-CAPS { IDENTIFIED BY ecdsa-with-SHA384 } -- } ecdsa-with-SHA384 OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) ansi-X9-62(10045) signatures(4) ecdsa-with-SHA2(3) 3 } -- ECDSA with SHA-512 -- sa-ecdsaWithSHA512 SIGNATURE-ALGORITHM ::= { -- IDENTIFIER ecdsa-with-SHA512 -- VALUE ECDSA-Sig-Value -- PARAMS TYPE NULL ARE absent -- HASHES { mda-sha512 } -- PUBLIC-KEYS { pk-ec } -- SMIME-CAPS { IDENTIFIED BY ecdsa-with-SHA512 } -- } ecdsa-with-SHA512 OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) ansi-X9-62(10045) signatures(4) ecdsa-with-SHA2(3) 4 } -- -- Signature Values -- -- DSA DSA-Sig-Value ::= SEQUENCE { r INTEGER, s INTEGER } -- ECDSA ECDSA-Sig-Value ::= SEQUENCE { r INTEGER, s INTEGER } -- -- Message Digest Algorithms (mda-) -- HashAlgs DIGEST-ALGORITHM ::= { mda-md2 | mda-md5 | mda-sha1, ... -- Extensible } -- MD-2 -- mda-md2 DIGEST-ALGORITHM ::= { -- IDENTIFIER id-md2 -- PARAMS TYPE NULL ARE preferredAbsent -- } id-md2 OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) digestAlgorithm(2) 2 } -- MD-5 -- mda-md5 DIGEST-ALGORITHM ::= { -- IDENTIFIER id-md5 -- PARAMS TYPE NULL ARE preferredAbsent -- } id-md5 OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) digestAlgorithm(2) 5 } -- SHA-1 -- mda-sha1 DIGEST-ALGORITHM ::= { -- IDENTIFIER id-sha1 -- PARAMS TYPE NULL ARE preferredAbsent -- } id-sha1 OBJECT IDENTIFIER ::= { iso(1) identified-organization(3) oiw(14) secsig(3) algorithm(2) 26 } -- SHA-2 family (from RFC 3447) id-sha256 OBJECT IDENTIFIER ::= { joint-iso-itu-t(2) country(16) us(840) organization(1) gov(101) csor(3) nistalgorithm(4) hashalgs(2) 1 } END
Text
wireshark/epan/dissectors/asn1/pkcs10/CMakeLists.txt
# CMakeLists.txt # # Wireshark - Network traffic analyzer # By Gerald Combs <[email protected]> # Copyright 1998 Gerald Combs # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # set( PROTOCOL_NAME pkcs10 ) set( PROTO_OPT ) set( EXT_ASN_FILE_LIST ) set( ASN_FILE_LIST PKCS10.asn ) set( EXTRA_DIST ${ASN_FILE_LIST} packet-${PROTOCOL_NAME}-template.c packet-${PROTOCOL_NAME}-template.h ${PROTOCOL_NAME}.cnf ) set( SRC_FILES ${EXTRA_DIST} ${EXT_ASN_FILE_LIST} ) set( A2W_FLAGS -b ) ASN2WRS()
C
wireshark/epan/dissectors/asn1/pkcs10/packet-pkcs10-template.c
/* packet-p10.c * * Routines for PKCS10 packet dissection * Martin Peylo <[email protected]> 2018 * * Wireshark - Network traffic analyzer * By Gerald Combs <[email protected]> * Copyright 1998 Gerald Combs * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "config.h" #include <epan/packet.h> #include <epan/oids.h> #include <epan/asn1.h> #include "packet-ber.h" #include "packet-pkcs10.h" #include "packet-pkix1explicit.h" #include "packet-pkix1implicit.h" #include <epan/prefs.h> #define PNAME "PKCS10 Certification Request" #define PSNAME "PKCS10" #define PFNAME "pkcs10" void proto_register_pkcs10(void); static dissector_handle_t csr_handle; /* Initialize the protocol and registered fields */ static int proto_pkcs10 = -1; #include "packet-pkcs10-hf.c" /* Initialize the subtree pointers */ #include "packet-pkcs10-ett.c" #include "packet-pkcs10-fn.c" /*--- proto_register_pkcs10 ----------------------------------------------*/ void proto_register_pkcs10(void) { /* List of fields */ static hf_register_info hf[] = { #include "packet-pkcs10-hfarr.c" }; /* List of subtrees */ static gint *ett[] = { #include "packet-pkcs10-ettarr.c" }; /* Register protocol */ proto_pkcs10 = proto_register_protocol(PNAME, PSNAME, PFNAME); /* Register fields and subtrees */ proto_register_field_array(proto_pkcs10, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); csr_handle = register_dissector(PFNAME, dissect_CertificationRequest_PDU, proto_pkcs10); register_ber_syntax_dissector("CertificationRequest", proto_pkcs10, dissect_CertificationRequest_PDU); register_ber_oid_syntax(".p10", NULL, "CertificationRequest"); register_ber_oid_syntax(".csr", NULL, "CertificationRequest"); } /*--- proto_reg_handoff_pkcs10 -------------------------------------------*/ void proto_reg_handoff_pkcs10(void) { #include "packet-pkcs10-dis-tab.c" dissector_add_string("media_type", "application/pkcs10", csr_handle); /* RFC 5967 */ dissector_add_string("rfc7468.preeb_label", "CERTIFICATE REQUEST", csr_handle); /* RFC 7468 */ dissector_add_string("rfc7468.preeb_label", "NEW CERTIFICATE REQUEST", csr_handle); /* RFC 7468 Appendix A. Non-conforming expample*/ }
C/C++
wireshark/epan/dissectors/asn1/pkcs10/packet-pkcs10-template.h
/* packet-pkcs10.h * * Routines for PKCS10 dissection * Martin Peylo 2017 * * Wireshark - Network traffic analyzer * By Gerald Combs <[email protected]> * Copyright 1998 Gerald Combs * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #ifndef PACKET_PKCS10_H #define PACKET_PKCS10_H void proto_reg_handoff_pkcs10(void); #include "packet-pkcs10-exp.h" #endif /* PACKET_PKCS10_H */
ASN.1
wireshark/epan/dissectors/asn1/pkcs10/PKCS10.asn
-- Extracted from RFC2986 -- by Martin Peylo <[email protected]> 2018 -- -- Changes to the original ASN.1 source: -- - commented out import from InformationFramework -- - commented out AlgorithmIdentifier -- - commented out SubjectPublicKeyInfo -- - simplified Attribute -- - added out import the above from PKIX1Explicit88 -- -- The copyright statement from the original description in RFC2986 -- follows below: -- -- Full Copyright Statement -- -- Copyright (C) The Internet Society 2000. All Rights Reserved. -- -- This document and translations of it may be copied and furnished to -- others provided that the above copyright notice and this paragraph -- are included on all such copies. However, this document itself may -- not be modified in any way, such as by removing the copyright notice -- or references to the Internet Society or other Internet -- organizations, except as required to translate it into languages -- other than English. -- -- The limited permissions granted above are perpetual and will not be -- revoked by the Internet Society or its successors or assigns. -- -- This document and the information contained herein is provided on an -- "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING -- TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING -- BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION -- HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF -- MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. PKCS-10 {iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-10(10) modules(1) pkcs-10(1)} DEFINITIONS IMPLICIT TAGS ::= BEGIN -- EXPORTS All -- -- All types and values defined in this module are exported for use -- in other ASN.1 modules. IMPORTS informationFramework, authenticationFramework FROM UsefulDefinitions {joint-iso-itu-t(2) ds(5) module(1) usefulDefinitions(0) 3} -- COMMENTED OUT as PKIX1Explicit88 provides this -- ATTRIBUTE, Name -- FROM InformationFramework informationFramework -- ADDED to avoid that it needs to be implemented here, and to have Name -- Directory Authentication Framework (X.509) AlgorithmIdentifier, Name, SubjectPublicKeyInfo FROM PKIX1Explicit88 {iso(1) identified-organization(3) dod(6) internet(1) security(5) mechanisms(5) pkix(7) id-mod(0) id-pkix1-explicit(18)} ALGORITHM FROM AuthenticationFramework authenticationFramework; -- Certificate requests CertificationRequestInfo ::= SEQUENCE { version INTEGER { v1(0) } (v1,...), subject Name, subjectPKInfo SubjectPublicKeyInfo{{ PKInfoAlgorithms }}, attributes [0] Attributes{{ CRIAttributes }} } -- COMMENTED OUT as not needed as imported from PKIX1Explicit88 -- SubjectPublicKeyInfo {ALGORITHM: IOSet} ::= SEQUENCE { -- algorithm AlgorithmIdentifier {{IOSet}}, -- subjectPublicKey BIT STRING -- } PKInfoAlgorithms ALGORITHM ::= { ... -- add any locally defined algorithms here -- } Attributes { ATTRIBUTE:IOSet } ::= SET OF Attribute{{ IOSet }} CRIAttributes ATTRIBUTE ::= { ... -- add any locally defined attributes here -- } -- Simplified to make it easier to digest -- Attribute { ATTRIBUTE:IOSet } ::= SEQUENCE { -- type ATTRIBUTE.&id({IOSet}), -- values SET SIZE(1..MAX) OF ATTRIBUTE.&Type({IOSet}{@type}) -- } Attribute ::= SEQUENCE { type OBJECT IDENTIFIER, values SET SIZE (1 .. MAX) OF ANY } CertificationRequest ::= SEQUENCE { certificationRequestInfo CertificationRequestInfo, signatureAlgorithm AlgorithmIdentifier{{ SignatureAlgorithms }}, signature BIT STRING } -- COMMENTED OUT as not needed as imported from PKIX1Explicit88 -- AlgorithmIdentifier {ALGORITHM:IOSet } ::= SEQUENCE { -- algorithm ALGORITHM.&id({IOSet}), -- parameters ALGORITHM.&Type({IOSet}{@algorithm}) OPTIONAL -- } SignatureAlgorithms ALGORITHM ::= { ... -- add any locally defined algorithms here -- } END
Configuration
wireshark/epan/dissectors/asn1/pkcs10/pkcs10.cnf
# pkcs10.cnf # PKCS10 conformation file #.MODULE_IMPORT PKIX1Explicit88 pkix1explicit #.INCLUDE ../pkix1explicit/pkix1explicit_exp.cnf #.EXPORTS CertificationRequest #.REGISTER # From PKCS 9 / RFC 2985 Attributes B "1.2.840.113549.1.9.9" "pkcs-9-at-extendedCertificateAttributes" #.PDU CertificationRequest #.NO_EMIT #.TYPE_RENAME #.FIELD_RENAME #.FN_PARS Attribute/type FN_VARIANT = _str HF_INDEX = hf_pkcs10_type VAL_PTR = &actx->external.direct_reference #.FN_BODY Attribute/values/_item offset=call_ber_oid_callback(actx->external.direct_reference, tvb, offset, actx->pinfo, tree, NULL); #.END_OF_CNF
Text
wireshark/epan/dissectors/asn1/pkcs12/CMakeLists.txt
# CMakeLists.txt # # Wireshark - Network traffic analyzer # By Gerald Combs <[email protected]> # Copyright 1998 Gerald Combs # # SPDX-License-Identifier: GPL-2.0-or-later # set( PROTOCOL_NAME pkcs12 ) set( PROTO_OPT ) set( EXT_ASN_FILE_LIST ) set( ASN_FILE_LIST ${PROTOCOL_NAME}.asn ) set( EXTRA_DIST ${ASN_FILE_LIST} packet-${PROTOCOL_NAME}-template.c packet-${PROTOCOL_NAME}-template.h ${PROTOCOL_NAME}.cnf ) set( SRC_FILES ${EXTRA_DIST} ${EXT_ASN_FILE_LIST} ) set( A2W_FLAGS -b ) set( EXTRA_CNF "${CMAKE_CURRENT_BINARY_DIR}/../x509if/x509if-exp.cnf" "${CMAKE_CURRENT_BINARY_DIR}/../x509af/x509af-exp.cnf" "${CMAKE_CURRENT_BINARY_DIR}/../cms/cms-exp.cnf" ) ASN2WRS()
C
wireshark/epan/dissectors/asn1/pkcs12/packet-pkcs12-template.c
/* packet-pkcs12.c * Routines for PKCS#12: Personal Information Exchange packet dissection * Graeme Lunt 2006 * * See "PKCS #12 v1.1: Personal Information Exchange Syntax": * * http://www.emc.com/emc-plus/rsa-labs/pkcs/files/h11301-wp-pkcs-12v1-1-personal-information-exchange-syntax.pdf * * Wireshark - Network traffic analyzer * By Gerald Combs <[email protected]> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #include <epan/packet.h> #include <epan/expert.h> #include <epan/oids.h> #include <epan/asn1.h> #include <epan/prefs.h> #include "packet-ber.h" #include "packet-pkcs12.h" #include "packet-x509af.h" #include "packet-x509if.h" #include "packet-cms.h" #include <wsutil/wsgcrypt.h> #define PNAME "PKCS#12: Personal Information Exchange" #define PSNAME "PKCS12" #define PFNAME "pkcs12" #define PKCS12_PBE_ARCFOUR_SHA1_OID "1.2.840.113549.1.12.1.1" #define PKCS12_PBE_3DES_SHA1_OID "1.2.840.113549.1.12.1.3" #define PKCS12_PBE_RC2_40_SHA1_OID "1.2.840.113549.1.12.1.6" void proto_register_pkcs12(void); void proto_reg_handoff_pkcs12(void); /* Initialize the protocol and registered fields */ static int proto_pkcs12 = -1; static int hf_pkcs12_X509Certificate_PDU = -1; static int hf_pkcs12_AuthenticatedSafe_PDU = -1; /* AuthenticatedSafe */ static gint ett_decrypted_pbe = -1; static expert_field ei_pkcs12_octet_string_expected = EI_INIT; static const char *object_identifier_id = NULL; static int iteration_count = 0; static tvbuff_t *salt = NULL; static const char *password = NULL; static gboolean try_null_password = FALSE; static int dissect_AuthenticatedSafe_OCTETSTRING_PDU(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data); static int dissect_SafeContents_OCTETSTRING_PDU(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data); static int dissect_PrivateKeyInfo_PDU(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data); #include "packet-pkcs12-hf.c" /* Initialize the subtree pointers */ #include "packet-pkcs12-ett.c" static void append_oid(wmem_allocator_t *pool, proto_tree *tree, const char *oid) { const char *name = NULL; name = oid_resolved_from_string(pool, oid); proto_item_append_text(tree, " (%s)", name ? name : oid); } static int generate_key_or_iv(packet_info *pinfo, unsigned int id, tvbuff_t *salt_tvb, unsigned int iter, const char *pw, unsigned int req_keylen, char * keybuf) { int rc; unsigned int i, j; gcry_md_hd_t md; gcry_mpi_t num_b1 = NULL; size_t pwlen; char hash[20], buf_b[64], buf_i[128], *p; char *salt_p; int salt_size; size_t cur_keylen; size_t n; gcry_error_t err; cur_keylen = 0; salt_size = tvb_captured_length(salt_tvb); salt_p = (char *)tvb_memdup(pinfo->pool, salt_tvb, 0, salt_size); if (pw == NULL) pwlen = 0; else pwlen = strlen(pw); if (pwlen > 63 / 2) { return FALSE; } /* Store salt and password in BUF_I */ p = buf_i; for (i = 0; i < 64; i++) *p++ = salt_p[i % salt_size]; if (pw) { for (i = j = 0; i < 64; i += 2) { *p++ = 0; *p++ = pw[j]; if (++j > pwlen) /* Note, that we include the trailing zero */ j = 0; } } else memset (p, 0, 64); for (;;) { err = gcry_md_open(&md, GCRY_MD_SHA1, 0); if (gcry_err_code(err)) { return FALSE; } for (i = 0; i < 64; i++) { unsigned char lid = id & 0xFF; gcry_md_write (md, &lid, 1); } gcry_md_write(md, buf_i, pw ? 128 : 64); gcry_md_final (md); memcpy (hash, gcry_md_read (md, 0), 20); gcry_md_close (md); for (i = 1; i < iter; i++) gcry_md_hash_buffer (GCRY_MD_SHA1, hash, hash, 20); for (i = 0; i < 20 && cur_keylen < req_keylen; i++) keybuf[cur_keylen++] = hash[i]; if (cur_keylen == req_keylen) { gcry_mpi_release (num_b1); return TRUE; /* ready */ } /* need more bytes. */ for (i = 0; i < 64; i++) buf_b[i] = hash[i % 20]; n = 64; rc = gcry_mpi_scan (&num_b1, GCRYMPI_FMT_USG, buf_b, n, &n); if (rc != 0) { return FALSE; } gcry_mpi_add_ui (num_b1, num_b1, 1); for (i = 0; i < 128; i += 64) { gcry_mpi_t num_ij; n = 64; rc = gcry_mpi_scan (&num_ij, GCRYMPI_FMT_USG, buf_i + i, n, &n); if (rc != 0) { return FALSE; } gcry_mpi_add (num_ij, num_ij, num_b1); gcry_mpi_clear_highbit (num_ij, 64 * 8); n = 64; rc = gcry_mpi_print (GCRYMPI_FMT_USG, buf_i + i, n, &n, num_ij); if (rc != 0) { return FALSE; } gcry_mpi_release (num_ij); } } } void PBE_reset_parameters(void) { iteration_count = 0; salt = NULL; } int PBE_decrypt_data(const char *object_identifier_id_param _U_, tvbuff_t *encrypted_tvb _U_, packet_info *pinfo _U_, asn1_ctx_t *actx _U_, proto_item *item _U_) { const char *encryption_algorithm; gcry_cipher_hd_t cipher; gcry_error_t err; int algo; int mode; int ivlen = 0; int keylen = 0; int datalen = 0; char *key = NULL; char *iv = NULL; char *clear_data = NULL; tvbuff_t *clear_tvb = NULL; const gchar *oidname; GString *name; proto_tree *tree; char byte; gboolean decrypt_ok = TRUE; if(((password == NULL) || (*password == '\0')) && (try_null_password == FALSE)) { /* we are not configured to decrypt */ return FALSE; } encryption_algorithm = x509af_get_last_algorithm_id(); /* these are the only encryption schemes we understand for now */ if(!strcmp(encryption_algorithm, PKCS12_PBE_3DES_SHA1_OID)) { ivlen = 8; keylen = 24; algo = GCRY_CIPHER_3DES; mode = GCRY_CIPHER_MODE_CBC; } else if(!strcmp(encryption_algorithm, PKCS12_PBE_ARCFOUR_SHA1_OID)) { ivlen = 0; keylen = 16; algo = GCRY_CIPHER_ARCFOUR; mode = GCRY_CIPHER_MODE_NONE; } else if(!strcmp(encryption_algorithm, PKCS12_PBE_RC2_40_SHA1_OID)) { ivlen = 8; keylen = 5; algo = GCRY_CIPHER_RFC2268_40; mode = GCRY_CIPHER_MODE_CBC; } else { /* we don't know how to decrypt this */ proto_item_append_text(item, " [Unsupported encryption algorithm]"); return FALSE; } if((iteration_count == 0) || (salt == NULL)) { proto_item_append_text(item, " [Insufficient parameters]"); return FALSE; } /* allocate buffers */ key = (char *)wmem_alloc(pinfo->pool, keylen); if(!generate_key_or_iv(pinfo, 1 /*LEY */, salt, iteration_count, password, keylen, key)) return FALSE; if(ivlen) { iv = (char *)wmem_alloc(pinfo->pool, ivlen); if(!generate_key_or_iv(pinfo, 2 /* IV */, salt, iteration_count, password, ivlen, iv)) return FALSE; } /* now try an internal function */ err = gcry_cipher_open(&cipher, algo, mode, 0); if (gcry_err_code (err)) return FALSE; err = gcry_cipher_setkey (cipher, key, keylen); if (gcry_err_code (err)) { gcry_cipher_close (cipher); return FALSE; } if(ivlen) { err = gcry_cipher_setiv (cipher, iv, ivlen); if (gcry_err_code (err)) { gcry_cipher_close (cipher); return FALSE; } } datalen = tvb_captured_length(encrypted_tvb); clear_data = (char *)wmem_alloc(pinfo->pool, datalen); err = gcry_cipher_decrypt (cipher, clear_data, datalen, (char *)tvb_memdup(pinfo->pool, encrypted_tvb, 0, datalen), datalen); if (gcry_err_code (err)) { proto_item_append_text(item, " [Failed to decrypt with password preference]"); gcry_cipher_close (cipher); return FALSE; } gcry_cipher_close (cipher); /* We don't know if we have successfully decrypted the data or not so we: a) check the trailing bytes b) see if we start with a sequence or a set (is this too constraining? */ /* first the trailing bytes */ byte = clear_data[datalen-1]; if(byte <= 0x08) { int i; for(i = (int)byte; i > 0 ; i--) { if(clear_data[datalen - i] != byte) { decrypt_ok = FALSE; break; } } } else { /* XXX: is this a failure? */ } /* we assume the result is ASN.1 - check it is a SET or SEQUENCE */ byte = clear_data[0]; if((byte != 0x30) && (byte != 0x31)) { /* do we need more here? OCTET STRING? */ decrypt_ok = FALSE; } if(!decrypt_ok) { proto_item_append_text(item, " [Failed to decrypt with supplied password]"); return FALSE; } proto_item_append_text(item, " [Decrypted successfully]"); tree = proto_item_add_subtree(item, ett_decrypted_pbe); /* OK - so now clear_data contains the decrypted data */ clear_tvb = tvb_new_child_real_data(encrypted_tvb,(const guint8 *)clear_data, datalen, datalen); name = g_string_new(""); oidname = oid_resolved_from_string(pinfo->pool, object_identifier_id_param); g_string_printf(name, "Decrypted %s", oidname ? oidname : object_identifier_id_param); /* add it as a new source */ add_new_data_source(actx->pinfo, clear_tvb, name->str); g_string_free(name, TRUE); /* now try and decode it */ call_ber_oid_callback(object_identifier_id_param, clear_tvb, 0, actx->pinfo, tree, NULL); return TRUE; } #include "packet-pkcs12-fn.c" static int strip_octet_string(tvbuff_t *tvb) { gint8 ber_class; bool pc, ind; gint32 tag; guint32 len; int offset = 0; /* PKCS#7 encodes the content as OCTET STRING, whereas CMS is just any ANY */ /* if we use CMS (rather than PKCS#7) - which we are - we need to strip the OCTET STRING tag */ /* before proceeding */ offset = get_ber_identifier(tvb, 0, &ber_class, &pc, &tag); offset = get_ber_length(tvb, offset, &len, &ind); if((ber_class == BER_CLASS_UNI) && (tag == BER_UNI_TAG_OCTETSTRING)) return offset; return 0; } static int dissect_AuthenticatedSafe_OCTETSTRING_PDU(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_) { int offset = 0; asn1_ctx_t asn1_ctx; asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); if((offset = strip_octet_string(tvb)) > 0) dissect_pkcs12_AuthenticatedSafe(FALSE, tvb, offset, &asn1_ctx, tree, hf_pkcs12_AuthenticatedSafe_PDU); else proto_tree_add_expert(tree, pinfo, &ei_pkcs12_octet_string_expected, tvb, 0, 1); return tvb_captured_length(tvb); } static int dissect_SafeContents_OCTETSTRING_PDU(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_) { int offset = 0; asn1_ctx_t asn1_ctx; asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); offset = strip_octet_string(tvb); dissect_pkcs12_SafeContents(FALSE, tvb, offset, &asn1_ctx, tree, hf_pkcs12_SafeContents_PDU); return tvb_captured_length(tvb); } static int dissect_X509Certificate_OCTETSTRING_PDU(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_) { int offset = 0; asn1_ctx_t asn1_ctx; asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); if((offset = strip_octet_string(tvb)) > 0) dissect_x509af_Certificate(FALSE, tvb, offset, &asn1_ctx, tree, hf_pkcs12_X509Certificate_PDU); else proto_tree_add_expert(tree, pinfo, &ei_pkcs12_octet_string_expected, tvb, 0, 1); return tvb_captured_length(tvb); } /*--- proto_register_pkcs12 ----------------------------------------------*/ void proto_register_pkcs12(void) { /* List of fields */ static hf_register_info hf[] = { { &hf_pkcs12_X509Certificate_PDU, { "X509Certificate", "pkcs12.X509Certificate", FT_NONE, BASE_NONE, NULL, 0, "pkcs12.X509Certificate", HFILL }}, { &hf_pkcs12_AuthenticatedSafe_PDU, { "AuthenticatedSafe", "pkcs12.AuthenticatedSafe", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL }}, #include "packet-pkcs12-hfarr.c" }; /* List of subtrees */ static gint *ett[] = { &ett_decrypted_pbe, #include "packet-pkcs12-ettarr.c" }; static ei_register_info ei[] = { { &ei_pkcs12_octet_string_expected, { "pkcs12.octet_string_expected", PI_PROTOCOL, PI_WARN, "BER Error: OCTET STRING expected", EXPFILL }}, }; module_t *pkcs12_module; expert_module_t* expert_pkcs12; /* Register protocol */ proto_pkcs12 = proto_register_protocol(PNAME, PSNAME, PFNAME); /* Register fields and subtrees */ proto_register_field_array(proto_pkcs12, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); expert_pkcs12 = expert_register_protocol(proto_pkcs12); expert_register_field_array(expert_pkcs12, ei, array_length(ei)); /* Register preferences */ pkcs12_module = prefs_register_protocol(proto_pkcs12, NULL); prefs_register_string_preference(pkcs12_module, "password", "Password to decrypt the file with", "The password to used to decrypt the encrypted elements within" " the PKCS#12 file", &password); prefs_register_bool_preference(pkcs12_module, "try_null_password", "Try to decrypt with a empty password", "Whether to try and decrypt the encrypted data within the" " PKCS#12 with a NULL password", &try_null_password); register_ber_syntax_dissector("PKCS#12", proto_pkcs12, dissect_PFX_PDU); register_ber_oid_syntax(".p12", NULL, "PKCS#12"); register_ber_oid_syntax(".pfx", NULL, "PKCS#12"); } /*--- proto_reg_handoff_pkcs12 -------------------------------------------*/ void proto_reg_handoff_pkcs12(void) { #include "packet-pkcs12-dis-tab.c" register_ber_oid_dissector("1.2.840.113549.1.9.22.1", dissect_X509Certificate_OCTETSTRING_PDU, proto_pkcs12, "x509Certificate"); }
C/C++
wireshark/epan/dissectors/asn1/pkcs12/packet-pkcs12-template.h
/* packet-pkcs12.h * Routines for PKCS#12 Personal Information Exchange packet dissection * Graeme Lunt 2006 * * Wireshark - Network traffic analyzer * By Gerald Combs <[email protected]> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef PACKET_PKCS12_H #define PACKET_PKCS12_H void PBE_reset_parameters(void); int PBE_decrypt_data(const char *object_identifier_id, tvbuff_t *encrypted_tvb, packet_info *pinfo, asn1_ctx_t *actx, proto_item *item); #endif /* PACKET_PKCS12_H */
ASN.1
wireshark/epan/dissectors/asn1/pkcs12/pkcs12.asn
PKCS-12 {iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-12(12) modules(0) pkcs-12(1)} DEFINITIONS IMPLICIT TAGS ::= BEGIN -- EXPORTS ALL -- All types and values defined in this module is exported for use in -- other ASN.1 modules. IMPORTS informationFramework FROM UsefulDefinitions {joint-iso-itu-t(2) ds(5) module(1) usefulDefinitions(0) 3} Attribute FROM InformationFramework informationFramework ContentInfo, DigestInfo, Digest, DigestAlgorithmIdentifier FROM PKCS-7 {iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-7(7) modules(0) pkcs-7(1)} --PrivateKeyInfo, EncryptedPrivateKeyInfo -- FROM PKCS-8 {iso(1) member-body(2) us(840) rsadsi(113549) -- pkcs(1) pkcs-8(8) modules(1) pkcs-8(1)} -- --pkcs-9, friendlyName, localKeyId, certTypes, crlTypes -- FROM PKCS-9 {iso(1) member-body(2) us(840) rsadsi(113549) -- pkcs(1) pkcs-9(9) modules(0) pkcs-9(1) };-- -- A PKCS#8 IMPORT from below AlgorithmIdentifier, ALGORITHM-IDENTIFIER FROM PKCS-5 {iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-5(5) modules(16) pkcs-5(1)}; -- Object identifiers --rsadsi OBJECT IDENTIFIER ::= {iso(1) member-body(2) us(840) rsadsi(113549)} --pkcs OBJECT IDENTIFIER ::= {rsadsi pkcs(1)} --pkcs-12 OBJECT IDENTIFIER ::= {pkcs 12} --pkcs-12PbeIds OBJECT IDENTIFIER ::= {pkcs-12 1} --pbeWithSHAAnd128BitRC4 OBJECT IDENTIFIER ::= {pkcs-12PbeIds 1} --pbeWithSHAAnd40BitRC4 OBJECT IDENTIFIER ::= {pkcs-12PbeIds 2} --pbeWithSHAAnd3-KeyTripleDES-CBC OBJECT IDENTIFIER ::= {pkcs-12PbeIds 3} --pbeWithSHAAnd2-KeyTripleDES-CBC OBJECT IDENTIFIER ::= {pkcs-12PbeIds 4} --pbeWithSHAAnd128BitRC2-CBC OBJECT IDENTIFIER ::= {pkcs-12PbeIds 5} --pbewithSHAAnd40BitRC2-CBC OBJECT IDENTIFIER ::= {pkcs-12PbeIds 6} --bagtypes OBJECT IDENTIFIER ::= {pkcs-12 10 1} -- The PFX PDU PFX ::= SEQUENCE { version INTEGER {v3(3)}(v3,...), authSafe ContentInfo, macData MacData OPTIONAL } MacData ::= SEQUENCE { mac DigestInfo, macSalt OCTET STRING, iterations INTEGER DEFAULT 1 -- Note: The default is for historical reasons and its use is -- deprecated. A higher value, like 1024 is recommended. } AuthenticatedSafe ::= SEQUENCE OF ContentInfo -- Data if unencrypted -- EncryptedData if password-encrypted -- EnvelopedData if public key-encrypted SafeContents ::= SEQUENCE OF SafeBag SafeBag ::= SEQUENCE { bagId -- BAG-TYPE.&id ({PKCS12BagSet}) -- OBJECT IDENTIFIER, bagValue [0] EXPLICIT --BAG-TYPE.&Type({PKCS12BagSet}{@bagId}) -- ANY, bagAttributes SET OF PKCS12Attribute OPTIONAL } -- Bag types --keyBag BAG-TYPE ::= -- {KeyBag IDENTIFIED BY {bagtypes 1}} --pkcs8ShroudedKeyBag BAG-TYPE ::= -- {PKCS8ShroudedKeyBag IDENTIFIED BY {bagtypes 2}} --certBag BAG-TYPE ::= -- {CertBag IDENTIFIED BY {bagtypes 3}} --crlBag BAG-TYPE ::= -- {CRLBag IDENTIFIED BY {bagtypes 4}} --secretBag BAG-TYPE ::= -- {SecretBag IDENTIFIED BY {bagtypes 5}} --safeContentsBag BAG-TYPE ::= -- {SafeContents IDENTIFIED BY {bagtypes 6}} --PKCS12BagSet BAG-TYPE ::= { -- keyBag | -- pkcs8ShroudedKeyBag | -- certBag | -- crlBag | -- secretBag | -- safeContentsBag, -- ... - - For future extensions --} --BAG-TYPE ::= TYPE-IDENTIFIER -- KeyBag KeyBag ::= PrivateKeyInfo -- Shrouded KeyBag PKCS8ShroudedKeyBag ::= EncryptedPrivateKeyInfo -- CertBag CertBag ::= SEQUENCE { certId --BAG-TYPE.&id ({CertTypes}) -- OBJECT IDENTIFIER, certValue [0] EXPLICIT --BAG-TYPE.&Type ({CertTypes}{@certId})-- ANY } --x509Certificate BAG-TYPE ::= -- {OCTET STRING IDENTIFIED BY {certTypes 1}} -- DER-encoded X.509 certificate stored in OCTET STRING --sdsiCertificate BAG-TYPE ::= -- {IA5String IDENTIFIED BY {certTypes 2}} -- Base64-encoded SDSI certificate stored in IA5String --CertTypes BAG-TYPE ::= { -- x509Certificate | -- sdsiCertificate, -- ... - - For future extensions --} -- CRLBag CRLBag ::= SEQUENCE { crlId --BAG-TYPE.&id ({CRLTypes})-- OBJECT IDENTIFIER, crlValue [0] EXPLICIT --BAG-TYPE.&Type ({CRLTypes}{@crlId})-- ANY } --x509CRL BAG-TYPE ::= -- {OCTET STRING IDENTIFIED BY {crlTypes 1}} -- DER-encoded X.509 CRL stored in OCTET STRING --CRLTypes BAG-TYPE ::= { -- x509CRL, -- ... - - For future extensions --} -- Secret Bag SecretBag ::= SEQUENCE { secretTypeId --BAG-TYPE.&id ({SecretTypes})-- OBJECT IDENTIFIER, secretValue [0] EXPLICIT --BAG-TYPE.&Type ({SecretTypes}{@secretTypeId})-- ANY } --SecretTypes BAG-TYPE ::= { -- ... - - For future extensions --} -- Attributes PKCS12Attribute ::= SEQUENCE { attrId --ATTRIBUTE.&id ({PKCS12AttrSet})-- OBJECT IDENTIFIER, attrValues SET OF --ATTRIBUTE.&Type ({PKCS12AttrSet}{@attrId})-- ANY } -- This type is compatible with the X.500 type 'Attribute' --PKCS12AttrSet ATTRIBUTE ::= { -- friendlyName | -- localKeyId, -- ... - - Other attributes are allowed --} --END -- We import PKCS#8 here directly rather than creating another dissector --PKCS-8 {iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-8(8) -- modules(1) pkcs-8(1)} -- $Revision: 1.5 $ -- This module has been checked for conformance with the ASN.1 -- standard by the OSS ASN.1 Tools --DEFINITIONS IMPLICIT TAGS ::= --BEGIN -- EXPORTS All -- -- All types and values defined in this module is exported for use in other -- ASN.1 modules. --IMPORTS --informationFramework -- FROM UsefulDefinitions {joint-iso-itu-t(2) ds(5) module(1) -- usefulDefinitions(0) 3} --Attribute -- FROM InformationFramework informationFramework --AlgorithmIdentifier, ALGORITHM-IDENTIFIER -- FROM PKCS-5 {iso(1) member-body(2) us(840) rsadsi(113549) -- pkcs(1) pkcs-5(5) modules(16) pkcs-5(1)}; -- Private-key information syntax PrivateKeyInfo ::= SEQUENCE { version Version, privateKeyAlgorithm AlgorithmIdentifier --{{PrivateKeyAlgorithms}}--, privateKey PrivateKey, attributes [0] Attributes OPTIONAL } Version ::= INTEGER {v1(0)} (v1,...) PrivateKey ::= OCTET STRING Attributes ::= SET OF Attribute -- Encrypted private-key information syntax EncryptedPrivateKeyInfo ::= SEQUENCE { encryptionAlgorithm AlgorithmIdentifier --{{KeyEncryptionAlgorithms}}--, encryptedData EncryptedData } EncryptedData ::= OCTET STRING --PrivateKeyAlgorithms ALGORITHM-IDENTIFIER ::= { -- ... - - For local profiles --} --KeyEncryptionAlgorithms ALGORITHM-IDENTIFIER ::= { -- ... - - For local profiles --} -- From RFC 2898 PBEParameter ::= SEQUENCE { salt OCTET STRING, iterationCount INTEGER } PBKDF2Params ::= SEQUENCE { salt CHOICE { specified OCTET STRING, otherSource AlgorithmIdentifier --{{PBKDF2-SaltSources}}-- }, iterationCount INTEGER --(1..MAX)--, keyLength INTEGER (1..MAX) OPTIONAL, prf AlgorithmIdentifier --{{PBKDF2-PRFs}} DEFAULT algid-hmacWithSHA1-- OPTIONAL } PBES2Params ::= SEQUENCE { keyDerivationFunc AlgorithmIdentifier --{{PBES2-KDFs}}--, encryptionScheme AlgorithmIdentifier --{{PBES2-Encs}}-- } PBMAC1Params ::= SEQUENCE { keyDerivationFunc AlgorithmIdentifier --{{PBMAC1-KDFs}}--, messageAuthScheme AlgorithmIdentifier --{{PBMAC1-MACs}}-- } END
Configuration
wireshark/epan/dissectors/asn1/pkcs12/pkcs12.cnf
# pkcs12.cnf # PKCS12 conformation file #.MODULE_IMPORT PKCS-7 cms PKCS-5 x509af #.IMPORT ../cms/cms-exp.cnf #.IMPORT ../x509if/x509if-exp.cnf #.IMPORT ../x509af/x509af-exp.cnf #.EXPORTS #.REGISTER KeyBag B "1.2.840.113549.1.12.10.1.1" "keyBag" PKCS8ShroudedKeyBag B "1.2.840.113549.1.12.10.1.2" "pkcs8ShroudedKeyBag" CertBag B "1.2.840.113549.1.12.10.1.3" "certBag" SecretBag B "1.2.840.113549.1.12.10.1.4" "secretBag" CRLBag B "1.2.840.113549.1.12.10.1.5" "crlBag" SafeContents B "1.2.840.113549.1.12.10.1.6" "safeContentsBag" # PKCS#9 Attributes - see master list in x509sat.cnf PFX B "2.16.840.1.113730.3.1.216" "pkcs-9-at-PKCS12" EncryptedPrivateKeyInfo B "1.2.840.113549.1.9.25.2" "pkcs-9-at-encryptedPrivateKeyInfo" # Password Based Encryption PBEParameter B "1.2.840.113549.1.12.1.1" "pbeWithSHAAnd128BitRC4" PBEParameter B "1.2.840.113549.1.12.1.2" "pbeWithSHAAnd40BitRC4" PBEParameter B "1.2.840.113549.1.12.1.3" "pbeWithSHAAnd3-KeyTripleDES-CBC" PBEParameter B "1.2.840.113549.1.12.1.4" "pbeWithSHAAnd2-KeyTripleDES-CBC" PBEParameter B "1.2.840.113549.1.12.1.5" "pbeWithSHAAnd128BitRC2-CBC" PBEParameter B "1.2.840.113549.1.12.1.6" "pbeWithSHAAnd40BitRC2-CBC" PBEParameter B "1.2.840.113549.1.5.1" "pbeWithMD2AndDES-CBC" PBEParameter B "1.2.840.113549.1.5.3" "pbeWithMD5AndDES-CBC" PBEParameter B "1.2.840.113549.1.5.4" "pbeWithMD2AndRC2-CBC" PBEParameter B "1.2.840.113549.1.5.6" "pbeWithMD5AndRC2-CBC" PBEParameter B "1.2.840.113549.1.5.10" "pbeWithSHA1AndDES-CBC" PBEParameter B "1.2.840.113549.1.5.11" "pbeWithSHA1AndRC2-CBC" PBKDF2Params B "1.2.840.113549.1.5.12" "id-PBKDF2" PBES2Params B "1.2.840.113549.1.5.13" "id-PBES2" PBMAC1Params B "1.2.840.113549.1.5.14" "id-PBMAC1" #.NO_EMIT #.TYPE_RENAME #.FIELD_RENAME PrivateKeyInfo/version privateKeyVersion PBKDF2Params/salt saltChoice #.PDU #AuthenticatedSafe PrivateKeyInfo #.FN_BODY PFX dissector_handle_t dissector_handle; /* we change the CMS id-data dissector to dissect as AuthenticatedSafe not sure why PKCS#12 couldn't have used its own content type OID for AuthenticatedSafe */ dissector_handle=create_dissector_handle(dissect_AuthenticatedSafe_OCTETSTRING_PDU, proto_pkcs12); dissector_change_string("ber.oid", "1.2.840.113549.1.7.1", dissector_handle); %(DEFAULT_BODY)s /* restore the original dissector */ dissector_reset_string("ber.oid", "1.2.840.113549.1.7.1"); #.FN_BODY AuthenticatedSafe dissector_handle_t dissector_handle; /* we change the CMS id-data dissector to dissect as SafeContents */ dissector_handle=create_dissector_handle(dissect_SafeContents_OCTETSTRING_PDU, proto_pkcs12); dissector_change_string("ber.oid", "1.2.840.113549.1.7.1", dissector_handle); %(DEFAULT_BODY)s /* restore the original dissector */ dissector_reset_string("ber.oid", "1.2.840.113549.1.7.1"); #.FN_PARS SafeBag/bagId FN_VARIANT = _str VAL_PTR = &object_identifier_id #.FN_FTR SafeBag/bagId append_oid(actx->pinfo->pool, tree, object_identifier_id); #.END #.FN_PARS CertBag/certId FN_VARIANT = _str VAL_PTR = &object_identifier_id #.FN_FTR CertBag/certId append_oid(actx->pinfo->pool, tree, object_identifier_id); #.END #.FN_PARS CRLBag/crlId FN_VARIANT = _str VAL_PTR = &object_identifier_id #.FN_FTR CRLBag/crlId append_oid(actx->pinfo->pool, tree, object_identifier_id); #.END #.FN_PARS SecretBag/secretTypeId FN_VARIANT = _str VAL_PTR = &object_identifier_id #.FN_FTR SecretBag/secretTypeId append_oid(actx->pinfo->pool, tree, object_identifier_id); #.END #.FN_PARS PKCS12Attribute/attrId FN_VARIANT = _str VAL_PTR = &object_identifier_id #.FN_FTR PKCS12Attribute/attrId append_oid(actx->pinfo->pool, tree, object_identifier_id); #.END #.FN_BODY SafeBag/bagValue if(object_identifier_id) offset = call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); #.FN_BODY PKCS12Attribute/attrValues/_item if(object_identifier_id) offset = call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); #.FN_BODY CertBag/certValue if(object_identifier_id) offset = call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); #.FN_BODY CRLBag/crlValue if(object_identifier_id) offset = call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); #.FN_BODY SecretBag/secretValue if(object_identifier_id) offset = call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); #.FN_HDR PBEParameter /* initialise the encryption parameters */ PBE_reset_parameters(); #.END #.FN_PARS OCTET_STRING VAL_PTR = (hf_index == hf_pkcs12_salt ? &salt : NULL) #.FN_PARS INTEGER VAL_PTR = (hf_index == hf_pkcs12_iterationCount ? &iteration_count : NULL) #.FN_PARS EncryptedData VAL_PTR = &encrypted_tvb #.FN_HDR EncryptedData tvbuff_t *encrypted_tvb; dissector_handle_t dissector_handle; #.END #.FN_FTR EncryptedData dissector_handle=create_dissector_handle(dissect_PrivateKeyInfo_PDU, proto_pkcs12); dissector_change_string("ber.oid", object_identifier_id, dissector_handle); PBE_decrypt_data(object_identifier_id, encrypted_tvb, actx->pinfo, actx, actx->created_item); /* restore the original dissector */ dissector_reset_string("ber.oid", object_identifier_id); #.END
Text
wireshark/epan/dissectors/asn1/pkinit/CMakeLists.txt
# CMakeLists.txt # # Wireshark - Network traffic analyzer # By Gerald Combs <[email protected]> # Copyright 1998 Gerald Combs # # SPDX-License-Identifier: GPL-2.0-or-later # set( PROTOCOL_NAME pkinit ) set( PROTO_OPT ) set( EXT_ASN_FILE_LIST ) set( ASN_FILE_LIST PKINIT.asn ) set( EXTRA_DIST ${ASN_FILE_LIST} packet-${PROTOCOL_NAME}-template.c packet-${PROTOCOL_NAME}-template.h ${PROTOCOL_NAME}.cnf ) set( SRC_FILES ${EXTRA_DIST} ${EXT_ASN_FILE_LIST} ) set( A2W_FLAGS -b ) set( EXTRA_CNF "${CMAKE_CURRENT_BINARY_DIR}/../cms/cms-exp.cnf" ) ASN2WRS()
C
wireshark/epan/dissectors/asn1/pkinit/packet-pkinit-template.c
/* packet-pkinit.c * Routines for PKINIT packet dissection * Ronnie Sahlberg 2004 * * Wireshark - Network traffic analyzer * By Gerald Combs <[email protected]> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #include <epan/packet.h> #include <epan/asn1.h> #include "packet-ber.h" #include "packet-pkinit.h" #include "packet-cms.h" #include "packet-pkix1explicit.h" #include "packet-kerberos.h" #define PNAME "PKINIT" #define PSNAME "PKInit" #define PFNAME "pkinit" void proto_register_pkinit(void); void proto_reg_handoff_pkinit(void); /* Initialize the protocol and registered fields */ static int proto_pkinit = -1; #include "packet-pkinit-hf.c" /* Initialize the subtree pointers */ #include "packet-pkinit-ett.c" static int dissect_KerberosV5Spec2_KerberosTime(bool implicit_tag _U_, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index _U_); static int dissect_KerberosV5Spec2_Realm(bool implicit_tag _U_, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index _U_); static int dissect_KerberosV5Spec2_PrincipalName(bool implicit_tag _U_, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index _U_); static int dissect_pkinit_PKAuthenticator_Win2k(bool implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_); #include "packet-pkinit-fn.c" int dissect_pkinit_PA_PK_AS_REQ(proto_tree *tree, tvbuff_t *tvb, int offset, asn1_ctx_t *actx _U_) { offset = dissect_pkinit_PaPkAsReq(FALSE, tvb, offset, actx, tree, -1); return offset; } int dissect_pkinit_PA_PK_AS_REP(proto_tree *tree, tvbuff_t *tvb, int offset, asn1_ctx_t *actx _U_) { offset = dissect_pkinit_PaPkAsRep(FALSE, tvb, offset, actx, tree, -1); return offset; } static int dissect_KerberosV5Spec2_KerberosTime(bool implicit_tag _U_, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index _U_) { offset = dissect_krb5_ctime(tree, tvb, offset, actx); return offset; } static int dissect_KerberosV5Spec2_Realm(bool implicit_tag _U_, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index _U_) { offset = dissect_krb5_realm(tree, tvb, offset, actx); return offset; } static int dissect_KerberosV5Spec2_PrincipalName(bool implicit_tag _U_, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index _U_) { offset = dissect_krb5_cname(tree, tvb, offset, actx); return offset; } /*--- proto_register_pkinit ----------------------------------------------*/ void proto_register_pkinit(void) { /* List of fields */ static hf_register_info hf[] = { #include "packet-pkinit-hfarr.c" }; /* List of subtrees */ static gint *ett[] = { #include "packet-pkinit-ettarr.c" }; /* Register protocol */ proto_pkinit = proto_register_protocol(PNAME, PSNAME, PFNAME); /* Register fields and subtrees */ proto_register_field_array(proto_pkinit, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); } /*--- proto_reg_handoff_pkinit -------------------------------------------*/ void proto_reg_handoff_pkinit(void) { #include "packet-pkinit-dis-tab.c" }
C/C++
wireshark/epan/dissectors/asn1/pkinit/packet-pkinit-template.h
/* packet-pkinit.h * Routines for PKINIT packet dissection * Ronnie Sahlberg 2004 * * Wireshark - Network traffic analyzer * By Gerald Combs <[email protected]> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef PACKET_PKINIT_H #define PACKET_PKINIT_H int dissect_pkinit_PA_PK_AS_REQ(proto_tree *tree, tvbuff_t *tvb, int offset, asn1_ctx_t *actx _U_); int dissect_pkinit_PA_PK_AS_REP(proto_tree *tree, tvbuff_t *tvb, int offset, asn1_ctx_t *actx _U_); #include "packet-pkinit-exp.h" #endif /* PACKET_PKINIT_H */
ASN.1
wireshark/epan/dissectors/asn1/pkinit/PKINIT.asn
--NOTE: we have to accomodate BOTH existing users of early drafts, such as --packetcable as well as new users once the protocol is standardized. -- --This asn1 file is based on draft-ietf-cat-kerberos-pk-init-20.txt --but has been modified to acocmodate the Wireshark asn2wrs compiler --and our environment -- --new structures are uncommented and added on demand as they are required -- --Copyright (C) The Internet Society (2004). This document is subject --to the rights, licenses and restrictions contained in BCP 78, and --except as set forth therein, the authors retain all their rights. -- -- --This document and the information contained herein are provided on an --"AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS --OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY AND THE INTERNET --ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, --INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE --INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED --WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. -- KerberosV5-PK-INIT-SPEC { iso(1) identified-organization(3) dod(6) internet(1) security(5) kerberosV5(2) modules(4) pkinit(5) } DEFINITIONS EXPLICIT TAGS ::= BEGIN IMPORTS SubjectPublicKeyInfo, AlgorithmIdentifier, Name FROM PKIX1Explicit88 { iso (1) identified-organization (3) dod (6) internet (1) security (5) mechanisms (5) pkix (7) id-mod (0) id-pkix1-explicit (18) } ContentInfo, IssuerAndSerialNumber FROM CryptographicMessageSyntax { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) modules(0) cms(1) } KerberosTime, TYPED-DATA, PrincipalName, Realm, EncryptionKey FROM KerberosV5Spec2 { iso(1) identified-organization(3) dod(6) internet(1) security(5) kerberosV5(2) modules(4) krb5spec2(2) } ; -- id-pkinit OBJECT IDENTIFIER ::= -- { iso (1) org (3) dod (6) internet (1) security (5) -- kerberosv5 (2) pkinit (3) } -- -- -- id-pkauthdata OBJECT IDENTIFIER ::= { id-pkinit 1 } -- id-pkdhkeydata OBJECT IDENTIFIER ::= { id-pkinit 2 } -- id-pkrkeydata OBJECT IDENTIFIER ::= { id-pkinit 3 } -- id-pkekuoid OBJECT IDENTIFIER ::= { id-pkinit 4 } -- id-pkkdcekuoid OBJECT IDENTIFIER ::= { id-pkinit 5 } -- -- -- pa-pk-as-req INTEGER ::= TBD -- pa-pk-as-rep INTEGER ::= TBD -- pa-pk-ocsp-req INTEGER ::= TBD -- pa-pk-ocsp-rep INTEGER ::= TBD -- -- -- ad-initial-verified-cas INTEGER ::= TBD -- -- -- td-dh-parameters INTEGER ::= TBD -- td-trusted-certifiers INTEGER ::= 104 -- td-certificate-index INTEGER ::= 105 PaPkAsReq ::= SEQUENCE { signedAuthPack [0] ContentInfo, trustedCertifiers [1] SEQUENCE OF TrustedCA OPTIONAL, kdcCert [2] IssuerAndSerialNumber OPTIONAL, ... } TrustedCA ::= CHOICE { caName [0] Name, issuerAndSerial [2] IssuerAndSerialNumber, ... } DHNonce ::= OCTET STRING AuthPack ::= SEQUENCE { pkAuthenticator [0] PKAuthenticator, clientPublicValue [1] SubjectPublicKeyInfo OPTIONAL, supportedCMSTypes [2] SEQUENCE OF AlgorithmIdentifier OPTIONAL, clientDHNonce [3] DHNonce OPTIONAL, ... } PKAuthenticator ::= SEQUENCE { cusec [0] INTEGER, ctime [1] KerberosTime, nonce [2] INTEGER (0..4294967295), -- paChecksum [3] Checksum, # changed during draft-ietf-cat-kerberos-pk-init* from Checksum to OCTET STRING OPTIONAL paChecksum [3] OCTET STRING OPTIONAL, ... } -- -- TrustedCertifiers ::= SEQUENCE OF Name -- -- -- CertificateIndex ::= IssuerAndSerialNumber -- -- KRB5PrincipalName ::= SEQUENCE { realm [0] Realm, principalName [1] PrincipalName } -- -- -- InitialVerifiedCAs ::= SEQUENCE OF SEQUENCE { -- ca [0] Name, -- validated [1] BOOLEAN, -- ... -- } -- PaPkAsRep ::= CHOICE { dhSignedData [0] ContentInfo, encKeyPack [1] ContentInfo, ... } KDCDHKeyInfo ::= SEQUENCE { subjectPublicKey [0] BIT STRING, nonce [1] INTEGER, dhKeyExpiration [2] KerberosTime OPTIONAL, ... } -- -- ReplyKeyPack ::= SEQUENCE { -- replyKey [0] EncryptionKey, -- nonce [1] INTEGER (0..4294967295), -- ... -- } -- Windows compat glue -- PKAuthenticator-Win2k ::= SEQUENCE { kdcName [0] PrincipalName, kdcRealm [1] Realm, cusec [2] INTEGER (0..4294967295), ctime [3] KerberosTime, nonce [4] INTEGER (-2147483648..2147483647), ... } PA-PK-AS-REQ-Win2k ::= SEQUENCE { signed-auth-pack [0] ContentInfo, trusted-certifiers [2] SEQUENCE OF TrustedCA OPTIONAL, kdc-cert [3] IMPLICIT OCTET STRING OPTIONAL, encryption-cert [4] IMPLICIT OCTET STRING OPTIONAL, ... } PA-PK-AS-REP-Win2k ::= PaPkAsRep END
Configuration
wireshark/epan/dissectors/asn1/pkinit/pkinit.cnf
# pkinit.cnf # pkinit conformation file #.MODULE_IMPORT PKIX1Explicit88 pkix1explicit #.INCLUDE ../pkix1explicit/pkix1explicit_exp.cnf #.IMPORT ../cms/cms-exp.cnf #.EXPORTS PaPkAsReq PaPkAsRep PA-PK-AS-REQ-Win2k PA-PK-AS-REP-Win2k #.FN_BODY PKAuthenticator if (kerberos_is_win2k_pkinit(actx)) { return dissect_pkinit_PKAuthenticator_Win2k(implicit_tag, tvb, offset, actx, tree, hf_index); } %(DEFAULT_BODY)s #.REGISTER AuthPack B "1.3.6.1.5.2.3.1" "id-pkauthdata" KDCDHKeyInfo B "1.3.6.1.5.2.3.2" "id-pkdhkeydata" KRB5PrincipalName B "1.3.6.1.5.2.2" "id-pkinit-san" #.NO_EMIT #.TYPE_RENAME #.FIELD_RENAME KDCDHKeyInfo/nonce dhNonce PKAuthenticator-Win2k/cusec cusecWin2k PKAuthenticator/nonce paNonce PKAuthenticator-Win2k/nonce paNonceWin2k #.END
Text
wireshark/epan/dissectors/asn1/pkix1explicit/CMakeLists.txt
# CMakeLists.txt # # Wireshark - Network traffic analyzer # By Gerald Combs <[email protected]> # Copyright 1998 Gerald Combs # # SPDX-License-Identifier: GPL-2.0-or-later # set( PROTOCOL_NAME pkix1explicit ) set( PROTO_OPT ) set( EXT_ASN_FILE_LIST ) set( ASN_FILE_LIST PKIX1EXPLICIT93.asn IPAddrAndASCertExtn.asn ) set( EXTRA_DIST ${ASN_FILE_LIST} packet-${PROTOCOL_NAME}-template.c packet-${PROTOCOL_NAME}-template.h ${PROTOCOL_NAME}.cnf ) set( SRC_FILES ${EXTRA_DIST} ${EXT_ASN_FILE_LIST} ) set( A2W_FLAGS -b ) ASN2WRS()
ASN.1
wireshark/epan/dissectors/asn1/pkix1explicit/IPAddrAndASCertExtn.asn
-- RFC 3779 X.509 Extensions for IP Addr and AS ID June 2004 -- IPAddrAndASCertExtn { iso(1) identified-organization(3) dod(6) internet(1) security(5) mechanisms(5) pkix(7) mod(0) id-mod-ip-addr-and-as-ident(30) } DEFINITIONS EXPLICIT TAGS ::= BEGIN -- Copyright (C) The Internet Society (2004). This -- -- version of this ASN.1 module is part of RFC 3779; -- -- see the RFC itself for full legal notices. -- -- EXPORTS ALL -- IMPORTS -- PKIX specific OIDs and arcs -- id-pe FROM PKIX1Explicit88 { iso(1) identified-organization(3) dod(6) internet(1) security(5) mechanisms(5) pkix(7) id-mod(0) id-pkix1-explicit(18) }; -- IP Address Delegation Extension OID -- id-pe-ipAddrBlocks OBJECT IDENTIFIER ::= { id-pe 7 } -- IP Address Delegation Extension Syntax -- IPAddrBlocks ::= SEQUENCE OF IPAddressFamily IPAddressFamily ::= SEQUENCE { -- AFI & opt SAFI -- addressFamily OCTET STRING (SIZE (2..3)), ipAddressChoice IPAddressChoice } IPAddressChoice ::= CHOICE { inherit NULL, -- inherit from issuer -- addressesOrRanges SEQUENCE OF IPAddressOrRange } IPAddressOrRange ::= CHOICE { addressPrefix IPAddress, addressRange IPAddressRange } IPAddressRange ::= SEQUENCE { min IPAddress, max IPAddress } IPAddress ::= BIT STRING -- Autonomous System Identifier Delegation Extension OID -- id-pe-autonomousSysIds OBJECT IDENTIFIER ::= { id-pe 8 } -- Autonomous System Identifier Delegation Extension Syntax -- ASIdentifiers ::= SEQUENCE { asnum [0] ASIdentifierChoice OPTIONAL, rdi [1] ASIdentifierChoice OPTIONAL } ASIdentifierChoice ::= CHOICE { inherit NULL, -- inherit from issuer -- asIdsOrRanges SEQUENCE OF ASIdOrRange } ASIdOrRange ::= CHOICE { id ASId, range ASRange } ASRange ::= SEQUENCE { min ASId, max ASId } ASId ::= INTEGER END
C
wireshark/epan/dissectors/asn1/pkix1explicit/packet-pkix1explicit-template.c
#define BER_UNI_TAG_TeletexString 20 /* workaround bug in asn2wrs */ /* packet-pkix1explicit.c * Routines for PKIX1Explitic packet dissection * * Wireshark - Network traffic analyzer * By Gerald Combs <[email protected]> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #include <epan/packet.h> #include <epan/asn1.h> #include <epan/oids.h> #include <epan/afn.h> #include "packet-ber.h" #include "packet-pkix1explicit.h" #include "packet-x509af.h" #include "packet-x509if.h" #include "packet-x509ce.h" /* from packet-tls-utils.h */ extern const value_string tls_hello_extension_types[]; #define PNAME "PKIX1Explicit" #define PSNAME "PKIX1EXPLICIT" #define PFNAME "pkix1explicit" void proto_register_pkix1explicit(void); void proto_reg_handoff_pkix1explicit(void); /* Initialize the protocol and registered fields */ static int proto_pkix1explicit = -1; static int hf_pkix1explicit_object_identifier_id = -1; static int hf_pkix1explicit_addressFamily_afn = -1; static int hf_pkix1explicit_addressFamily_safi = -1; static int ett_pkix1explicit_addressFamily = -1; #include "packet-pkix1explicit-hf.c" /* Initialize the subtree pointers */ #include "packet-pkix1explicit-ett.c" int dissect_pkix1explicit_Certificate(bool implicit_tag _U_, tvbuff_t *tvb, int offset, asn1_ctx_t *actx _U_, proto_tree *tree, int hf_index) { offset = dissect_x509af_Certificate(implicit_tag, tvb, offset, actx, tree, hf_index); return offset; } int dissect_pkix1explicit_CertificateList(bool implicit_tag _U_, tvbuff_t *tvb, int offset, asn1_ctx_t *actx _U_, proto_tree *tree, int hf_index) { offset = dissect_x509af_CertificateList(implicit_tag, tvb, offset, actx, tree, hf_index); return offset; } int dissect_pkix1explicit_GeneralName(bool implicit_tag _U_, tvbuff_t *tvb, int offset, asn1_ctx_t *actx _U_, proto_tree *tree, int hf_index) { offset = dissect_x509ce_GeneralName(implicit_tag, tvb, offset, actx, tree, hf_index); return offset; } int dissect_pkix1explicit_Name(bool implicit_tag _U_, tvbuff_t *tvb, int offset, asn1_ctx_t *actx _U_, proto_tree *tree, int hf_index) { offset = dissect_x509if_Name(implicit_tag, tvb, offset, actx, tree, hf_index); return offset; } int dissect_pkix1explicit_AlgorithmIdentifier(bool implicit_tag _U_, tvbuff_t *tvb, int offset, asn1_ctx_t *actx _U_, proto_tree *tree, int hf_index) { offset = dissect_x509af_AlgorithmIdentifier(implicit_tag, tvb, offset, actx, tree, hf_index); return offset; } int dissect_pkix1explicit_SubjectPublicKeyInfo(bool implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx _U_, proto_tree *tree, int hf_index) { offset = dissect_x509af_SubjectPublicKeyInfo(implicit_tag, tvb, offset, actx, tree, hf_index); return offset; } #include "packet-pkix1explicit-fn.c" /*--- proto_register_pkix1explicit ----------------------------------------------*/ void proto_register_pkix1explicit(void) { /* List of fields */ static hf_register_info hf[] = { { &hf_pkix1explicit_object_identifier_id, { "Id", "pkix1explicit.id", FT_STRING, BASE_NONE, NULL, 0, "Object identifier Id", HFILL }}, { &hf_pkix1explicit_addressFamily_afn, { "Address family(AFN)", "pkix1explicit.addressfamily", FT_UINT16, BASE_DEC, VALS(afn_vals), 0, NULL, HFILL }}, { &hf_pkix1explicit_addressFamily_safi, { "Subsequent Address Family Identifiers (SAFI)", "pkix1explicit.addressfamily.safi", FT_UINT16, BASE_DEC, NULL, 0, "Subsequent Address Family Identifiers (SAFI) RFC4760", HFILL }}, #include "packet-pkix1explicit-hfarr.c" }; /* List of subtrees */ static gint *ett[] = { &ett_pkix1explicit_addressFamily, #include "packet-pkix1explicit-ettarr.c" }; /* Register protocol */ proto_pkix1explicit = proto_register_protocol(PNAME, PSNAME, PFNAME); /* Register fields and subtrees */ proto_register_field_array(proto_pkix1explicit, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); } /*--- proto_reg_handoff_pkix1explicit -------------------------------------------*/ void proto_reg_handoff_pkix1explicit(void) { oid_add_from_string("id-pkix","1.3.6.1.5.5.7"); oid_add_from_string("id-dsa-with-sha1","1.2.840.10040.4.3"); #include "packet-pkix1explicit-dis-tab.c" }
C/C++
wireshark/epan/dissectors/asn1/pkix1explicit/packet-pkix1explicit-template.h
/* packet-pkix1explicit.h * Routines for PKIX1Explicit packet dissection * * Wireshark - Network traffic analyzer * By Gerald Combs <[email protected]> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef PACKET_PKIX1EXPLICIT_H #define PACKET_PKIX1EXPLICIT_H int dissect_pkix1explicit_Certificate(bool implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index); int dissect_pkix1explicit_CertificateList(bool implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index); #if 0 int dissect_pkix1explicit_CertificateSerialNumber(bool implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index); #endif int dissect_pkix1explicit_Name(bool implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index); int dissect_pkix1explicit_GeneralName(bool implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index); int dissect_pkix1explicit_AlgorithmIdentifier(bool implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx,proto_tree *tree, int hf_index); int dissect_pkix1explicit_SubjectPublicKeyInfo(bool implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index); #include "packet-pkix1explicit-exp.h" #endif /* PACKET_PKIX1EXPLICIT_H */
Configuration
wireshark/epan/dissectors/asn1/pkix1explicit/pkix1explicit.cnf
# pkix1explicit.cnf # pkix1explicit conformation file #.MODULE_IMPORT #.EXPORTS Attribute AttributeTypeAndValue CertificateSerialNumber DirectoryString Extension Extensions RelativeDistinguishedName RDNSequence TeletexDomainDefinedAttribute TerminalType Version Time UniqueIdentifier #.REGISTER DirectoryString B "1.3.6.1.5.5.7.2.1" "id-qt-cps" DomainParameters B "1.2.840.10046.2.1" "dhpublicnumber" IPAddrBlocks B "1.3.6.1.5.5.7.1.7" "id-pe-ipAddrBlocks" ASIdentifiers B "1.3.6.1.5.5.7.1.8" "id-pe-autonomousSysIds" # X.509v3 TLS Feature extension (RFC 7633) Features B "1.3.6.1.5.5.7.1.24" "id-pe-tlsfeature" # From PKCS 9 / RFC 2985 DirectoryString B "1.2.840.113549.1.9.7" "pkcs-9-at-challengePassword" Extensions B "1.2.840.113549.1.9.14" "pkcs-9-at-extensionRequest" #.PDU #.NO_EMIT #.TYPE_RENAME #.FIELD_RENAME #.FN_BODY DirectoryString offset = dissect_ber_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index, NULL); #.FN_PARS Attribute/type FN_VARIANT = _str HF_INDEX = hf_pkix1explicit_type VAL_PTR = &actx->external.direct_reference #.FN_BODY Attribute/values/_item offset=call_ber_oid_callback(actx->external.direct_reference, tvb, offset, actx->pinfo, tree, NULL); #.FN_PARS AttributeTypeAndValue/type FN_VARIANT = _str HF_INDEX = hf_pkix1explicit_type_01 VAL_PTR = &actx->external.direct_reference #.FN_BODY AttributeTypeAndValue/value offset=call_ber_oid_callback(actx->external.direct_reference, tvb, offset, actx->pinfo, tree, NULL); #.FN_PARS Extension/extnId FN_VARIANT = _str HF_INDEX = hf_pkix1explicit_object_identifier_id VAL_PTR = &actx->external.direct_reference #.FN_BODY Extension/extnId %(DEFAULT_BODY)s actx->external.direct_ref_present = (actx->external.direct_reference != NULL) ? TRUE : FALSE; #.FN_BODY Extension/extnValue gint8 appclass; bool pc, ind; gint32 tag; guint32 len; /* skip past the T and L */ offset = dissect_ber_identifier(actx->pinfo, tree, tvb, offset, &appclass, &pc, &tag); offset = dissect_ber_length(actx->pinfo, tree, tvb, offset, &len, &ind); if (actx->external.direct_ref_present) { offset=call_ber_oid_callback(actx->external.direct_reference, tvb, offset, actx->pinfo, tree, NULL); } # IPAddrAndASCertExtn #.FN_BODY IPAddressFamily/addressFamily VAL_PTR = &parameter_tvb tvbuff_t *parameter_tvb; proto_tree *subtree; %(DEFAULT_BODY)s if (!parameter_tvb) return offset; subtree = proto_item_add_subtree(actx->created_item, ett_pkix1explicit_addressFamily); proto_tree_add_item(subtree, hf_pkix1explicit_addressFamily_afn, parameter_tvb, 0, 2, ENC_BIG_ENDIAN); if(tvb_reported_length(parameter_tvb)>2) proto_tree_add_item(subtree, hf_pkix1explicit_addressFamily_safi, parameter_tvb, 0, 2, ENC_BIG_ENDIAN); #.TYPE_ATTR TeletexDomainDefinedAttribute/type DISPLAY = BASE_NONE #.TYPE_ATTR TeletexDomainDefinedAttribute/value DISPLAY = BASE_NONE #.TYPE_ATTR Features/_item TYPE = FT_UINT16 STRINGS = VALS(tls_hello_extension_types) BLURB = "TLS Extension that MUST be supported by the server" #.END
ASN.1
wireshark/epan/dissectors/asn1/pkix1explicit/PKIX1EXPLICIT93.asn
-- This file is based on PKIX1Explicit93 definition in -- RFC2459 section b.1 -- --Appendix F of RFC2459 --Appendix F. Full Copyright Statement -- -- Copyright (C) The Internet Society (1999). All Rights Reserved. -- -- This document and translations of it may be copied and furnished to -- others, and derivative works that comment on or otherwise explain it -- or assist in its implementation may be prepared, copied, published -- and distributed, in whole or in part, without restriction of any -- kind, provided that the above copyright notice and this paragraph are -- included on all such copies and derivative works. However, this -- document itself may not be modified in any way, such as by removing -- the copyright notice or references to the Internet Society or other -- Internet organizations, except as needed for the purpose of -- developing Internet standards in which case the procedures for -- copyrights defined in the Internet Standards process must be -- followed, or as required to translate it into languages other than -- English. -- -- The limited permissions granted above are perpetual and will not be -- revoked by the Internet Society or its successors or assigns. -- -- This document and the information contained herein is provided on an -- "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING -- TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING -- BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION -- HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF -- MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. -- -- --NOTE: This ASN1 definition have been significantly modified from the original --version in RFC2459 in order to accomodate the featuresets available --in the Wireshark projects asn2wrs compiler. --It has also been modified and structures have been commented out that --are already implemented in the X509 dissectors. --Dissectors present already in the X509 dissectors should be implemented in --the template by hand as stubs that will just call the original --dissector functions in X509 in order not to duplicate code. -- --Structures and constructs in this definition are uncommented and --implemented on-demand when someone needs them. -- --If you export new types from this file, make sure to update the --pkix1explicit_exp.cnf file with the proper definitions PKIX1Explicit93 {iso(1) identified-organization(3) dod(6) internet(1) security(5) mechanisms(5) pkix(7) id-mod(0) id-pkix1-explicit-93(3)} DEFINITIONS EXPLICIT TAGS ::= BEGIN -- EXPORTS ALL -- IMPORTS authorityKeyIdentifier, subjectKeyIdentifier, keyUsage, extendedKeyUsage, privateKeyUsagePeriod, certificatePolicies, policyMappings, subjectAltName, issuerAltName, basicConstraints, nameConstraints, policyConstraints, cRLDistributionPoints, subjectDirectoryAttributes, cRLNumber, reasonCode, instructionCode, invalidityDate, issuingDistributionPoint, certificateIssuer, deltaCRLIndicator, authorityInfoAccess, id-ce FROM PKIX1Implicit93 {iso(1) identified-organization(3) dod(6) internet(1) security(5) mechanisms(5) pkix(7) id-mod(0) id-pkix1-implicit-93(4)} ; -- -- Locally defined OIDs -- --id-pkix OBJECT IDENTIFIER ::= -- { iso(1) identified-organization(3) dod(6) internet(1) -- security(5) mechanisms(5) pkix(7) } -- -- PKIX arcs -- arc for private certificate extensions --id-pe OBJECT IDENTIFIER ::= { id-pkix 1 } -- arc for policy qualifier types --id-qt OBJECT IDENTIFIER ::= { id-pkix 2 } -- arc for extended key purpose OIDS --id-kp OBJECT IDENTIFIER ::= { id-pkix 3 } -- arc for access descriptors --id-ad OBJECT IDENTIFIER ::= { id-pkix 48 } -- -- policyQualifierIds for Internet policy qualifiers --id-qt-cps OBJECT IDENTIFIER ::= { id-qt 1 } -- OID for CPS qualifier -- --id-qt-unotice OBJECT IDENTIFIER ::= { id-qt 2 } -- OID for user notice qualifier -- -- based on excerpts from AuthenticationFramework -- {joint-iso-ccitt ds(5) modules(1) authenticationFramework(7) 2} -- -- Public Key Certificate -- --Certificate ::= SIGNED { SEQUENCE { -- version [0] Version DEFAULT v1, -- serialNumber CertificateSerialNumber, -- signature AlgorithmIdentifier, -- issuer Name, -- validity Validity, -- subject Name, -- subjectPublicKeyInfo SubjectPublicKeyInfo, -- issuerUniqueIdentifier [1] IMPLICIT UniqueIdentifier OPTIONAL, -- if present, version shall be v2 or v3 -- subjectUniqueIdentifier [2] IMPLICIT UniqueIdentifier OPTIONAL, -- if present, version shall be v2 or v3 -- extensions [3] Extensions OPTIONAL -- if present, version shall be v3 -- } --} -- UniqueIdentifier ::= BIT STRING -- Version ::= INTEGER { v1(0), v2(1), v3(2) } -- This one is defined with .NO_EMIT in the conformance file -- and implemented in the template as just a call to the -- corresponding function in x509 CertificateSerialNumber ::= INTEGER --Validity ::= SEQUENCE { -- notBefore Time, -- notAfter Time } -- Time ::= CHOICE { utcTime UTCTime, generalTime GeneralizedTime } -- -- This one is implemented in the template as just a call to the -- corresponding function in x509 --SubjectPublicKeyInfo ::= SEQUENCE{ -- algorithm AlgorithmIdentifier, -- subjectPublicKey BIT STRING --} Extensions ::= SEQUENCE OF Extension Extension ::= SEQUENCE { extnId OBJECT IDENTIFIER, critical BOOLEAN DEFAULT FALSE, extnValue OCTET STRING } -- contains a DER encoding of a value of type -- &ExtnType for the -- extension object identified by extnId -- -- The following information object set is defined to constrain the -- set of legal certificate extensions. -- --ExtensionSet EXTENSION ::= { authorityKeyIdentifier | -- subjectKeyIdentifier | -- keyUsage | -- extendedKeyUsage | -- privateKeyUsagePeriod | -- certificatePolicies | -- policyMappings | -- subjectAltName | -- issuerAltName | -- basicConstraints | -- nameConstraints | -- policyConstraints | -- cRLDistributionPoints | -- subjectDirectoryAttributes | -- authorityInfoAccess } -- --EXTENSION ::= CLASS { -- &id OBJECT IDENTIFIER UNIQUE, -- &ExtnType } --WITH SYNTAX { -- SYNTAX &ExtnType -- IDENTIFIED BY &id } -- -- Certificate Revocation List -- --CertificateList ::= SIGNED { SEQUENCE { -- version Version OPTIONAL, -- if present, shall be v2 -- signature AlgorithmIdentifier, -- issuer Name, -- thisUpdate Time, -- nextUpdate Time OPTIONAL, -- revokedCertificates SEQUENCE OF SEQUENCE { -- userCertificate CertificateSerialNumber, -- revocationDate Time, -- crlEntryExtensions EntryExtensions OPTIONAL } OPTIONAL, -- crlExtensions [0] CRLExtensions OPTIONAL }} -- --CRLExtensions ::= SEQUENCE SIZE (1..MAX) OF CRLExtension -- --CRLExtension ::= SEQUENCE { -- extnId EXTENSION.&id ({CRLExtensionSet}), -- critical BOOLEAN DEFAULT FALSE, -- extnValue OCTET STRING } -- contains a DER encoding of a value of type -- &ExtnType for the -- extension object identified by extnId -- -- The following information object set is defined to constrain the -- set of legal CRL extensions. -- --CRLExtensionSet EXTENSION ::= { authorityKeyIdentifier | -- issuerAltName | -- cRLNumber | -- deltaCRLIndicator | -- issuingDistributionPoint } -- -- EXTENSION defined above for certificates -- --EntryExtensions ::= SEQUENCE SIZE (1..MAX) OF EntryExtension -- --EntryExtension ::= SEQUENCE { -- extnId EXTENSION.&id ({EntryExtensionSet}), -- critical BOOLEAN DEFAULT FALSE, -- extnValue OCTET STRING } -- contains a DER encoding of a value of type -- &ExtnType for the -- extension object identified by extnId -- -- The following information object set is defined to constrain the -- set of legal CRL entry extensions. -- --EntryExtensionSet EXTENSION ::= { reasonCode | -- instructionCode | -- invalidityDate | -- certificateIssuer } -- -- information object classes used in the defintion -- of certificates and CRLs -- -- Parameterized Type SIGNED -- -- SIGNED { ToBeSigned } ::= SEQUENCE { -- toBeSigned ToBeSigned, -- algorithm AlgorithmIdentifier, -- signature BIT STRING -- } -- -- This one is implemented in the template as just a call to the -- corresponding function in x509 -- Definition of AlgorithmIdentifier -- ISO definition was: --AlgorithmIdentifier ::= SEQUENCE { -- algorithm ALGORITHM.&id({SupportedAlgorithms}), -- parameters ALGORITHM.&Type({SupportedAlgorithms} -- { @algorithm}) OPTIONAL --} -- Definition of ALGORITHM -- ALGORITHM ::= TYPE-IDENTIFIER -- -- The following PKIX definition replaces the X.509 definition -- -- --AlgorithmIdentifier ::= SEQUENCE { -- algorithm ALGORITHM-ID.&id({SupportedAlgorithms}), -- parameters ALGORITHM-ID.&Type({SupportedAlgorithms} -- { @algorithm}) OPTIONAL } -- -- Definition of ALGORITHM-ID -- -- ALGORITHM-ID ::= CLASS { -- &id OBJECT IDENTIFIER UNIQUE, -- &Type OPTIONAL -- } -- WITH SYNTAX { OID &id [PARMS &Type] } -- -- The definition of SupportedAlgorithms may be modified as this -- document does not specify a mandatory algorithm set. In addition, -- the set is specified as extensible, since additional algorithms -- may be supported -- --SupportedAlgorithms ALGORITHM-ID ::= { ..., -- rsaPublicKey | -- rsaSHA-1 | -- rsaMD5 | -- rsaMD2 | -- dssPublicKey | -- dsaSHA-1 | -- dhPublicKey } -- -- OIDs and parameter structures for ALGORITHM-IDs used -- in this specification -- --rsaPublicKey ALGORITHM-ID ::= { OID rsaEncryption PARMS NULL } -- --rsaSHA-1 ALGORITHM-ID ::= { OID sha1WithRSAEncryption PARMS NULL } -- --rsaMD5 ALGORITHM-ID ::= { OID md5WithRSAEncryption PARMS NULL } -- --rsaMD2 ALGORITHM-ID ::= { OID md2WithRSAEncryption PARMS NULL } -- --dssPublicKey ALGORITHM-ID ::= { OID id-dsa PARMS Dss-Parms } -- --dsaSHA-1 ALGORITHM-ID ::= { OID id-dsa-with-sha1 } -- --dhPublicKey ALGORITHM-ID ::= {OID dhpublicnumber PARMS DomainParameters} -- -- algorithm identifiers and parameter structures -- --pkcs-1 OBJECT IDENTIFIER ::= { -- iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) 1 } -- --rsaEncryption OBJECT IDENTIFIER ::= { pkcs-1 1 } -- --md2WithRSAEncryption OBJECT IDENTIFIER ::= { pkcs-1 2 } -- --md5WithRSAEncryption OBJECT IDENTIFIER ::= { pkcs-1 4 } -- --sha1WithRSAEncryption OBJECT IDENTIFIER ::= { pkcs-1 5 } -- --id-dsa-with-sha1 OBJECT IDENTIFIER ::= { -- iso(1) member-body(2) us(840) x9-57 (10040) x9algorithm(4) 3 } -- --Dss-Sig-Value ::= SEQUENCE { -- r INTEGER, -- s INTEGER } -- dhpublicnumber OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) ansi-x942(10046) number-type(2) 1 } DomainParameters ::= SEQUENCE { p INTEGER, g INTEGER, q INTEGER, j INTEGER OPTIONAL, validationParms ValidationParms OPTIONAL } ValidationParms ::= SEQUENCE { seed BIT STRING, pgenCounter INTEGER } --id-dsa OBJECT IDENTIFIER ::= { -- iso(1) member-body(2) us(840) x9-57(10040) x9algorithm(4) 1 } -- --Dss-Parms ::= SEQUENCE { -- p INTEGER, -- q INTEGER, -- g INTEGER } -- -- The ASN.1 in this section supports the Name type -- and the directoryAttribute extension -- -- attribute data types -- --Attribute ::= SEQUENCE { -- type ATTRIBUTE.&id ({SupportedAttributes}), -- values SET SIZE (1 .. MAX) OF ATTRIBUTE.&Type -- ({SupportedAttributes}{@type})} Attribute ::= SEQUENCE { type OBJECT IDENTIFIER, values SET SIZE (1 .. MAX) OF ANY -- at least one value is required -- } AttributeTypeAndValue ::= SEQUENCE { type OBJECT IDENTIFIER, value ANY } -- naming data types -- -- -- This one is implemented in the template as just a call to the -- corresponding function in x509 --Name ::= CHOICE { -- rdnSequence RDNSequence --} RDNSequence ::= SEQUENCE OF RelativeDistinguishedName RelativeDistinguishedName ::= SET OF AttributeTypeAndValue --ID ::= OBJECT IDENTIFIER -- -- ATTRIBUTE information object class specification -- Note: This has been greatly simplified for PKIX !! -- --ATTRIBUTE ::= CLASS { -- &Type, -- &id OBJECT IDENTIFIER UNIQUE } --WITH SYNTAX { -- WITH SYNTAX &Type ID &id } -- -- suggested naming attributes -- Definition of the following information object set may be -- augmented to meet local requirements. Note that deleting -- members of the set may prevent interoperability with -- conforming implementations. -- --SupportedAttributes ATTRIBUTE ::= { -- name | commonName | surname | givenName | initials | -- generationQualifier | dnQualifier | countryName | -- localityName | stateOrProvinceName | organizationName | -- organizationalUnitName | title | pkcs9email } -- --name ATTRIBUTE ::= { -- WITH SYNTAX DirectoryString { ub-name } -- ID id-at-name } -- --commonName ATTRIBUTE ::= { -- WITH SYNTAX DirectoryString {ub-common-name} -- ID id-at-commonName } -- --surname ATTRIBUTE ::= { -- WITH SYNTAX DirectoryString {ub-name} -- ID id-at-surname } -- --givenName ATTRIBUTE ::= { -- WITH SYNTAX DirectoryString {ub-name} -- ID id-at-givenName } -- --initials ATTRIBUTE ::= { -- WITH SYNTAX DirectoryString {ub-name} -- ID id-at-initials } -- --generationQualifier ATTRIBUTE ::= { -- WITH SYNTAX DirectoryString {ub-name} -- ID id-at-generationQualifier} -- --dnQualifier ATTRIBUTE ::= { -- WITH SYNTAX PrintableString -- ID id-at-dnQualifier } -- -- --countryName ATTRIBUTE ::= { -- WITH SYNTAX PrintableString (SIZE (2)) -- ID id-at-countryName } -- --localityName ATTRIBUTE ::= { -- WITH SYNTAX DirectoryString {ub-locality-name} -- ID id-at-localityName } -- --stateOrProvinceName ATTRIBUTE ::= { -- WITH SYNTAX DirectoryString {ub-state-name} -- ID id-at-stateOrProvinceName } -- --organizationName ATTRIBUTE ::= { -- WITH SYNTAX DirectoryString {ub-organization-name} -- ID id-at-organizationName } -- --organizationalUnitName ATTRIBUTE ::= { -- WITH SYNTAX DirectoryString {ub-organizational-unit-name} -- ID id-at-organizationalUnitName } -- --title ATTRIBUTE ::= { -- WITH SYNTAX DirectoryString {ub-title} -- ID id-at-title } -- -- Legacy attributes -- --pkcs9email ATTRIBUTE ::= { -- WITH SYNTAX PHGString, -- ID emailAddress } -- --PHGString ::= IA5String (SIZE(1..ub-emailaddress-length)) -- --pkcs-9 OBJECT IDENTIFIER ::= -- { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) 9 } -- --emailAddress OBJECT IDENTIFIER ::= { pkcs-9 1 } -- -- object identifiers for Name type and directory attribute support -- -- Object identifier assignments -- --id-at OBJECT IDENTIFIER ::= {joint-iso-ccitt(2) ds(5) 4} -- -- Attributes -- --id-at-commonName OBJECT IDENTIFIER ::= {id-at 3} --id-at-surname OBJECT IDENTIFIER ::= {id-at 4} --id-at-countryName OBJECT IDENTIFIER ::= {id-at 6} --id-at-localityName OBJECT IDENTIFIER ::= {id-at 7} --id-at-stateOrProvinceName OBJECT IDENTIFIER ::= {id-at 8} --id-at-organizationName OBJECT IDENTIFIER ::= {id-at 10} --id-at-organizationalUnitName OBJECT IDENTIFIER ::= {id-at 11} --id-at-title OBJECT IDENTIFIER ::= {id-at 12} --id-at-name OBJECT IDENTIFIER ::= {id-at 41} --id-at-givenName OBJECT IDENTIFIER ::= {id-at 42} --id-at-initials OBJECT IDENTIFIER ::= {id-at 43} --id-at-generationQualifier OBJECT IDENTIFIER ::= {id-at 44} --id-at-dnQualifier OBJECT IDENTIFIER ::= {id-at 46} -- -- Directory string type, used extensively in Name types --Make it a PrintableString will amke it look prettier DirectoryString ::= PrintableString --DirectoryString { INTEGER:maxSize } ::= CHOICE { -- teletexString TeletexString (SIZE (1..maxSize)), -- printableString PrintableString (SIZE (1..maxSize)), -- universalString UniversalString (SIZE (1..maxSize)), -- bmpString BMPString (SIZE(1..maxSize)), -- utf8String UTF8String (SIZE(1..maxSize)) -- } -- -- End of ASN.1 for Name type and directory attribute support -- -- The ASN.1 in this section supports X.400 style names -- for implementations that use the x400Address component -- of GeneralName. -- --ORAddress ::= SEQUENCE { -- built-in-standard-attributes BuiltInStandardAttributes, -- built-in-domain-defined-attributes -- BuiltInDomainDefinedAttributes OPTIONAL, -- see also teletex-domain-defined-attributes -- extension-attributes ExtensionAttributes OPTIONAL } -- -- The OR-address is semantically absent from the OR-name if the -- built-in-standard-attribute sequence is empty and the -- built-in-domain-defined-attributes and extension-attributes are -- both omitted. -- -- Built-in Standard Attributes -- --BuiltInStandardAttributes ::= SEQUENCE { -- country-name CountryName OPTIONAL, -- administration-domain-name AdministrationDomainName OPTIONAL, -- network-address [0] NetworkAddress OPTIONAL, -- see also extended-network-address -- terminal-identifier [1] TerminalIdentifier OPTIONAL, -- private-domain-name [2] PrivateDomainName OPTIONAL, -- organization-name [3] OrganizationName OPTIONAL, -- see also teletex-organization-name -- numeric-user-identifier [4] NumericUserIdentifier OPTIONAL, -- personal-name [5] PersonalName OPTIONAL, -- see also teletex-personal-name -- organizational-unit-names [6] OrganizationalUnitNames OPTIONAL -- see also teletex-organizational-unit-names -- } -- --CountryName ::= [APPLICATION 1] CHOICE { -- x121-dcc-code NumericString, -- iso-3166-alpha2-code PrintableString --} -- --AdministrationDomainName ::= [APPLICATION 2] CHOICE { -- numeric NumericString (SIZE (0..ub-domain-name-length)), -- printable PrintableString (SIZE (0..ub-domain-name-length)) } -- --NetworkAddress ::= X121Address -- see also extended-network-address -- --X121Address ::= NumericString (SIZE (1..ub-x121-address-length)) -- --TerminalIdentifier ::= PrintableString (SIZE (1..ub-terminal-id-length)) -- --PrivateDomainName ::= CHOICE { -- numeric NumericString (SIZE (1..ub-domain-name-length)), -- printable PrintableString (SIZE (1..ub-domain-name-length)) } -- --OrganizationName ::= PrintableString -- (SIZE (1..ub-organization-name-length)) -- see also teletex-organization-name -- --NumericUserIdentifier ::= NumericString -- (SIZE (1..ub-numeric-user-id-length)) -- --PersonalName ::= SET { -- surname [0] PrintableString (SIZE (1..ub-surname-length)), -- given-name [1] PrintableString -- (SIZE (1..ub-given-name-length)) OPTIONAL, -- initials [2] PrintableString -- (SIZE (1..ub-initials-length)) OPTIONAL, -- generation-qualifier [3] PrintableString -- (SIZE (1..ub-generation-qualifier-length)) OPTIONAL} -- see also teletex-personal-name -- --OrganizationalUnitNames ::= SEQUENCE SIZE (1..ub-organizational-units) -- OF OrganizationalUnitName -- see also teletex-organizational-unit-names -- --OrganizationalUnitName ::= PrintableString (SIZE -- (1..ub-organizational-unit-name-length)) -- -- Built-in Domain-defined Attributes --BuiltInDomainDefinedAttributes ::= SEQUENCE SIZE -- (1..ub-domain-defined-attributes) OF -- BuiltInDomainDefinedAttribute -- --BuiltInDomainDefinedAttribute ::= SEQUENCE { -- type PrintableString (SIZE -- (1..ub-domain-defined-attribute-type-length)), -- value PrintableString (SIZE -- (1..ub-domain-defined-attribute-value-length)) } -- -- Extension Attributes -- --ExtensionAttributes ::= SET SIZE (1..ub-extension-attributes) -- OF ExtensionAttribute --ExtensionAttribute ::= SEQUENCE { -- -- extension-attribute-type [0] EXTENSION-ATTRIBUTE.&id -- ({ExtensionAttributeTable}), -- extension-attribute-value [1] EXTENSION-ATTRIBUTE.&Type -- ({ExtensionAttributeTable} {@extension-attribute-type}) } -- --EXTENSION-ATTRIBUTE ::= CLASS { -- &id INTEGER (0..ub-extension-attributes) UNIQUE, -- &Type } --WITH SYNTAX {&Type IDENTIFIED BY &id} -- --ExtensionAttributeTable EXTENSION-ATTRIBUTE ::= { -- common-name | -- teletex-common-name | -- teletex-organization-name | -- teletex-personal-name | -- teletex-organizational-unit-names | -- teletex-domain-defined-attributes | -- pds-name | -- physical-delivery-country-name | -- postal-code | -- physical-delivery-office-name | -- physical-delivery-office-number | -- extension-OR-address-components | -- physical-delivery-personal-name | -- physical-delivery-organization-name | -- extension-physical-delivery-address-components | -- unformatted-postal-address | -- street-address | -- post-office-box-address | -- poste-restante-address | -- unique-postal-name | -- local-postal-attributes | -- extended-network-address | -- terminal-type } -- -- Extension Standard Attributes -- --common-name EXTENSION-ATTRIBUTE ::= {CommonName IDENTIFIED BY 1} -- --CommonName ::= PrintableString (SIZE (1..ub-common-name-length)) -- --teletex-common-name EXTENSION-ATTRIBUTE ::= -- {TeletexCommonName IDENTIFIED BY 2} -- --TeletexCommonName ::= TeletexString (SIZE (1..ub-common-name-length)) -- --teletex-organization-name EXTENSION-ATTRIBUTE ::= -- {TeletexOrganizationName IDENTIFIED BY 3} -- --TeletexOrganizationName ::= -- TeletexString (SIZE (1..ub-organization-name-length)) -- --teletex-personal-name EXTENSION-ATTRIBUTE ::= -- {TeletexPersonalName IDENTIFIED BY 4} -- --TeletexPersonalName ::= SET { -- surname [0] TeletexString (SIZE (1..ub-surname-length)), -- given-name [1] TeletexString -- (SIZE (1..ub-given-name-length)) OPTIONAL, -- initials [2] TeletexString (SIZE (1..ub-initials-length)) OPTIONAL, -- generation-qualifier [3] TeletexString (SIZE -- (1..ub-generation-qualifier-length)) OPTIONAL } -- --teletex-organizational-unit-names EXTENSION-ATTRIBUTE ::= -- {TeletexOrganizationalUnitNames IDENTIFIED BY 5} -- --TeletexOrganizationalUnitNames ::= SEQUENCE SIZE -- (1..ub-organizational-units) OF TeletexOrganizationalUnitName -- --TeletexOrganizationalUnitName ::= TeletexString -- (SIZE (1..ub-organizational-unit-name-length)) -- --pds-name EXTENSION-ATTRIBUTE ::= {PDSName IDENTIFIED BY 7} -- --PDSName ::= PrintableString (SIZE (1..ub-pds-name-length)) -- --physical-delivery-country-name EXTENSION-ATTRIBUTE ::= -- {PhysicalDeliveryCountryName IDENTIFIED BY 8} -- --PhysicalDeliveryCountryName ::= CHOICE { -- x121-dcc-code NumericString (SIZE (ub-country-name-numeric-length)), -- iso-3166-alpha2-code PrintableString -- (SIZE (ub-country-name-alpha-length)) } -- --postal-code EXTENSION-ATTRIBUTE ::= {PostalCode IDENTIFIED BY 9} -- --PostalCode ::= CHOICE { -- numeric-code NumericString (SIZE (1..ub-postal-code-length)), -- printable-code PrintableString (SIZE (1..ub-postal-code-length)) } -- --physical-delivery-office-name EXTENSION-ATTRIBUTE ::= -- {PhysicalDeliveryOfficeName IDENTIFIED BY 10} -- --PhysicalDeliveryOfficeName ::= PDSParameter -- --physical-delivery-office-number EXTENSION-ATTRIBUTE ::= -- {PhysicalDeliveryOfficeNumber IDENTIFIED BY 11} -- --PhysicalDeliveryOfficeNumber ::= PDSParameter -- --extension-OR-address-components EXTENSION-ATTRIBUTE ::= -- {ExtensionORAddressComponents IDENTIFIED BY 12} -- --ExtensionORAddressComponents ::= PDSParameter -- --physical-delivery-personal-name EXTENSION-ATTRIBUTE ::= -- {PhysicalDeliveryPersonalName IDENTIFIED BY 13} -- --PhysicalDeliveryPersonalName ::= PDSParameter -- --physical-delivery-organization-name EXTENSION-ATTRIBUTE ::= -- {PhysicalDeliveryOrganizationName IDENTIFIED BY 14} -- --PhysicalDeliveryOrganizationName ::= PDSParameter -- --extension-physical-delivery-address-components EXTENSION-ATTRIBUTE ::= -- {ExtensionPhysicalDeliveryAddressComponents IDENTIFIED BY 15} -- --ExtensionPhysicalDeliveryAddressComponents ::= PDSParameter -- --unformatted-postal-address EXTENSION-ATTRIBUTE ::= -- {UnformattedPostalAddress IDENTIFIED BY 16} -- --UnformattedPostalAddress ::= SET { -- printable-address SEQUENCE SIZE (1..ub-pds-physical-address-lines) OF -- PrintableString (SIZE (1..ub-pds-parameter-length)) OPTIONAL, -- teletex-string TeletexString (SIZE -- (1..ub-unformatted-address-length)) OPTIONAL } -- --street-address EXTENSION-ATTRIBUTE ::= -- {StreetAddress IDENTIFIED BY 17} -- --StreetAddress ::= PDSParameter -- --post-office-box-address EXTENSION-ATTRIBUTE ::= -- {PostOfficeBoxAddress IDENTIFIED BY 18} -- --PostOfficeBoxAddress ::= PDSParameter -- --poste-restante-address EXTENSION-ATTRIBUTE ::= -- {PosteRestanteAddress IDENTIFIED BY 19} -- --PosteRestanteAddress ::= PDSParameter -- --unique-postal-name EXTENSION-ATTRIBUTE ::= -- {UniquePostalName IDENTIFIED BY 20} -- --UniquePostalName ::= PDSParameter -- --local-postal-attributes EXTENSION-ATTRIBUTE ::= -- {LocalPostalAttributes IDENTIFIED BY 21} -- --LocalPostalAttributes ::= PDSParameter -- --PDSParameter ::= SET { -- printable-string PrintableString -- (SIZE(1..ub-pds-parameter-length)) OPTIONAL, -- teletex-string TeletexString -- (SIZE(1..ub-pds-parameter-length)) OPTIONAL } -- --extended-network-address EXTENSION-ATTRIBUTE ::= -- {ExtendedNetworkAddress IDENTIFIED BY 22} -- --ExtendedNetworkAddress ::= CHOICE { -- e163-4-address SEQUENCE { -- number [0] NumericString -- (SIZE (1..ub-e163-4-number-length)), -- sub-address [1] NumericString -- (SIZE (1..ub-e163-4-sub-address-length)) OPTIONAL}, -- psap-address [0] PresentationAddress } -- --PresentationAddress ::= SEQUENCE { -- pSelector [0] EXPLICIT OCTET STRING OPTIONAL, -- sSelector [1] EXPLICIT OCTET STRING OPTIONAL, -- tSelector [2] EXPLICIT OCTET STRING OPTIONAL, -- nAddresses [3] EXPLICIT SET SIZE (1..MAX) OF OCTET STRING} -- -- --terminal-type EXTENSION-ATTRIBUTE ::= {TerminalType IDENTIFIED BY 23} TerminalType ::= INTEGER { telex (3), teletex (4), g3-facsimile (5), g4-facsimile (6), ia5-terminal (7), videotex (8) } -- Extension Domain-defined Attributes -- --teletex-domain-defined-attributes EXTENSION-ATTRIBUTE ::= -- {TeletexDomainDefinedAttributes IDENTIFIED BY 6} -- --TeletexDomainDefinedAttributes ::= SEQUENCE SIZE -- (1..ub-domain-defined-attributes) OF TeletexDomainDefinedAttribute TeletexDomainDefinedAttribute ::= SEQUENCE { type TeletexString, value TeletexString } -- specifications of Upper Bounds -- shall be regarded as mandatory -- from Annex B of ITU-T X.411 -- Reference Definition of MTS Parameter Upper Bounds -- -- Upper Bounds --ub-name INTEGER ::= 32768 --ub-common-name INTEGER ::= 64 --ub-locality-name INTEGER ::= 128 --ub-state-name INTEGER ::= 128 --ub-organization-name INTEGER ::= 64 --ub-organizational-unit-name INTEGER ::= 64 --ub-title INTEGER ::= 64 --ub-match INTEGER ::= 128 -- --ub-emailaddress-length INTEGER ::= 128 -- --ub-common-name-length INTEGER ::= 64 --ub-country-name-alpha-length INTEGER ::= 2 --ub-country-name-numeric-length INTEGER ::= 3 --ub-domain-defined-attributes INTEGER ::= 4 --ub-domain-defined-attribute-type-length INTEGER ::= 8 --ub-domain-defined-attribute-value-length INTEGER ::= 128 --ub-domain-name-length INTEGER ::= 16 --ub-extension-attributes INTEGER ::= 256 --ub-e163-4-number-length INTEGER ::= 15 --ub-e163-4-sub-address-length INTEGER ::= 40 --ub-generation-qualifier-length INTEGER ::= 3 --ub-given-name-length INTEGER ::= 16 --ub-initials-length INTEGER ::= 5 --ub-integer-options INTEGER ::= 256 --ub-numeric-user-id-length INTEGER ::= 32 --ub-organization-name-length INTEGER ::= 64 --ub-organizational-unit-name-length INTEGER ::= 32 --ub-organizational-units INTEGER ::= 4 --ub-pds-name-length INTEGER ::= 16 --ub-pds-parameter-length INTEGER ::= 30 --ub-pds-physical-address-lines INTEGER ::= 6 --ub-postal-code-length INTEGER ::= 16 --ub-surname-length INTEGER ::= 40 --ub-terminal-id-length INTEGER ::= 24 --ub-unformatted-address-length INTEGER ::= 180 -- --ub-x121-address-length INTEGER ::= 16 -- -- Note - upper bounds on TeletexString are measured in characters. -- A significantly greater number of octets will be required to hold -- such a value. As a minimum, 16 octets, or twice the specified upper -- bound, whichever is the larger, should be allowed. -- X.509v3 TLS Feature extension (RFC 7633) Features ::= SEQUENCE OF INTEGER END
Configuration
wireshark/epan/dissectors/asn1/pkix1explicit/pkix1explicit_exp.cnf
#.IMPORT_TAG AlgorithmIdentifier BER_CLASS_UNI BER_UNI_TAG_SEQUENCE Attribute BER_CLASS_UNI BER_UNI_TAG_SEQUENCE AttributeTypeAndValue BER_CLASS_UNI BER_UNI_TAG_SEQUENCE Certificate BER_CLASS_UNI BER_UNI_TAG_SEQUENCE CertificateList BER_CLASS_UNI BER_UNI_TAG_SEQUENCE CertificateSerialNumber BER_CLASS_UNI BER_UNI_TAG_INTEGER DirectoryString BER_CLASS_UNI BER_UNI_TAG_PrintableString Extension BER_CLASS_UNI BER_UNI_TAG_SEQUENCE Extensions BER_CLASS_UNI BER_UNI_TAG_SEQUENCE GeneralName BER_CLASS_CON -1/*choice*/ Name BER_CLASS_ANY -1 RDNSequence BER_CLASS_UNI BER_UNI_TAG_SEQUENCE RelativeDistinguishedName BER_CLASS_UNI BER_UNI_TAG_SET SubjectPublicKeyInfo BER_CLASS_UNI BER_UNI_TAG_SEQUENCE TeletexDomainDefinedAttribute BER_CLASS_UNI BER_UNI_TAG_SEQUENCE TerminalType BER_CLASS_UNI BER_UNI_TAG_INTEGER Time BER_CLASS_ANY/*choice*/ -1/*choice*/ UniqueIdentifier BER_CLASS_UNI BER_UNI_TAG_BITSTRING Version BER_CLASS_UNI BER_UNI_TAG_INTEGER #.END #.TYPE_ATTR Attribute TYPE = FT_NONE DISPLAY = BASE_NONE STRINGS = NULL BITMASK = 0 AttributeTypeAndValue TYPE = FT_NONE DISPLAY = BASE_NONE STRINGS = NULL BITMASK = 0 Certificate TYPE = FT_NONE DISPLAY = BASE_NONE STRINGS = NULL BITMASK = 0 CertificateList TYPE = FT_NONE DISPLAY = BASE_NONE STRINGS = NULL BITMASK = 0 CertificateSerialNumber TYPE = FT_INT32 DISPLAY = BASE_DEC STRINGS = NULL BITMASK = 0 DirectoryString TYPE = FT_STRING DISPLAY = BASE_NONE STRINGS = NULL BITMASK = 0 Extension TYPE = FT_NONE DISPLAY = BASE_NONE STRINGS = NULL BITMASK = 0 Extensions TYPE = FT_UINT32 DISPLAY = BASE_DEC STRINGS = NULL BITMASK = 0 GeneralName TYPE = FT_UINT32 DISPLAY = BASE_DEC STRINGS = NULL BITMASK = 0 Name TYPE = FT_UINT32 DISPLAY = BASE_DEC STRINGS = NULL BITMASK = 0 RDNSequence TYPE = FT_UINT32 DISPLAY = BASE_DEC STRINGS = NULL BITMASK = 0 RelativeDistinguishedName TYPE = FT_UINT32 DISPLAY = BASE_DEC STRINGS = NULL BITMASK = 0 SubjectPublicKeyInfo TYPE = FT_NONE DISPLAY = BASE_NONE STRINGS = NULL BITMASK = 0 TeletexDomainDefinedAttribute TYPE = FT_NONE DISPLAY = BASE_NONE STRINGS = NULL BITMASK = 0 TerminalType TYPE = FT_INT32 DISPLAY = BASE_DEC STRINGS = NULL BITMASK = 0 Time TYPE = FT_UINT32 DISPLAY = BASE_DEC STRINGS = VALS(pkix1explicit_Time_vals) BITMASK = 0 UniqueIdentifier TYPE = FT_BYTES DISPLAY = BASE_NONE STRINGS = NULL BITMASK = 0 Version TYPE = FT_INT32 DISPLAY = BASE_DEC STRINGS = VALS(pkix1explicit_Version_vals) BITMASK = 0 #.END
Text
wireshark/epan/dissectors/asn1/pkix1implicit/CMakeLists.txt
# CMakeLists.txt # # Wireshark - Network traffic analyzer # By Gerald Combs <[email protected]> # Copyright 1998 Gerald Combs # # SPDX-License-Identifier: GPL-2.0-or-later # set( PROTOCOL_NAME pkix1implicit ) set( PROTO_OPT ) set( EXT_ASN_FILE_LIST ) set( ASN_FILE_LIST PKIX1IMPLICIT93.asn ) set( EXTRA_DIST ${ASN_FILE_LIST} packet-${PROTOCOL_NAME}-template.c packet-${PROTOCOL_NAME}-template.h ${PROTOCOL_NAME}.cnf ) set( SRC_FILES ${EXTRA_DIST} ${EXT_ASN_FILE_LIST} ) set( A2W_FLAGS -b ) set( EXTRA_CNF "${CMAKE_CURRENT_BINARY_DIR}/../x509af/x509af-exp.cnf" "${CMAKE_CURRENT_BINARY_DIR}/../x509ce/x509ce-exp.cnf" ) ASN2WRS()
C
wireshark/epan/dissectors/asn1/pkix1implicit/packet-pkix1implicit-template.c
/* packet-pkix1implicit.c * Routines for PKIX1Implitic packet dissection * * Wireshark - Network traffic analyzer * By Gerald Combs <[email protected]> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #include <epan/packet.h> #include <epan/asn1.h> #include "packet-ber.h" #include "packet-pkix1implicit.h" #include "packet-pkix1explicit.h" #include "packet-x509ce.h" #define PNAME "PKIX1Implitit" #define PSNAME "PKIX1IMPLICIT" #define PFNAME "pkix1implicit" void proto_register_pkix1implicit(void); void proto_reg_handoff_pkix1implicit(void); /* Initialize the protocol and registered fields */ static int proto_pkix1implicit = -1; #include "packet-pkix1implicit-hf.c" /* Initialize the subtree pointers */ #include "packet-pkix1implicit-ett.c" int dissect_pkix1implicit_ReasonFlags(bool implicit_tag _U_, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index _U_) { offset = dissect_x509ce_ReasonFlags(implicit_tag, tvb, offset, actx, tree, hf_index); return offset; } int dissect_pkix1implicit_GeneralName(bool implicit_tag _U_, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index _U_) { offset = dissect_x509ce_GeneralName(implicit_tag, tvb, offset, actx, tree, hf_index); return offset; } #include "packet-pkix1implicit-fn.c" /*--- proto_register_pkix1implicit ----------------------------------------------*/ void proto_register_pkix1implicit(void) { /* List of fields */ static hf_register_info hf[] = { #include "packet-pkix1implicit-hfarr.c" }; /* List of subtrees */ static gint *ett[] = { #include "packet-pkix1implicit-ettarr.c" }; /* Register protocol */ proto_pkix1implicit = proto_register_protocol(PNAME, PSNAME, PFNAME); /* Register fields and subtrees */ proto_register_field_array(proto_pkix1implicit, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); } /*--- proto_reg_handoff_pkix1implicit -------------------------------------------*/ void proto_reg_handoff_pkix1implicit(void) { #include "packet-pkix1implicit-dis-tab.c" }
C/C++
wireshark/epan/dissectors/asn1/pkix1implicit/packet-pkix1implicit-template.h
/* packet-pkix1implicit.h * Routines for PKIX1Implicit packet dissection * * Wireshark - Network traffic analyzer * By Gerald Combs <[email protected]> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef PACKET_PKIX1IMPLICIT_H #define PACKET_PKIX1IMPLICIT_H int dissect_pkix1implicit_GeneralName(bool implicit_tag _U_, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index _U_); int dissect_pkix1implicit_ReasonFlags(bool implicit_tag _U_, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index _U_); #include "packet-pkix1implicit-exp.h" #endif /* PACKET_PKIX1IMPLICIT_H */
Configuration
wireshark/epan/dissectors/asn1/pkix1implicit/pkix1implicit.cnf
# pkix1implicit.cnf # pkix1implicit conformation file #.MODULE_IMPORT PKIX1Explicit93 pkix1explicit #.INCLUDE ../pkix1explicit/pkix1explicit_exp.cnf #.IMPORT ../x509ce/x509ce-exp.cnf #.OMIT_ASSIGNMENT EDIPartyName #.END #.EXPORTS AuthorityInfoAccessSyntax KeyIdentifier UserNotice #.PDU #.REGISTER AuthorityInfoAccessSyntax B "1.3.6.1.5.5.7.1.1" "id-pe-authorityInfoAccess" Dummy B "1.3.6.1.5.5.7.48.1" "id-ad-ocsp" Dummy B "1.3.6.1.5.5.7.48.2" "id-ad-caIssuers" Dummy B "1.3.6.1.5.5.7.3.1" "id-kp-serverAuth" Dummy B "1.3.6.1.5.5.7.3.2" "id-kp-clientAuth" Dummy B "1.3.6.1.5.5.7.3.3" "id-kp-codeSigning" Dummy B "1.3.6.1.5.5.7.3.4" "id-kp-emailProtection" Dummy B "1.3.6.1.5.5.7.3.5" "id-kp-ip-kp-ipsecEndSystem" Dummy B "1.3.6.1.5.5.7.3.6" "id-kp-ipsecTunnel" Dummy B "1.3.6.1.5.5.7.3.7" "id-kp-ipsecUser" Dummy B "1.3.6.1.5.5.7.3.8" "id-kp-timeStamping" Dummy B "1.3.6.1.5.5.7.3.9" "OCSPSigning" # Additional MS Enhanced Key Usage OIDs (see http://msdn2.microsoft.com/en-us/library/aa378155.aspx) Dummy B "1.3.6.1.4.1.311.10.12.1" "id-ms-any-application-policy" Dummy B "1.3.6.1.4.1.311.10.3.1" "id-ms-kp-ctl-usage-signing" Dummy B "1.3.6.1.4.1.311.10.3.2" "id-ms-kp-time-stamp-signing" Dummy B "1.3.6.1.4.1.311.10.3.4" "id-ms-kp-efs" Dummy B "1.3.6.1.4.1.311.10.3.4.1" "id-ms-efs-recovery" Dummy B "1.3.6.1.4.1.311.10.3.5" "id-ms-whql-crypto" Dummy B "1.3.6.1.4.1.311.10.3.6" "id-ms-nt5-crypto" Dummy B "1.3.6.1.4.1.311.10.3.7" "id-ms-oem-whql-crypto" Dummy B "1.3.6.1.4.1.311.10.3.8" "id-ms-embedded-nt-crypto" Dummy B "1.3.6.1.4.1.311.10.3.9" "id-ms-root-list-signer" Dummy B "1.3.6.1.4.1.311.10.3.10" "id-ms-kp-qualified-subordination" Dummy B "1.3.6.1.4.1.311.10.3.11" "id-ms-kp-key-recovery" Dummy B "1.3.6.1.4.1.311.10.3.12" "id-ms-kp-document-signing" Dummy B "1.3.6.1.4.1.311.10.3.13" "id-ms-kp-lifetime-signing" Dummy B "1.3.6.1.4.1.311.10.5.1" "id-ms-drm" Dummy B "1.3.6.1.4.1.311.10.6.1" "id-ms-licenses" Dummy B "1.3.6.1.4.1.311.10.6.2" "id-ms-license-server" Dummy B "1.3.6.1.4.1.311.20.1" "id-ms-auto-enroll-ctl-usage" Dummy B "1.3.6.1.4.1.311.20.2.1" "id-ms-enrollment-agent" Dummy B "1.3.6.1.4.1.311.20.2.2" "id-ms-kp-smartcard-logon" Dummy B "1.3.6.1.4.1.311.21.5" "id-ms-kp-ca-exchange" Dummy B "1.3.6.1.4.1.311.21.6" "id-ms-kp-key-recovery-agent" Dummy B "1.3.6.1.4.1.311.21.19" "id-ms-ds-email-replication" Dummy B "1.3.6.1.5.5.8.2.2" "id-ms-ipsec-kp-ike-intermediate" UserNotice B "1.3.6.1.5.5.7.2.2" "id-qt-unotice" #.NO_EMIT #.TYPE_RENAME #.FIELD_RENAME #.END
ASN.1
wireshark/epan/dissectors/asn1/pkix1implicit/PKIX1IMPLICIT93.asn
-- This file is based on PKIX1Implicit93 definition in -- RFC2459 section b.2 -- --Appendix F of RFC2459 --Appendix F. Full Copyright Statement -- -- Copyright (C) The Internet Society (1999). All Rights Reserved. -- -- This document and translations of it may be copied and furnished to -- others, and derivative works that comment on or otherwise explain it -- or assist in its implementation may be prepared, copied, published -- and distributed, in whole or in part, without restriction of any -- kind, provided that the above copyright notice and this paragraph are -- included on all such copies and derivative works. However, this -- document itself may not be modified in any way, such as by removing -- the copyright notice or references to the Internet Society or other -- Internet organizations, except as needed for the purpose of -- developing Internet standards in which case the procedures for -- copyrights defined in the Internet Standards process must be -- followed, or as required to translate it into languages other than -- English. -- -- The limited permissions granted above are perpetual and will not be -- revoked by the Internet Society or its successors or assigns. -- -- This document and the information contained herein is provided on an -- "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING -- TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING -- BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION -- HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF -- MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. -- -- --NOTE: This ASN1 definition have been significantly modified from the original --version in RFC2459 in order to accomodate the featuresets available --in the Wireshark projects asn2wrs compiler. --It has also been modified and structures have been commented out that --are already implemented in the X509 dissectors. --Dissectors present already in the X509 dissectors should be implemented in --the template by hand as stubs that will just call the original --dissector functions in X509 in order not to duplicate code. -- --Structures and constructs in this definition are uncommented and --implemented on-demand when someone needs them. -- --If you export new types from this file, make sure to update the --pkix1implicit_exp.cnf file with the proper definitions PKIX1Implicit93 {iso(1) identified-organization(3) dod(6) internet(1) security(5) mechanisms(5) pkix(7) id-mod(0) id-pkix1-implicit-93(4)} DEFINITIONS IMPLICIT TAGS::= BEGIN --EXPORTS ALL IMPORTS id-pe, id-qt, id-kp, id-ad, id-qt-unotice, ORAddress, Name, RelativeDistinguishedName, CertificateSerialNumber, CertificateList, AlgorithmIdentifier, ub-name, DirectoryString, Attribute, EXTENSION FROM PKIX1Explicit93 {iso(1) identified-organization(3) dod(6) internet(1) security(5) mechanisms(5) pkix(7) id-mod(0) id-pkix1-explicit-93(3)} GeneralName FROM CertificateExtensions; -- Key and policy information extensions -- --authorityKeyIdentifier EXTENSION ::= { -- SYNTAX AuthorityKeyIdentifier -- IDENTIFIED BY id-ce-authorityKeyIdentifier } -- --AuthorityKeyIdentifier ::= SEQUENCE { -- keyIdentifier [0] KeyIdentifier OPTIONAL, -- authorityCertIssuer [1] GeneralNames OPTIONAL, -- authorityCertSerialNumber [2] CertificateSerialNumber OPTIONAL } -- ( WITH COMPONENTS {..., authorityCertIssuer PRESENT, -- authorityCertSerialNumber PRESENT} | -- WITH COMPONENTS {..., authorityCertIssuer ABSENT, -- authorityCertSerialNumber ABSENT} ) -- KeyIdentifier ::= OCTET STRING -- --subjectKeyIdentifier EXTENSION ::= { -- SYNTAX SubjectKeyIdentifier -- IDENTIFIED BY id-ce-subjectKeyIdentifier } -- --SubjectKeyIdentifier ::= KeyIdentifier -- --keyUsage EXTENSION ::= { -- SYNTAX KeyUsage -- IDENTIFIED BY id-ce-keyUsage } -- --KeyUsage ::= BIT STRING { -- digitalSignature (0), -- nonRepudiation (1), -- keyEncipherment (2), -- dataEncipherment (3), -- keyAgreement (4), -- keyCertSign (5), -- cRLSign (6), -- encipherOnly (7), -- decipherOnly (8) } -- --extendedKeyUsage EXTENSION ::= { -- SYNTAX SEQUENCE SIZE (1..MAX) OF KeyPurposeId -- IDENTIFIED BY id-ce-extKeyUsage } -- Dummy ::= NULL --KeyPurposeId ::= OBJECT IDENTIFIER -- -- PKIX-defined extended key purpose OIDs --id-kp-serverAuth OBJECT IDENTIFIER ::= { id-kp 1 } --id-kp-clientAuth OBJECT IDENTIFIER ::= { id-kp 2 } --id-kp-codeSigning OBJECT IDENTIFIER ::= { id-kp 3 } --id-kp-emailProtection OBJECT IDENTIFIER ::= { id-kp 4 } --id-kp-ipsecEndSystem OBJECT IDENTIFIER ::= { id-kp 5 } --id-kp-ipsecTunnel OBJECT IDENTIFIER ::= { id-kp 6 } --id-kp-ipsecUser OBJECT IDENTIFIER ::= { id-kp 7 } --id-kp-timeStamping OBJECT IDENTIFIER ::= { id-kp 8 } -- --privateKeyUsagePeriod EXTENSION ::= { -- SYNTAX PrivateKeyUsagePeriod -- IDENTIFIED BY { id-ce-privateKeyUsagePeriod } } -- --PrivateKeyUsagePeriod ::= SEQUENCE { -- notBefore [0] GeneralizedTime OPTIONAL, -- notAfter [1] GeneralizedTime OPTIONAL } -- ( WITH COMPONENTS {..., notBefore PRESENT} | -- WITH COMPONENTS {..., notAfter PRESENT} ) -- --certificatePolicies EXTENSION ::= { -- SYNTAX CertificatePoliciesSyntax -- IDENTIFIED BY id-ce-certificatePolicies } -- --CertificatePoliciesSyntax ::= -- SEQUENCE SIZE (1..MAX) OF PolicyInformation -- --PolicyInformation ::= SEQUENCE { -- policyIdentifier CertPolicyId, -- policyQualifiers SEQUENCE SIZE (1..MAX) OF -- PolicyQualifierInfo OPTIONAL } -- --CertPolicyId ::= OBJECT IDENTIFIER -- --PolicyQualifierInfo ::= SEQUENCE { -- policyQualifierId CERT-POLICY-QUALIFIER.&id -- ({SupportedPolicyQualifiers}), -- qualifier CERT-POLICY-QUALIFIER.&Qualifier -- ({SupportedPolicyQualifiers} -- {@policyQualifierId})OPTIONAL } -- --SupportedPolicyQualifiers CERT-POLICY-QUALIFIER ::= { noticeToUser | -- pointerToCPS } -- --CERT-POLICY-QUALIFIER ::= CLASS { -- &id OBJECT IDENTIFIER UNIQUE, -- &Qualifier OPTIONAL } --WITH SYNTAX { -- POLICY-QUALIFIER-ID &id -- [QUALIFIER-TYPE &Qualifier] } -- --policyMappings EXTENSION ::= { -- SYNTAX PolicyMappingsSyntax -- IDENTIFIED BY id-ce-policyMappings } -- --PolicyMappingsSyntax ::= SEQUENCE SIZE (1..MAX) OF SEQUENCE { -- issuerDomainPolicy CertPolicyId, -- subjectDomainPolicy CertPolicyId } -- -- Certificate subject and certificate issuer attributes extensions -- --subjectAltName EXTENSION ::= { -- SYNTAX GeneralNames -- IDENTIFIED BY id-ce-subjectAltName } -- --GeneralNames ::= SEQUENCE SIZE (1..MAX) OF GeneralName -- --Imported from X509CE --GeneralName ::= CHOICE { -- otherName [0] INSTANCE OF OTHER-NAME, -- rfc822Name [1] IA5String, -- dNSName [2] IA5String, -- x400Address [3] ORAddress, -- directoryName [4] Name, -- ediPartyName [5] EDIPartyName, -- uniformResourceIdentifier [6] IA5String, -- iPAddress [7] OCTET STRING, -- registeredID [8] OBJECT IDENTIFIER --} --OTHER-NAME ::= TYPE-IDENTIFIER EDIPartyName ::= SEQUENCE { nameAssigner [0] DirectoryString OPTIONAL, partyName [1] DirectoryString } --issuerAltName EXTENSION ::= { -- SYNTAX GeneralNames -- IDENTIFIED BY id-ce-issuerAltName } -- --subjectDirectoryAttributes EXTENSION ::= { -- SYNTAX AttributesSyntax -- IDENTIFIED BY id-ce-subjectDirectoryAttributes } -- --AttributesSyntax ::= SEQUENCE SIZE (1..MAX) OF Attribute -- -- Certification path constraints extensions -- --basicConstraints EXTENSION ::= { -- SYNTAX BasicConstraintsSyntax -- IDENTIFIED BY id-ce-basicConstraints } -- --BasicConstraintsSyntax ::= SEQUENCE { -- cA BOOLEAN DEFAULT FALSE, -- pathLenConstraint INTEGER (0..MAX) OPTIONAL } -- --nameConstraints EXTENSION ::= { -- SYNTAX NameConstraintsSyntax -- IDENTIFIED BY id-ce-nameConstraints } -- --NameConstraintsSyntax ::= SEQUENCE { -- permittedSubtrees [0] GeneralSubtrees OPTIONAL, -- excludedSubtrees [1] GeneralSubtrees OPTIONAL } -- --GeneralSubtrees ::= SEQUENCE SIZE (1..MAX) OF GeneralSubtree -- --GeneralSubtree ::= SEQUENCE { -- base GeneralName, -- minimum [0] BaseDistance DEFAULT 0, -- maximum [1] BaseDistance OPTIONAL } -- --BaseDistance ::= INTEGER (0..MAX) -- --policyConstraints EXTENSION ::= { -- SYNTAX PolicyConstraintsSyntax -- IDENTIFIED BY id-ce-policyConstraints } -- --PolicyConstraintsSyntax ::= SEQUENCE { -- requireExplicitPolicy [0] SkipCerts OPTIONAL, -- inhibitPolicyMapping [1] SkipCerts OPTIONAL } -- -- --SkipCerts ::= INTEGER (0..MAX) -- -- Basic CRL extensions -- --cRLNumber EXTENSION ::= { -- SYNTAX CRLNumber -- IDENTIFIED BY id-ce-cRLNumber } -- --CRLNumber ::= INTEGER (0..MAX) -- --reasonCode EXTENSION ::= { -- SYNTAX CRLReason -- IDENTIFIED BY id-ce-reasonCode } -- --CRLReason ::= ENUMERATED { -- unspecified (0), -- keyCompromise (1), -- cACompromise (2), -- affiliationChanged (3), -- superseded (4), -- cessationOfOperation (5), -- certificateHold (6), -- removeFromCRL (8) } -- --instructionCode EXTENSION ::= { -- SYNTAX HoldInstruction -- IDENTIFIED BY id-ce-instructionCode } -- --HoldInstruction ::= OBJECT IDENTIFIER -- -- holdinstructions described in this specification, from ANSI x9 -- -- ANSI x9 arc holdinstruction arc --holdInstruction OBJECT IDENTIFIER ::= { -- joint-iso-ccitt(2) member-body(2) us(840) x9cm(10040) 2} -- -- ANSI X9 holdinstructions referenced by this standard --id-holdinstruction-none OBJECT IDENTIFIER ::= {holdInstruction 1} --id-holdinstruction-callissuer OBJECT IDENTIFIER ::= {holdInstruction 2} --id-holdinstruction-reject OBJECT IDENTIFIER ::= {holdInstruction 3} -- --invalidityDate EXTENSION ::= { -- SYNTAX GeneralizedTime -- IDENTIFIED BY id-ce-invalidityDate } -- -- CRL distribution points and delta-CRL extensions -- --cRLDistributionPoints EXTENSION ::= { -- -- SYNTAX CRLDistPointsSyntax -- IDENTIFIED BY id-ce-cRLDistributionPoints } -- --CRLDistPointsSyntax ::= SEQUENCE SIZE (1..MAX) OF DistributionPoint -- --DistributionPoint ::= SEQUENCE { -- distributionPoint [0] DistributionPointName OPTIONAL, -- reasons [1] ReasonFlags OPTIONAL, -- cRLIssuer [2] GeneralNames OPTIONAL } -- --DistributionPointName ::= CHOICE { -- fullName [0] GeneralNames, -- nameRelativeToCRLIssuer [1] RelativeDistinguishedName } -- --ReasonFlags ::= BIT STRING { -- unused (0), -- keyCompromise (1), -- caCompromise (2), -- affiliationChanged (3), -- superseded (4), -- cessationOfOperation (5), -- certificateHold (6) } -- --issuingDistributionPoint EXTENSION ::= { -- SYNTAX IssuingDistPointSyntax -- IDENTIFIED BY id-ce-issuingDistributionPoint } -- --IssuingDistPointSyntax ::= SEQUENCE { -- distributionPoint [0] DistributionPointName OPTIONAL, -- onlyContainsUserCerts [1] BOOLEAN DEFAULT FALSE, -- onlyContainsCACerts [2] BOOLEAN DEFAULT FALSE, -- onlySomeReasons [3] ReasonFlags OPTIONAL, -- indirectCRL [4] BOOLEAN DEFAULT FALSE } -- --certificateIssuer EXTENSION ::= { -- SYNTAX GeneralNames -- IDENTIFIED BY id-ce-certificateIssuer } -- --deltaCRLIndicator EXTENSION ::= { -- SYNTAX BaseCRLNumber -- IDENTIFIED BY id-ce-deltaCRLIndicator } -- --BaseCRLNumber ::= CRLNumber -- -- Object identifier assignments for ISO certificate extensions --id-ce OBJECT IDENTIFIER ::= {joint-iso-ccitt(2) ds(5) 29} -- --id-ce-subjectDirectoryAttributes OBJECT IDENTIFIER ::= {id-ce 9} -- --id-ce-subjectKeyIdentifier OBJECT IDENTIFIER ::= {id-ce 14} --id-ce-keyUsage OBJECT IDENTIFIER ::= {id-ce 15} --id-ce-privateKeyUsagePeriod OBJECT IDENTIFIER ::= {id-ce 16} --id-ce-subjectAltName OBJECT IDENTIFIER ::= {id-ce 17} --id-ce-issuerAltName OBJECT IDENTIFIER ::= {id-ce 18} --id-ce-basicConstraints OBJECT IDENTIFIER ::= {id-ce 19} --id-ce-cRLNumber OBJECT IDENTIFIER ::= {id-ce 20} --id-ce-reasonCode OBJECT IDENTIFIER ::= {id-ce 21} --id-ce-instructionCode OBJECT IDENTIFIER ::= {id-ce 23} --id-ce-invalidityDate OBJECT IDENTIFIER ::= {id-ce 24} --id-ce-deltaCRLIndicator OBJECT IDENTIFIER ::= {id-ce 27} --id-ce-issuingDistributionPoint OBJECT IDENTIFIER ::= {id-ce 28} --id-ce-certificateIssuer OBJECT IDENTIFIER ::= {id-ce 29} --id-ce-nameConstraints OBJECT IDENTIFIER ::= {id-ce 30} --id-ce-cRLDistributionPoints OBJECT IDENTIFIER ::= {id-ce 31} --id-ce-certificatePolicies OBJECT IDENTIFIER ::= {id-ce 32} --id-ce-policyMappings OBJECT IDENTIFIER ::= {id-ce 33} --id-ce-policyConstraints OBJECT IDENTIFIER ::= {id-ce 36} --id-ce-authorityKeyIdentifier OBJECT IDENTIFIER ::= {id-ce 35} --id-ce-extKeyUsage OBJECT IDENTIFIER ::= {id-ce 37} -- -- PKIX 1 extensions -- --authorityInfoAccess EXTENSION ::= { -- SYNTAX AuthorityInfoAccessSyntax -- IDENTIFIED BY id-pe-authorityInfoAccess } AuthorityInfoAccessSyntax ::= SEQUENCE SIZE (1..MAX) OF AccessDescription AccessDescription ::= SEQUENCE { accessMethod OBJECT IDENTIFIER, accessLocation GeneralName } --id-pe-authorityInfoAccess OBJECT IDENTIFIER ::= { id-pe 1 } -- --id-ad-ocsp OBJECT IDENTIFIER ::= { id-ad 1 } --id-ad-caIssuers OBJECT IDENTIFIER ::= { id-ad 2 } -- -- PKIX policy qualifier definitions -- --noticeToUser CERT-POLICY-QUALIFIER ::= { -- POLICY-QUALIFIER-ID id-qt-cps QUALIFIER-TYPE CPSuri} -- --pointerToCPS CERT-POLICY-QUALIFIER ::= { -- POLICY-QUALIFIER-ID id-qt-unotice QUALIFIER-TYPE UserNotice} -- --id-qt-cps OBJECT IDENTIFIER ::= { id-qt 1 } -- --id-qt-unotice OBJECT IDENTIFIER ::= { id-qt 2 } -- --CPSuri ::= IA5String -- UserNotice ::= SEQUENCE { noticeRef NoticeReference OPTIONAL, explicitText DisplayText OPTIONAL} NoticeReference ::= SEQUENCE { organization DisplayText, noticeNumbers SEQUENCE OF INTEGER } DisplayText ::= CHOICE { ia5String IA5String, visibleString VisibleString, bmpString BMPString, utf8String UTF8String } END
Configuration
wireshark/epan/dissectors/asn1/pkix1implicit/pkix1implicit_exp.cnf
#.IMPORT_TAG AuthorityInfoAccessSyntax BER_CLASS_UNI BER_UNI_TAG_SEQUENCE GeneralName BER_CLASS_CON -1/*choice*/ KeyIdentifier BER_CLASS_UNI BER_UNI_TAG_OCTETSTRING ReasonFlags BER_CLASS_UNI BER_UNI_TAG_BITSTRING UserNotice BER_CLASS_UNI BER_UNI_TAG_SEQUENCE #.END #.TYPE_ATTR AuthorityInfoAccessSyntax TYPE = FT_UINT32 DISPLAY = BASE_DEC STRINGS = NULL BITMASK = 0 GeneralName TYPE = FT_UINT32 DISPLAY = BASE_DEC STRINGS = NULL BITMASK = 0 KeyIdentifier TYPE = FT_BYTES DISPLAY = BASE_NONE STRINGS = NULL BITMASK = 0 ReasonFlags TYPE = FT_BYTES DISPLAY = BASE_NONE STRINGS = NULL BITMASK = 0 UserNotice TYPE = FT_NONE DISPLAY = BASE_NONE STRINGS = NULL BITMASK = 0 #.END
Text
wireshark/epan/dissectors/asn1/pkixac/CMakeLists.txt
# CMakeLists.txt # # Wireshark - Network traffic analyzer # By Gerald Combs <[email protected]> # Copyright 1998 Gerald Combs # # SPDX-License-Identifier: GPL-2.0-or-later # set( PROTOCOL_NAME pkixac ) set( PROTO_OPT ) set( EXT_ASN_FILE_LIST ) set( ASN_FILE_LIST PKIXAttributeCertificate.asn ) set( EXTRA_DIST ${ASN_FILE_LIST} packet-${PROTOCOL_NAME}-template.c packet-${PROTOCOL_NAME}-template.h ${PROTOCOL_NAME}.cnf ) set( SRC_FILES ${EXTRA_DIST} ${EXT_ASN_FILE_LIST} ) set( A2W_FLAGS -b ) set( EXTRA_CNF ../pkix1explicit/pkix1explicit_exp.cnf ../pkix1implicit/pkix1implicit_exp.cnf "${CMAKE_CURRENT_BINARY_DIR}/../x509af/x509af-exp.cnf" "${CMAKE_CURRENT_BINARY_DIR}/../x509ce/x509ce-exp.cnf" ) ASN2WRS()
C
wireshark/epan/dissectors/asn1/pkixac/packet-pkixac-template.c
/* packet-pkixac.c * * Routines for PKIXAttributeCertificate (RFC3281) packet dissection. * * Copyright 2010, Stig Bjorlykke <[email protected]> * * Wireshark - Network traffic analyzer * By Gerald Combs <[email protected]> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #include <epan/packet.h> #include <epan/asn1.h> #include "packet-ber.h" #include "packet-pkixac.h" #include "packet-pkix1explicit.h" #include "packet-pkix1implicit.h" #include "packet-x509ce.h" #define PNAME "PKIX Attribute Certificate" #define PSNAME "PKIXAC" #define PFNAME "pkixac" void proto_register_pkixac(void); void proto_reg_handoff_pkixac(void); /* Initialize the protocol and registered fields */ static int proto_pkixac = -1; #include "packet-pkixac-hf.c" /* Initialize the subtree pointers */ static gint ett_pkixac = -1; #include "packet-pkixac-ett.c" static const char *object_identifier_id; #include "packet-pkixac-fn.c" /*--- proto_register_pkixac ----------------------------------------------*/ void proto_register_pkixac(void) { /* List of fields */ static hf_register_info hf[] = { #include "packet-pkixac-hfarr.c" }; /* List of subtrees */ static gint *ett[] = { &ett_pkixac, #include "packet-pkixac-ettarr.c" }; /* Register protocol */ proto_pkixac = proto_register_protocol(PNAME, PSNAME, PFNAME); /* Register fields and subtrees */ proto_register_field_array(proto_pkixac, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); #include "packet-pkixac-syn-reg.c" } /*--- proto_reg_handoff_pkixac -------------------------------------------*/ void proto_reg_handoff_pkixac(void) { #include "packet-pkixac-dis-tab.c" }
C/C++
wireshark/epan/dissectors/asn1/pkixac/packet-pkixac-template.h
/* packet-pkixac.h * * Routines for PKIXAttributeCertificate (RFC3281) packet dissection. * * Copyright 2010, Stig Bjorlykke <[email protected]> * * Wireshark - Network traffic analyzer * By Gerald Combs <[email protected]> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef PACKET_PKIXAC_H #define PACKET_PKIXAC_H /*#include "packet-pkixac-exp.h"*/ #endif /* PACKET_PKIXAC_H */
Configuration
wireshark/epan/dissectors/asn1/pkixac/pkixac.cnf
# pkixac.cnf # An Internet Attribute Certificate (RFC3281) conformation file #.MODULE_IMPORT PKIX1Explicit88 pkix1explicit PKIX1Implicit88 pkix1implicit CertificateExtensions x509ce #.IMPORT ../pkix1explicit/pkix1explicit_exp.cnf #.IMPORT ../pkix1implicit/pkix1implicit_exp.cnf #.IMPORT ../x509ce/x509ce-exp.cnf #.OMIT_ASSIGNMENT ACClearAttrs AttributeCertificate AttributeCertificateInfo AttCertVersion Holder AttCertIssuer AttCertValidityPeriod V2Form #.EXPORTS #.PDU #.NO_EMIT #.TYPE_RENAME #.FIELD_RENAME #.SYNTAX Clearance RFC3281Clearance #.REGISTER AAControls B "1.3.6.1.5.5.7.1.6" "id-pe-aaControls" ProxyInfo B "1.3.6.1.5.5.7.1.10" "id-pe-ac-proxying" SvceAuthInfo B "1.3.6.1.5.5.7.10.1" "id-aca-authenticationInfo" SvceAuthInfo B "1.3.6.1.5.5.7.10.2" "id-aca-accessIdentity" IetfAttrSyntax B "1.3.6.1.5.5.7.10.3" "id-aca-chargingIdentity" IetfAttrSyntax B "1.3.6.1.5.5.7.10.4" "id-aca-group" Clearance B "2.5.1.5.55" "id-at-clearance" Clearance B "2.5.4.55" "id-at-clearance" #AttributeCertificate B "2.5.4.58" "id-at-attributeCertificate" RoleSyntax B "2.5.4.72" "id-at-role" Targets B "2.5.29.55" "id-ce-targetInformation" #AuthorityKeyIdentifier B "2.5.29.35" "id-ce-authorityKeyIdentifier" #.FN_BODY SecurityCategory object_identifier_id = NULL; %(DEFAULT_BODY)s #.FN_PARS SecurityCategory/type FN_VARIANT = _str VAL_PTR = &object_identifier_id #.FN_BODY SecurityCategory/value if (object_identifier_id) offset = call_ber_oid_callback (object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); #.END
ASN.1
wireshark/epan/dissectors/asn1/pkixac/PKIXAttributeCertificate.asn
PKIXAttributeCertificate {iso(1) identified-organization(3) dod(6) internet(1) security(5) mechanisms(5) pkix(7) id-mod(0) id-mod-attribute-cert(12)} DEFINITIONS IMPLICIT TAGS ::= BEGIN -- EXPORTS ALL -- IMPORTS -- IMPORTed module OIDs MAY change if [PKIXPROF] changes -- PKIX Certificate Extensions Attribute, AlgorithmIdentifier, CertificateSerialNumber, Extensions, UniqueIdentifier, id-pkix, id-pe, id-kp, id-ad, id-at FROM PKIX1Explicit88 {iso(1) identified-organization(3) dod(6) internet(1) security(5) mechanisms(5) pkix(7) id-mod(0) id-pkix1-explicit-88(1)} GeneralName, GeneralNames, id-ce FROM CertificateExtensions {joint-iso-itu-t ds(5) module(1) certificateExtensions(26) 5} ; -- FROM PKIX1Implicit88 {iso(1) identified-organization(3) -- dod(6) internet(1) security(5) mechanisms(5) -- pkix(7) id-mod(0) id-pkix1-implicit-88(2)} ; id-pe-ac-auditIdentity OBJECT IDENTIFIER ::= { id-pe 4 } id-pe-aaControls OBJECT IDENTIFIER ::= { id-pe 6 } id-pe-ac-proxying OBJECT IDENTIFIER ::= { id-pe 10 } id-ce-targetInformation OBJECT IDENTIFIER ::= { id-ce 55 } id-aca OBJECT IDENTIFIER ::= { id-pkix 10 } id-aca-authenticationInfo OBJECT IDENTIFIER ::= { id-aca 1 } id-aca-accessIdentity OBJECT IDENTIFIER ::= { id-aca 2 } id-aca-chargingIdentity OBJECT IDENTIFIER ::= { id-aca 3 } id-aca-group OBJECT IDENTIFIER ::= { id-aca 4 } -- { id-aca 5 } is reserved id-aca-encAttrs OBJECT IDENTIFIER ::= { id-aca 6 } id-at-role OBJECT IDENTIFIER ::= { id-at 72} id-at-clearance OBJECT IDENTIFIER ::= { joint-iso-ccitt(2) ds(5) module(1) selected-attribute-types(5) clearance (55) } -- Uncomment this if using a 1988 level ASN.1 compiler -- UTF8String ::= [UNIVERSAL 12] IMPLICIT OCTET STRING AttributeCertificate ::= SEQUENCE { acinfo AttributeCertificateInfo, signatureAlgorithm AlgorithmIdentifier, signatureValue BIT STRING } AttributeCertificateInfo ::= SEQUENCE { version AttCertVersion, -- version is v2 holder Holder, issuer AttCertIssuer, signature AlgorithmIdentifier, serialNumber CertificateSerialNumber, attrCertValidityPeriod AttCertValidityPeriod, attributes SEQUENCE OF Attribute, issuerUniqueID UniqueIdentifier OPTIONAL, extensions Extensions OPTIONAL } AttCertVersion ::= INTEGER { v2(1) } Holder ::= SEQUENCE { baseCertificateID [0] IssuerSerial OPTIONAL, -- the issuer and serial number of -- the holder's Public Key Certificate entityName [1] GeneralNames OPTIONAL, -- the name of the claimant or role objectDigestInfo [2] ObjectDigestInfo OPTIONAL -- used to directly authenticate the -- holder, for example, an executable } ObjectDigestInfo ::= SEQUENCE { digestedObjectType ENUMERATED { publicKey (0), publicKeyCert (1), otherObjectTypes (2) }, -- otherObjectTypes MUST NOT -- MUST NOT be used in this profile otherObjectTypeID OBJECT IDENTIFIER OPTIONAL, digestAlgorithm AlgorithmIdentifier, objectDigest BIT STRING } AttCertIssuer ::= CHOICE { v1Form GeneralNames, -- MUST NOT be used in this -- profile v2Form [0] V2Form -- v2 only } V2Form ::= SEQUENCE { issuerName GeneralNames OPTIONAL, baseCertificateID [0] IssuerSerial OPTIONAL, objectDigestInfo [1] ObjectDigestInfo OPTIONAL -- issuerName MUST be present in this profile -- baseCertificateID and objectDigestInfo MUST -- NOT be present in this profile } IssuerSerial ::= SEQUENCE { issuer GeneralNames, serial CertificateSerialNumber, issuerUID UniqueIdentifier OPTIONAL } AttCertValidityPeriod ::= SEQUENCE { notBeforeTime GeneralizedTime, notAfterTime GeneralizedTime } Targets ::= SEQUENCE OF Target Target ::= CHOICE { targetName [0] GeneralName, targetGroup [1] GeneralName, targetCert [2] TargetCert } TargetCert ::= SEQUENCE { targetCertificate IssuerSerial, targetName GeneralName OPTIONAL, certDigestInfo ObjectDigestInfo OPTIONAL } IetfAttrSyntax ::= SEQUENCE { policyAuthority[0] GeneralNames OPTIONAL, values SEQUENCE OF CHOICE { octets OCTET STRING, oid OBJECT IDENTIFIER, string UTF8String } } SvceAuthInfo ::= SEQUENCE { service GeneralName, ident GeneralName, authInfo OCTET STRING OPTIONAL } RoleSyntax ::= SEQUENCE { roleAuthority [0] GeneralNames OPTIONAL, roleName [1] GeneralName } Clearance ::= SEQUENCE { policyId OBJECT IDENTIFIER, classList ClassList DEFAULT {unclassified}, securityCategories SET OF SecurityCategory OPTIONAL } RFC3281Clearance ::= SEQUENCE { policyId [0] OBJECT IDENTIFIER, classList [1] ClassList DEFAULT {unclassified}, securityCategories [2] SET OF SecurityCategory OPTIONAL } ClassList ::= BIT STRING { unmarked (0), unclassified (1), restricted (2), confidential (3), secret (4), topSecret (5) } SecurityCategory ::= SEQUENCE { type [0] IMPLICIT OBJECT IDENTIFIER, value [1] ANY DEFINED BY type } AAControls ::= SEQUENCE { pathLenConstraint INTEGER (0..MAX) OPTIONAL, permittedAttrs [0] AttrSpec OPTIONAL, excludedAttrs [1] AttrSpec OPTIONAL, permitUnSpecified BOOLEAN DEFAULT TRUE } AttrSpec::= SEQUENCE OF OBJECT IDENTIFIER ACClearAttrs ::= SEQUENCE { acIssuer GeneralName, acSerial INTEGER, attrs SEQUENCE OF Attribute } ProxyInfo ::= SEQUENCE OF Targets END
Text
wireshark/epan/dissectors/asn1/pkixproxy/CMakeLists.txt
# CMakeLists.txt # # Wireshark - Network traffic analyzer # By Gerald Combs <[email protected]> # Copyright 1998 Gerald Combs # # SPDX-License-Identifier: GPL-2.0-or-later # set( PROTOCOL_NAME pkixproxy ) set( PROTO_OPT ) set( EXT_ASN_FILE_LIST ) set( ASN_FILE_LIST PKIXProxy.asn ) set( EXTRA_DIST ${ASN_FILE_LIST} packet-${PROTOCOL_NAME}-template.c packet-${PROTOCOL_NAME}-template.h ${PROTOCOL_NAME}.cnf ) set( SRC_FILES ${EXTRA_DIST} ${EXT_ASN_FILE_LIST} ) set( A2W_FLAGS -b ) ASN2WRS()
C
wireshark/epan/dissectors/asn1/pkixproxy/packet-pkixproxy-template.c
/* packet-pkixproxy.c * Routines for RFC3820 PKIXProxy packet dissection * Ronnie Sahlberg 2004 * * Wireshark - Network traffic analyzer * By Gerald Combs <[email protected]> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #include <epan/packet.h> #include <epan/oids.h> #include <epan/asn1.h> #include "packet-ber.h" #include "packet-pkixproxy.h" #define PNAME "PKIXProxy (RFC3820)" #define PSNAME "PKIXPROXY" #define PFNAME "pkixproxy" void proto_register_pkixproxy(void); void proto_reg_handoff_pkixproxy(void); /* Initialize the protocol and registered fields */ static int proto_pkixproxy = -1; #include "packet-pkixproxy-hf.c" /* Initialize the subtree pointers */ #include "packet-pkixproxy-ett.c" #include "packet-pkixproxy-fn.c" /*--- proto_register_pkixproxy ----------------------------------------------*/ void proto_register_pkixproxy(void) { /* List of fields */ static hf_register_info hf[] = { #include "packet-pkixproxy-hfarr.c" }; /* List of subtrees */ static gint *ett[] = { #include "packet-pkixproxy-ettarr.c" }; /* Register protocol */ proto_pkixproxy = proto_register_protocol(PNAME, PSNAME, PFNAME); /* Register fields and subtrees */ proto_register_field_array(proto_pkixproxy, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); } /*--- proto_reg_handoff_pkixproxy -------------------------------------------*/ void proto_reg_handoff_pkixproxy(void) { #include "packet-pkixproxy-dis-tab.c" oid_add_from_string("id-ppl-anyLanguage","1.3.6.1.5.5.7.21.0"); oid_add_from_string("id-ppl-inheritAll","1.3.6.1.5.5.7.21.1"); oid_add_from_string("id-ppl-independent","1.3.6.1.5.5.7.21.2"); }
C/C++
wireshark/epan/dissectors/asn1/pkixproxy/packet-pkixproxy-template.h
/* packet-pkixproxy.h * Routines for RFC3820 PKIXProxy packet dissection * Ronnie Sahlberg 2004 * * Wireshark - Network traffic analyzer * By Gerald Combs <[email protected]> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef PACKET_PKIXPROXY_H #define PACKET_PKIXPROXY_H /*#include "packet-pkixproxy-exp.h"*/ #endif /* PACKET_PKIXPROXY_H */
ASN.1
wireshark/epan/dissectors/asn1/pkixproxy/PKIXProxy.asn
-- PKIXProxy -- This ASN.1 definition is taken from RFC3820 and modified to pass -- through the asn2wrs compiler. -- -- The original copyright of the ASN.1 module follows below: -- -- Full Copyright Statement -- -- Copyright (C) The Internet Society (2004). This document is subject -- to the rights, licenses and restrictions contained in BCP 78, and -- except as set forth therein, the authors retain all their rights. -- -- This document and the information contained herein are provided on an -- "AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS -- OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY AND THE INTERNET -- ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, -- INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE -- INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED -- WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. PKIXproxy88 { iso(1) identified-organization(3) dod(6) internet(1) security(5) mechanisms(5) pkix(7) id-mod(0) proxy-cert-extns(25) } DEFINITIONS EXPLICIT TAGS ::= BEGIN -- EXPORTS ALL -- -- IMPORTS NONE -- -- PKIX specific OIDs --id-pkix OBJECT IDENTIFIER ::= -- { iso(1) identified-organization(3) -- dod(6) internet(1) security(5) mechanisms(5) pkix(7) } -- private certificate extensions --id-pe OBJECT IDENTIFIER ::= { id-pkix 1 } -- Locally defined OIDs -- The proxy certificate extension --id-pe-proxyCertInfo OBJECT IDENTIFIER ::= { id-pe 14 } -- Proxy certificate policy languages --id-ppl OBJECT IDENTIFIER ::= { id-pkix 21 } -- Proxy certificate policies languages defined in --id-ppl-anyLanguage OBJECT IDENTIFIER ::= { id-ppl 0 } --id-ppl-inheritAll OBJECT IDENTIFIER ::= { id-ppl 1 } --id-ppl-independent OBJECT IDENTIFIER ::= { id-ppl 2 } -- The ProxyCertInfo Extension ProxyCertInfoExtension ::= SEQUENCE { pCPathLenConstraint ProxyCertPathLengthConstraint OPTIONAL, proxyPolicy ProxyPolicy } ProxyCertPathLengthConstraint ::= INTEGER ProxyPolicy ::= SEQUENCE { policyLanguage OBJECT IDENTIFIER, policy OCTET STRING OPTIONAL } END
Configuration
wireshark/epan/dissectors/asn1/pkixproxy/pkixproxy.cnf
# pkixproxy.cnf # PKIXProxy conformation file #.MODULE_IMPORT #.EXPORTS #.PDU #.REGISTER ProxyCertInfoExtension B "1.3.6.1.5.5.7.1.14" "id-pe-proxyCertInfo" #.NO_EMIT #.TYPE_RENAME #.FIELD_RENAME #.END
Text
wireshark/epan/dissectors/asn1/pkixqualified/CMakeLists.txt
# CMakeLists.txt # # Wireshark - Network traffic analyzer # By Gerald Combs <[email protected]> # Copyright 1998 Gerald Combs # # SPDX-License-Identifier: GPL-2.0-or-later # set( PROTOCOL_NAME pkixqualified ) set( PROTO_OPT ) set( EXT_ASN_FILE_LIST ) set( ASN_FILE_LIST PKIXqualified.asn PKIXServiceNameSAN88.asn PKIXServiceNameSAN93.asn ) set( EXTRA_DIST ${ASN_FILE_LIST} packet-${PROTOCOL_NAME}-template.c packet-${PROTOCOL_NAME}-template.h ${PROTOCOL_NAME}.cnf ) set( SRC_FILES ${EXTRA_DIST} ${EXT_ASN_FILE_LIST} ) set( A2W_FLAGS -b ) set( EXTRA_CNF "${CMAKE_CURRENT_BINARY_DIR}/../x509af/x509af-exp.cnf" "${CMAKE_CURRENT_BINARY_DIR}/../x509ce/x509ce-exp.cnf" "${CMAKE_CURRENT_BINARY_DIR}/../x509sat/x509sat-exp.cnf" ) ASN2WRS()
C
wireshark/epan/dissectors/asn1/pkixqualified/packet-pkixqualified-template.c
/* packet-pkixqualified.c * Routines for RFC3739 PKIXqualified packet dissection * Ronnie Sahlberg 2004 * * Wireshark - Network traffic analyzer * By Gerald Combs <[email protected]> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #include <epan/packet.h> #include <epan/asn1.h> #include "packet-ber.h" #include "packet-pkixqualified.h" #include "packet-x509af.h" #include "packet-x509ce.h" #include "packet-x509sat.h" #define PNAME "PKIX Qualified" #define PSNAME "PKIXQUALIFIED" #define PFNAME "pkixqualified" void proto_register_pkixqualified(void); void proto_reg_handoff_pkixqualified(void); /* Initialize the protocol and registered fields */ static int proto_pkixqualified = -1; #include "packet-pkixqualified-hf.c" /* Initialize the subtree pointers */ #include "packet-pkixqualified-ett.c" static const char *object_identifier_id; #include "packet-pkixqualified-fn.c" /*--- proto_register_pkixqualified ----------------------------------------------*/ void proto_register_pkixqualified(void) { /* List of fields */ static hf_register_info hf[] = { #include "packet-pkixqualified-hfarr.c" }; /* List of subtrees */ static gint *ett[] = { #include "packet-pkixqualified-ettarr.c" }; /* Register protocol */ proto_pkixqualified = proto_register_protocol(PNAME, PSNAME, PFNAME); /* Register fields and subtrees */ proto_register_field_array(proto_pkixqualified, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); } /*--- proto_reg_handoff_pkixqualified -------------------------------------------*/ void proto_reg_handoff_pkixqualified(void) { #include "packet-pkixqualified-dis-tab.c" }
C/C++
wireshark/epan/dissectors/asn1/pkixqualified/packet-pkixqualified-template.h
/* packet-pkixqualified.h * Routines for RFC3739 PKIXqualified packet dissection * Ronnie Sahlberg 2004 * * Wireshark - Network traffic analyzer * By Gerald Combs <[email protected]> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef PACKET_PKIXQUALIFIED_H #define PACKET_PKIXQUALIFIED_H /*#include "packet-pkixqualified-exp.h"*/ #endif /* PACKET_PKIXQUALIFIED_H */
ASN.1
wireshark/epan/dissectors/asn1/pkixqualified/PKIXqualified.asn
-- This ASN definition is taken from (and modified to pass through asn2wrs) -- RFC3739 -- -- RFC3739 contains the followin copyright statements: -- -- Full Copyright Statement -- -- Copyright (C) The Internet Society (2004). This document is subject -- to the rights, licenses and restrictions contained in BCP 78 and -- except as set forth therein, the authors retain all their rights. -- -- This document and the information contained herein are provided on an -- "AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE -- REPRESENTS OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY AND THE -- INTERNET ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS OR -- IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF -- THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED -- WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. -- -- Intellectual Property -- -- The IETF takes no position regarding the validity or scope of any -- Intellectual Property Rights or other rights that might be claimed -- to pertain to the implementation or use of the technology -- described in this document or the extent to which any license -- under such rights might or might not be available; nor does it -- represent that it has made any independent effort to identify any -- such rights. Information on the procedures with respect to -- rights in RFC documents can be found in BCP 78 and BCP 79. -- -- Copies of IPR disclosures made to the IETF Secretariat and any -- assurances of licenses to be made available, or the result of an -- attempt made to obtain a general license or permission for the use -- of such proprietary rights by implementers or users of this -- specification can be obtained from the IETF on-line IPR repository -- at http://www.ietf.org/ipr. -- -- The IETF invites any interested party to bring to its attention -- any copyrights, patents or patent applications, or other -- proprietary rights that may cover technology that may be required -- to implement this standard. Please address the information to the -- IETF at [email protected]. -- -- Acknowledgement -- -- Funding for the RFC Editor function is currently provided by the -- Internet Society. -- PKIXqualified97 {iso(1) identified-organization(3) dod(6) internet(1) security(5) mechanisms(5) pkix(7) id-mod(0) id-mod-qualified-cert-97(35) } DEFINITIONS EXPLICIT TAGS ::= BEGIN -- EXPORTS ALL -- IMPORTS informationFramework, certificateExtensions, selectedAttributeTypes, authenticationFramework, upperBounds, id-at FROM UsefulDefinitions {joint-iso-itu-t(2) ds(5) module(1) usefulDefinitions(0) 3 } ub-name FROM UpperBounds upperBounds GeneralName FROM CertificateExtensions certificateExtensions ATTRIBUTE, AttributeType FROM InformationFramework informationFramework DirectoryString FROM SelectedAttributeTypes selectedAttributeTypes AlgorithmIdentifier, Extension, EXTENSION FROM AuthenticationFramework authenticationFramework id-pkix, id-pe FROM PKIX1Explicit88 { iso(1) identified-organization(3) dod(6) internet(1) security(5) mechanisms(5) pkix(7) id-mod(0) id-pkix1-explicit(18) }; -- Locally defined OIDs -- Arc for QC personal data attributes -- id-pda OBJECT IDENTIFIER ::= { id-pkix 9 } -- Arc for QC statements -- id-qcs OBJECT IDENTIFIER ::= { id-pkix 11 } -- Personal data attributes -- id-pda-dateOfBirth AttributeType ::= { id-pda 1 } -- id-pda-placeOfBirth AttributeType ::= { id-pda 2 } -- id-pda-gender AttributeType ::= { id-pda 3 } -- id-pda-countryOfCitizenship AttributeType ::= { id-pda 4 } -- id-pda-countryOfResidence AttributeType ::= { id-pda 5 } -- Certificate extensions -- id-pe-biometricInfo OBJECT IDENTIFIER ::= { id-pe 2 } -- id-pe-qcStatements OBJECT IDENTIFIER ::= { id-pe 3 } -- QC statements -- id-qcs-pkixQCSyntax-v1 OBJECT IDENTIFIER ::= { id-qcs 1 } -- id-qcs-pkixQCSyntax-v2 OBJECT IDENTIFIER ::= { id-qcs 2 } Generalizedtime ::= GeneralizedTime Directorystring ::= DirectoryString Printablestring ::= PrintableString -- Personal data attributes -- -- dateOfBirth ATTRIBUTE ::= { -- WITH SYNTAX GeneralizedTime -- ID id-pda-dateOfBirth } -- -- placeOfBirth ATTRIBUTE ::= { -- WITH SYNTAX DirectoryString {ub-name} -- ID id-pda-placeOfBirth } -- -- gender ATTRIBUTE ::= { -- WITH SYNTAX PrintableString (SIZE(1) ^ FROM("M"|"F"|"m"|"f")) -- ID id-pda-gender } -- -- countryOfCitizenship ATTRIBUTE ::= { -- WITH SYNTAX PrintableString (SIZE (2)) -- (CONSTRAINED BY { }) -- ID id-pda-countryOfCitizenship } -- -- countryOfResidence ATTRIBUTE ::= { -- WITH SYNTAX PrintableString (SIZE (2)) -- (CONSTRAINED BY { }) -- ID id-pda-countryOfResidence } -- -- Certificate extensions -- Biometric info extension -- -- biometricInfo EXTENSION ::= { -- SYNTAX BiometricSyntax -- IDENTIFIED BY id-pe-biometricInfo } BiometricSyntax ::= SEQUENCE OF BiometricData BiometricData ::= SEQUENCE { typeOfBiometricData TypeOfBiometricData, hashAlgorithm AlgorithmIdentifier, biometricDataHash OCTET STRING, sourceDataUri IA5String OPTIONAL, ... } TypeOfBiometricData ::= CHOICE { predefinedBiometricType PredefinedBiometricType, biometricDataOid OBJECT IDENTIFIER } PredefinedBiometricType ::= INTEGER { picture(0), handwritten-signature(1)} -- QC Statements Extension -- NOTE: This extension does not allow to mix critical and -- non-critical Qualified Certificate Statements. Either all -- statements must be critical or all statements must be -- non-critical. -- -- qcStatements EXTENSION ::= { -- SYNTAX QCStatements -- IDENTIFIED BY id-pe-qcStatements } QCStatements ::= SEQUENCE OF QCStatement QCStatement ::= SEQUENCE { statementId OBJECT IDENTIFIER, statementInfo ANY OPTIONAL } -- QC-STATEMENT ::= CLASS { -- &id OBJECT IDENTIFIER UNIQUE, -- &Type OPTIONAL } -- WITH SYNTAX { -- [SYNTAX &Type] IDENTIFIED BY &id } -- qcStatement-1 QC-STATEMENT ::= { SYNTAX SemanticsInformation -- IDENTIFIED BY id-qcs-pkixQCSyntax-v1} -- This statement identifies conformance with requirements -- defined in RFC 3039 (Version 1). This statement -- may optionally contain additional semantics information -- as specified below. -- qcStatement-2 QC-STATEMENT ::= { SYNTAX SemanticsInformation -- IDENTIFIED BY id-qcs-pkixQCSyntax-v2} -- This statement identifies conformance with requirements -- defined in this Qualified Certificate profile -- (Version 2). This statement may optionally contain -- additional semantics information as specified below. SemanticsInformation ::= SEQUENCE { semanticsIdentifier OBJECT IDENTIFIER OPTIONAL, nameRegistrationAuthorities NameRegistrationAuthorities OPTIONAL } NameRegistrationAuthorities ::= SEQUENCE OF GeneralName -- The following information object set is defined to constrain the -- set of attributes applications are required to recognize as QCSs. -- SupportedStatements QC-STATEMENT ::= { -- qcStatement-1 | -- qcStatement-2 , ... } -- RFC 3920 added XmppAddr ::= UTF8String END
Configuration
wireshark/epan/dissectors/asn1/pkixqualified/pkixqualified.cnf
# PKIXqualified.cnf # PKIXqualified conformation file #.IMPORT ../x509ce/x509ce-exp.cnf #.IMPORT ../x509af/x509af-exp.cnf #.IMPORT ../x509sat/x509sat-exp.cnf #.EXPORTS #.REGISTER BiometricSyntax B "1.3.6.1.5.5.7.1.2" "id-pe-biometricInfo" QCStatements B "1.3.6.1.5.5.7.1.3" "id-pe-qcStatements" SemanticsInformation B "1.3.6.1.5.5.7.11.1" "id-qcs-pkixQCSyntax-v1" SemanticsInformation B "1.3.6.1.5.5.7.11.2" "id-qcs-pkixQCSyntax-v2" XmppAddr B "1.3.6.1.5.5.7.8.5" "id-on-xmppAddr" Generalizedtime B "1.3.6.1.5.5.7.9.1" "id-pda-dateOfBirth" Directorystring B "1.3.6.1.5.5.7.9.2" "id-pda-placeOfBirth" Printablestring B "1.3.6.1.5.5.7.9.3" "id-pda-gender" Printablestring B "1.3.6.1.5.5.7.9.4" "id-pda-countryOfCitizenship" Printablestring B "1.3.6.1.5.5.7.9.5" "id-pda-countryOfResidence" SRVName B "1.3.6.1.5.5.7.8.7" "id-on-dnsSRV" #.NO_EMIT #.TYPE_RENAME #.FIELD_RENAME #.FN_HDR QCStatement object_identifier_id = NULL; #.FN_PARS QCStatement/statementId FN_VARIANT = _str HF_INDEX = hf_pkixqualified_statementId VAL_PTR = &object_identifier_id #.FN_BODY QCStatement/statementInfo offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); #.END
ASN.1
wireshark/epan/dissectors/asn1/pkixqualified/PKIXServiceNameSAN88.asn
-- Extracted from RFC 4985 Appendix A.1. 1988 ASN.1 Module -- PKIXServiceNameSAN88 {iso(1) identified-organization(3) dod(6) internet(1) security(5) mechanisms(5) pkix(7) id-mod(0) id-mod-dns-srv-name-88(39) } DEFINITIONS EXPLICIT TAGS ::= BEGIN -- EXPORTS ALL -- IMPORTS -- UTF8String, / move hyphens before slash if UTF8String does not -- resolve with your compiler id-pkix FROM PKIX1Explicit88 { iso(1) identified-organization(3) dod(6) internet(1) security(5) mechanisms(5) pkix(7) id-mod(0) id-pkix1-explicit(18) } ; -- from RFC3280 [N2] -- Service Name Object Identifier and Syntax -- id-pkix OBJECT IDENTIFIER ::= {1 3 6 1 5 5 7} id-on OBJECT IDENTIFIER ::= { id-pkix 8 } id-on-dnsSRV OBJECT IDENTIFIER ::= { id-on 7 } SRVName ::= IA5String (SIZE (1..MAX)) END
ASN.1
wireshark/epan/dissectors/asn1/pkixqualified/PKIXServiceNameSAN93.asn
-- Extracted from RFC 4985 Appendix A.2. 1993 ASN.1 Module -- PKIXServiceNameSAN93 {iso(1) identified-organization(3) dod(6) internet(1) security(5) mechanisms(5) pkix(7) id-mod(0) id-mod-dns-srv-name-93(40) } DEFINITIONS EXPLICIT TAGS ::= BEGIN -- EXPORTS ALL -- IMPORTS id-pkix FROM PKIX1Explicit88 { iso(1) identified-organization(3) dod(6) internet(1) security(5) mechanisms(5) pkix(7) id-mod(0) id-pkix1-explicit(18) } ; -- from RFC 3280 [N2] -- In the GeneralName definition using the 1993 ASN.1 syntax -- includes: OTHER-NAME ::= TYPE-IDENTIFIER -- Service Name Object Identifier -- id-on OBJECT IDENTIFIER ::= { id-pkix 8 } -- id-on-dnsSRV OBJECT IDENTIFIER ::= { id-on 7 } -- Service Name srvName OTHER-NAME ::= { SRVName IDENTIFIED BY { id-on-dnsSRV }} -- SRVName ::= IA5String (SIZE (1..MAX)) END
Text
wireshark/epan/dissectors/asn1/pkixtsp/CMakeLists.txt
# CMakeLists.txt # # Wireshark - Network traffic analyzer # By Gerald Combs <[email protected]> # Copyright 1998 Gerald Combs # # SPDX-License-Identifier: GPL-2.0-or-later # set( PROTOCOL_NAME pkixtsp ) set( PROTO_OPT ) set( EXT_ASN_FILE_LIST ) set( ASN_FILE_LIST PKIXTSP.asn ) set( EXTRA_DIST ${ASN_FILE_LIST} packet-${PROTOCOL_NAME}-template.c packet-${PROTOCOL_NAME}-template.h ${PROTOCOL_NAME}.cnf ) set( SRC_FILES ${EXTRA_DIST} ${EXT_ASN_FILE_LIST} ) set( A2W_FLAGS -b ) set( EXTRA_CNF "${CMAKE_CURRENT_BINARY_DIR}/../cms/cms-exp.cnf" ) ASN2WRS()
C
wireshark/epan/dissectors/asn1/pkixtsp/packet-pkixtsp-template.c
/* packet-pkixtsp.c * Routines for RFC2634 Extended Security Services packet dissection * Ronnie Sahlberg 2004 * * Wireshark - Network traffic analyzer * By Gerald Combs <[email protected]> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #include <epan/packet.h> #include <epan/asn1.h> #include "packet-ber.h" #include "packet-pkixtsp.h" #include "packet-pkix1explicit.h" #include "packet-pkix1implicit.h" #include "packet-cms.h" #define PNAME "PKIX Time Stamp Protocol" #define PSNAME "PKIXTSP" #define PFNAME "pkixtsp" void proto_register_pkixtsp(void); void proto_reg_handoff_pkixtsp(void); static dissector_handle_t timestamp_reply_handle; static dissector_handle_t timestamp_query_handle; /* Initialize the protocol and registered fields */ static int proto_pkixtsp = -1; #include "packet-pkixtsp-hf.c" /* Initialize the subtree pointers */ static gint ett_pkixtsp = -1; #include "packet-pkixtsp-ett.c" #include "packet-pkixtsp-fn.c" static int dissect_timestamp_reply(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void *data _U_) { proto_item *item=NULL; proto_tree *tree=NULL; asn1_ctx_t asn1_ctx; asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); col_set_str(pinfo->cinfo, COL_PROTOCOL, "PKIXTSP"); col_set_str(pinfo->cinfo, COL_INFO, "Reply"); if(parent_tree){ item=proto_tree_add_item(parent_tree, proto_pkixtsp, tvb, 0, -1, ENC_NA); tree = proto_item_add_subtree(item, ett_pkixtsp); } return dissect_pkixtsp_TimeStampResp(FALSE, tvb, 0, &asn1_ctx, tree, -1); } static int dissect_timestamp_query(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void *data _U_) { proto_item *item=NULL; proto_tree *tree=NULL; asn1_ctx_t asn1_ctx; asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); col_set_str(pinfo->cinfo, COL_PROTOCOL, "PKIXTSP"); col_set_str(pinfo->cinfo, COL_INFO, "Query"); if(parent_tree){ item=proto_tree_add_item(parent_tree, proto_pkixtsp, tvb, 0, -1, ENC_NA); tree = proto_item_add_subtree(item, ett_pkixtsp); } return dissect_pkixtsp_TimeStampReq(FALSE, tvb, 0, &asn1_ctx, tree, -1); } /*--- proto_register_pkixtsp ----------------------------------------------*/ void proto_register_pkixtsp(void) { /* List of fields */ static hf_register_info hf[] = { #include "packet-pkixtsp-hfarr.c" }; /* List of subtrees */ static gint *ett[] = { &ett_pkixtsp, #include "packet-pkixtsp-ettarr.c" }; /* Register protocol */ proto_pkixtsp = proto_register_protocol(PNAME, PSNAME, PFNAME); /* Register fields and subtrees */ proto_register_field_array(proto_pkixtsp, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); timestamp_reply_handle = register_dissector(PFNAME "_reply", dissect_timestamp_reply, proto_pkixtsp); timestamp_query_handle = register_dissector(PFNAME "_query", dissect_timestamp_query, proto_pkixtsp); register_ber_syntax_dissector("TimeStampReq", proto_pkixtsp, dissect_TimeStampReq_PDU); register_ber_syntax_dissector("TimeStampResp", proto_pkixtsp, dissect_TimeStampResp_PDU); register_ber_oid_syntax(".tsq", NULL, "TimeStampReq"); register_ber_oid_syntax(".tsr", NULL, "TimeStampResp"); } /*--- proto_reg_handoff_pkixtsp -------------------------------------------*/ void proto_reg_handoff_pkixtsp(void) { dissector_add_string("media_type", "application/timestamp-reply", timestamp_reply_handle); dissector_add_string("media_type", "application/timestamp-query", timestamp_query_handle); #include "packet-pkixtsp-dis-tab.c" }
C/C++
wireshark/epan/dissectors/asn1/pkixtsp/packet-pkixtsp-template.h
/* packet-pkixtsp.h * Routines for RFC3161 Time-Stamp Protocol packet dissection * Ronnie Sahlberg 2004 * * Wireshark - Network traffic analyzer * By Gerald Combs <[email protected]> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef PACKET_PKIXTSP_H #define PACKET_PKIXTSP_H /*#include "packet-pkixtsp-exp.h"*/ #endif /* PACKET_PKIXTSP_H */
ASN.1
wireshark/epan/dissectors/asn1/pkixtsp/PKIXTSP.asn
-- This ASN.1 definition defined the Time-Stamp Protocol -- as of RFC3161. -- This definition is taken from RFC3161 and modified to pass through -- the asn2wrs compiler. -- -- Copyright statement of the original ASN.1 definition of RFC3161 as follows -- -- -- Full Copyright Statement -- -- Copyright (C) The Internet Society (2001). All Rights Reserved. -- -- This document and translations of it may be copied and furnished to -- others, and derivative works that comment on or otherwise explain it -- or assist in its implementation may be prepared, copied, published -- and distributed, in whole or in part, without restriction of any -- kind, provided that the above copyright notice and this paragraph are -- included on all such copies and derivative works. However, this -- document itself may not be modified in any way, such as by removing -- the copyright notice or references to the Internet Society or other -- Internet organizations, except as needed for the purpose of -- developing Internet standards in which case the procedures for -- copyrights defined in the Internet Standards process must be -- followed, or as required to translate it into languages other than -- English. -- -- The limited permissions granted above are perpetual and will not be -- revoked by the Internet Society or its successors or assigns. -- -- This document and the information contained herein is provided on an -- "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING -- TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING -- BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION -- HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF -- MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. PKIXTSP {iso(1) identified-organization(3) dod(6) internet(1) security(5) mechanisms(5) pkix(7) id-mod(0) id-mod-tsp(13)} DEFINITIONS IMPLICIT TAGS ::= BEGIN -- EXPORTS ALL -- IMPORTS Extensions, AlgorithmIdentifier FROM PKIX1Explicit88 {iso(1) identified-organization(3) dod(6) internet(1) security(5) mechanisms(5) pkix(7) id-mod(0) id-pkix1-explicit-88(1)} GeneralName FROM PKIX1Implicit88 {iso(1) identified-organization(3) dod(6) internet(1) security(5) mechanisms(5) pkix(7) id-mod(0) id-pkix1-implicit-88(2)} ContentInfo FROM CryptographicMessageSyntax {iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) modules(0) cms(1)} PKIFreeText FROM PKIXCMP {iso(1) identified-organization(3) dod(6) internet(1) security(5) mechanisms(5) pkix(7) id-mod(0) id-mod-cmp(9)} ; -- Locally defined OIDs -- -- eContentType for a time-stamp token -- id-ct-TSTInfo OBJECT IDENTIFIER ::= { iso(1) member-body(2) -- us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) ct(1) 4} -- 2.4.1 TimeStampReq ::= SEQUENCE { version INTEGER { v1(1) }, messageImprint MessageImprint, --a hash algorithm OID and the hash value of the data to be --time-stamped reqPolicy TSAPolicyId OPTIONAL, nonce INTEGER OPTIONAL, certReq BOOLEAN DEFAULT FALSE, extensions [0] IMPLICIT Extensions OPTIONAL } MessageImprint ::= SEQUENCE { hashAlgorithm AlgorithmIdentifier, hashedMessage OCTET STRING } TSAPolicyId ::= OBJECT IDENTIFIER -- 2.4.2 TimeStampResp ::= SEQUENCE { status PKIStatusInfo, timeStampToken TimeStampToken OPTIONAL } -- The status is based on the definition of status -- in section 3.2.3 of [RFC2510] PKIStatusInfo ::= SEQUENCE { status PKIStatus, --XXX dont implement PKIXCMP yet -- statusString PKIFreeText OPTIONAL, failInfo PKIFailureInfo OPTIONAL } PKIStatus ::= INTEGER { granted (0), -- when the PKIStatus contains the value zero a TimeStampToken, as -- requested, is present. grantedWithMods (1), -- when the PKIStatus contains the value one a TimeStampToken, -- with modifications, is present. rejection (2), waiting (3), revocationWarning (4), -- this message contains a warning that a revocation is -- imminent revocationNotification (5) -- notification that a revocation has occurred } -- When the TimeStampToken is not present -- failInfo indicates the reason why the -- time-stamp request was rejected and -- may be one of the following values. PKIFailureInfo ::= BIT STRING { badAlg (0), -- unrecognized or unsupported Algorithm Identifier badRequest (2), -- transaction not permitted or supported badDataFormat (5), -- the data submitted has the wrong format timeNotAvailable (14), -- the TSA's time source is not available unacceptedPolicy (15), -- the requested TSA policy is not supported by the TSA. unacceptedExtension (16), -- the requested extension is not supported by the TSA. addInfoNotAvailable (17), -- the additional information requested could not be understood -- or is not available systemFailure (25) -- the request cannot be handled due to system failure } TimeStampToken ::= ContentInfo -- contentType is id-signedData as defined in [CMS] -- content is SignedData as defined in([CMS]) -- eContentType within SignedData is id-ct-TSTInfo -- eContent within SignedData is TSTInfo TSTInfo ::= SEQUENCE { version INTEGER { v1(1) }, policy TSAPolicyId, messageImprint MessageImprint, -- MUST have the same value as the similar field in -- TimeStampReq serialNumber INTEGER, -- Time-Stamping users MUST be ready to accommodate integers -- up to 160 bits. genTime GeneralizedTime, accuracy Accuracy OPTIONAL, ordering BOOLEAN DEFAULT FALSE, nonce INTEGER OPTIONAL, -- MUST be present if the similar field was present -- in TimeStampReq. In that case it MUST have the same value. tsa [0] GeneralName OPTIONAL, extensions [1] IMPLICIT Extensions OPTIONAL } Accuracy ::= SEQUENCE { seconds INTEGER OPTIONAL, millis [0] INTEGER (1..999) OPTIONAL, micros [1] INTEGER (1..999) OPTIONAL } -- from Appendix A id-aa-timeStampToken OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) aa(2) 14 } SignatureTimeStampToken ::= TimeStampToken END
Configuration
wireshark/epan/dissectors/asn1/pkixtsp/pkixtsp.cnf
# pkixtsp.cnf # Time-Stamp Protocol (RFC3161) conformation file #.MODULE_IMPORT PKIX1Explicit88 pkix1explicit PKIX1Implicit88 pkix1implicit #.INCLUDE ../pkix1explicit/pkix1explicit_exp.cnf #.INCLUDE ../pkix1implicit/pkix1implicit_exp.cnf #.IMPORT ../cms/cms-exp.cnf #.EXPORTS #.PDU TimeStampReq TimeStampResp #.NO_EMIT #.TYPE_RENAME TSTInfo/version Tst_version #.FIELD_RENAME PKIStatusInfo/status pki_status TSTInfo/version tst_version #.REGISTER SignatureTimeStampToken B "1.2.840.113549.1.9.16.2.14" "id-aa-timeStampToken" TSTInfo B "1.2.840.113549.1.9.16.1.4" "id-ct-TSTInfo" #.END
Text
wireshark/epan/dissectors/asn1/pres/CMakeLists.txt
# CMakeLists.txt # # Wireshark - Network traffic analyzer # By Gerald Combs <[email protected]> # Copyright 1998 Gerald Combs # # SPDX-License-Identifier: GPL-2.0-or-later # set( PROTOCOL_NAME pres ) set( PROTO_OPT ) set( EXT_ASN_FILE_LIST ) set( ASN_FILE_LIST ISO8823-PRESENTATION.asn ISO9576-PRESENTATION.asn ) set( EXTRA_DIST ${ASN_FILE_LIST} packet-${PROTOCOL_NAME}-template.c packet-${PROTOCOL_NAME}-template.h ${PROTOCOL_NAME}.cnf ) set( SRC_FILES ${EXTRA_DIST} ${EXT_ASN_FILE_LIST} ) set( A2W_FLAGS -b ) set( EXTRA_CNF "${CMAKE_CURRENT_BINARY_DIR}/../rtse/rtse-exp.cnf" ) ASN2WRS()
ASN.1
wireshark/epan/dissectors/asn1/pres/ISO8823-PRESENTATION.asn
-- Module ISO8823-PRESENTATION (X.226:07/1994) ISO8823-PRESENTATION DEFINITIONS ::= BEGIN -- -- In X.410-1984 mode, the value of the SS-user data parameter of the S-CONNECT request and -- indication session-service primitives shall be a CP-type value. -- -- In normal mode, the value of the SS-user data parameter of the S-CONNECT request and -- indication session-service primitives shall be a CP-type value, followed as a requestor's -- option by zero or more CPC-type values. IMPORTS RTORQapdu, RTOACapdu, RTORJapdu, RTABapdu FROM Reliable-Transfer-APDU {joint-iso-itu-t(2) reliable-transfer(3) apdus(0)}; CP-type ::= SET { mode-selector [0] IMPLICIT Mode-selector, x410-mode-parameters -- [1] IMPLICIT SET {COMPONENTS OF Reliable-Transfer-APDU.RTORQapdu} OPTIONAL This OPTIONAL element shall be absent for a [1] IMPLICIT RTORQapdu OPTIONAL, -- This OPTIONAL element shall be absent for a -- nested presentation connection. -- Shall be used for X.410 mode only. Shall be bitwise -- compatible with CCITT Recommendation X.410-1984. -- This shall be the User data parameter of the CP PPDU1) -- normal-mode-parameters [2] IMPLICIT SEQUENCE {protocol-version [0] IMPLICIT Protocol-version DEFAULT {version-1}, calling-presentation-selector [1] IMPLICIT Calling-presentation-selector OPTIONAL, called-presentation-selector [2] IMPLICIT Called-presentation-selector OPTIONAL, presentation-context-definition-list [4] IMPLICIT Presentation-context-definition-list OPTIONAL, default-context-name [6] IMPLICIT Default-context-name OPTIONAL, presentation-requirements [8] IMPLICIT Presentation-requirements OPTIONAL, user-session-requirements [9] IMPLICIT User-session-requirements OPTIONAL-- shall not be present if equal to the Revised session -- requirements parameter --, protocol-options [11] Protocol-options DEFAULT {}, -- shall be absent if no options are offered initiators-nominated-context [12] Presentation-context-identifier OPTIONAL, -- shall only be present if nominated-context is -- offered in protocol-options extensions [14] SEQUENCE {...} OPTIONAL, -- to allow for future extensions user-data User-data OPTIONAL} OPTIONAL -- Shall be used for normal mode only. -- Shall be the parameters of the CP PPDU. } -- -- As an initiator's option, the presentation data values contained in a CP PPDU may be -- encoded more than once, using CPC-type values, to allow the transfer of the same -- presentation data values using a number of different transfer syntaxes. -- CPC-type ::= User-data -- Shall be used for normal mode only. -- Shall not be present if the Presentation context definition list parameter is not present -- in the CP PPDU. Each instance of this data type shall contain all of the presentation data -- values which were contained in the User data parameter of the CP PPDU. -- This shall be the same set of presentation data values which were contained in the CP-type. -- -- The SS-user data parameter value of the S-CONNECT response -- and confirm session-service primitives shall be a CPA-PPDU -- value when the Result parameter value is "accept". -- -- CPA-PPDU ::= SET { mode-selector [0] IMPLICIT Mode-selector, x410-mode-parameters -- [1] IMPLICIT SET {COMPONENTS OF Reliable-Transfer-APDU.RTOACapdu} OPTIONAL -- This OPTIONAL element shall be absent for a [1] IMPLICIT RTOACapdu OPTIONAL, -- This OPTIONAL element shall be absent for a -- nested presentation connection. -- Shall be used for X.410 mode only. Shall be bitwise -- compatible with CCITT Recommendation X.410-1984. -- This shall be the User data parameter of the CPA PPDU1) -- normal-mode-parameters [2] IMPLICIT SEQUENCE {protocol-version [0] IMPLICIT Protocol-version DEFAULT {version-1}, responding-presentation-selector [3] IMPLICIT Responding-presentation-selector OPTIONAL, presentation-context-definition-result-list [5] IMPLICIT Presentation-context-definition-result-list OPTIONAL, presentation-requirements [8] IMPLICIT Presentation-requirements OPTIONAL, user-session-requirements [9] IMPLICIT User-session-requirements OPTIONAL, -- shall not be present if equal to the Revised session -- requirements parameter protocol-options [11] Protocol-options DEFAULT {}, -- shall be absent if no options are selected responders-nominated-context [13] Presentation-context-identifier OPTIONAL, -- shall only be present if nominated-context is -- selected in protocol-options user-data User-data OPTIONAL} OPTIONAL -- Shall be used for normal mode only. } -- -- -- The SS-user data parameter value of the S-CONNECT response -- and confirm session-service primitives shall be a CPR-PPDU -- value when the Result parameter value is "reject by SS-provider" -- or "reject by called SS-user". -- CPR-PPDU ::= CHOICE { -- x400-mode-parameters SET {COMPONENTS OF Reliable-Transfer-APDU.RTORJapdu} -- This OPTIONAL element shall be absent for a x400-mode-parameters RTORJapdu, -- This OPTIONAL element shall be absent for a -- nested presentation connection. -- Shall be used for X.410 mode only. Shall be bitwise -- compatible with CCITT Recommendation X.410-1984. -- This shall be the User data parameter of the CPR PPDU2) -- normal-mode-parameters SEQUENCE {protocol-version [0] IMPLICIT Protocol-version DEFAULT {version-1}, responding-presentation-selector [3] IMPLICIT Responding-presentation-selector OPTIONAL, presentation-context-definition-result-list [5] IMPLICIT Presentation-context-definition-result-list OPTIONAL, default-context-result [7] IMPLICIT Default-context-result OPTIONAL, provider-reason [10] IMPLICIT Provider-reason OPTIONAL, user-data User-data OPTIONAL } -- Shall be used for normal mode only. } -- -- -- The SS-user data parameter of the S-U-ABORT request and indication -- service primitives shall be an Abort-type value. -- Abort-type ::= CHOICE { aru-ppdu ARU-PPDU-- for a P-U-ABORT -- , arp-ppdu ARP-PPDU -- for a P-P-ABORT } -- ARU-PPDU ::= CHOICE { -- x400-mode-parameters SET {COMPONENTS OF Reliable-Transfer-APDU.RTABapdu} -- Shall be used for X.410 mode only. Shall be bitwise x400-mode-parameters RTABapdu, -- Shall be used for X.410 mode only. Shall be bitwise -- compatible with CCITT Recommendation X.410-1984. -- This shall be the User data parameter of the ARU PPDU3. -- normal-mode-parameters [0] IMPLICIT SEQUENCE {presentation-context-identifier-list [0] IMPLICIT Presentation-context-identifier-list OPTIONAL, user-data User-data OPTIONAL} -- Shall be used for normal mode only. } -- ARP-PPDU ::= SEQUENCE { provider-reason [0] IMPLICIT Abort-reason OPTIONAL, event-identifier [1] IMPLICIT Event-identifier OPTIONAL } -- -- -- The SS-user data parameter value of the S-TYPED-DATA request -- and indication service primitives shall be a Typed-data-type value. -- Typed-data-type ::= CHOICE { acPPDU [0] IMPLICIT AC-PPDU-- P-ALTER-CONTEXT request and indication -- , acaPPDU [1] IMPLICIT ACA-PPDU-- P-ALTER-CONTEXT response and confirm -- , ttdPPDU User-data -- P-TYPED-DATA request and indication } -- AC-PPDU ::= SEQUENCE { presentation-context-addition-list [0] IMPLICIT Presentation-context-addition-list OPTIONAL, presentation-context-deletion-list [1] IMPLICIT Presentation-context-deletion-list OPTIONAL, user-data User-data OPTIONAL } -- ACA-PPDU ::= SEQUENCE { presentation-context-addition-result-list [0] IMPLICIT Presentation-context-addition-result-list OPTIONAL, presentation-context-deletion-result-list [1] IMPLICIT Presentation-context-deletion-result-list OPTIONAL, user-data User-data OPTIONAL } -- -- -- The SS-user data parameter value of the S-RESYNCHRONIZE request and -- indication service primitives shall be an RS-PPDU value. -- RS-PPDU ::= SEQUENCE { presentation-context-identifier-list [0] IMPLICIT Presentation-context-identifier-list OPTIONAL, user-data User-data OPTIONAL } -- -- The SS-user data parameter value of the S-RESYNCHRONIZE response and -- confirm service primitives shall be an RSA-PPDU value. -- RSA-PPDU ::= SEQUENCE { presentation-context-identifier-list [0] IMPLICIT Presentation-context-identifier-list OPTIONAL, user-data User-data OPTIONAL } -- -- -- The SS-user data parameter values of the S-DATA, S-CAPABILITY-DATA, -- S-EXPEDITED-DATA request and indication session-service primitives -- and S-CAPABILITY-DATA response and confirm session-service primitives -- shall be of type User-data. -- -- The SS-user data parameter values of all other session-service -- primitives not described above shall be of type User-data. -- -- -- Abort-reason ::= INTEGER { reason-not-specified(0), unrecognized-ppdu(1), unexpected-ppdu(2), unexpected-session-service-primitive(3), unrecognized-ppdu-parameter(4), unexpected-ppdu-parameter(5), invalid-ppdu-parameter-value(6)} Abstract-syntax-name ::= OBJECT IDENTIFIER Called-presentation-selector ::= Presentation-selector Calling-presentation-selector ::= Presentation-selector Context-list ::= -- SEQUENCE SIZE (0..7, ..., 8..MAX) OF SEQUENCE OF SEQUENCE {presentation-context-identifier Presentation-context-identifier, abstract-syntax-name Abstract-syntax-name, transfer-syntax-name-list SEQUENCE OF Transfer-syntax-name } Default-context-name ::= SEQUENCE { abstract-syntax-name [0] IMPLICIT Abstract-syntax-name, transfer-syntax-name [1] IMPLICIT Transfer-syntax-name } Default-context-result ::= Result Event-identifier ::= INTEGER { cp-PPDU(0), cpa-PPDU(1), cpr-PPDU(2), aru-PPDU(3), arp-PPDU(4), ac-PPDU(5), aca-PPDU(6), td-PPDU(7), ttd-PPDU(8), te-PPDU(9), tc-PPDU(10), tcc-PPDU(11), rs-PPDU(12), rsa-PPDU(13), s-release-indication(14), s-release-confirm(15), s-token-give-indication(16), s-token-please-indication(17), s-control-give-indication(18), s-sync-minor-indication(19), s-sync-minor-confirm(20), s-sync-major-indication(21), s-sync-major-confirm(22), s-p-exception-report-indication(23), s-u-exception-report-indication(24), s-activity-start-indication(25), s-activity-resume-indication(26), s-activity-interrupt-indication(27), s-activity-interrupt-confirm(28), s-activity-discard-indication(29), s-activity-discard-confirm(30), s-activity-end-indication(31), s-activity-end-confirm(32)} Mode-selector ::= SET { mode-value [0] IMPLICIT INTEGER {x410-1984-mode(0), normal-mode(1)} } Presentation-context-addition-list ::= Context-list Presentation-context-addition-result-list ::= Result-list Presentation-context-definition-list ::= Context-list Presentation-context-definition-result-list ::= Result-list Presentation-context-deletion-list ::= -- SEQUENCE SIZE (0..7, ..., 8..MAX) OF Presentation-context-identifier SEQUENCE OF Presentation-context-identifier Presentation-context-deletion-result-list ::= -- SEQUENCE SIZE (0..7, ..., 8..MAX) OF SEQUENCE OF INTEGER {acceptance(0), user-rejection(1)} --Presentation-context-identifier ::= INTEGER(1..127, ..., 128..MAX) Presentation-context-identifier ::= INTEGER Presentation-context-identifier-list ::= -- SEQUENCE SIZE (0..7, ..., 8..MAX) OF SEQUENCE OF SEQUENCE {presentation-context-identifier Presentation-context-identifier, transfer-syntax-name Transfer-syntax-name} Presentation-requirements ::= BIT STRING {context-management(0), restoration(1) } --Presentation-selector ::= OCTET STRING(SIZE (1..4, ..., 5..MAX)) Presentation-selector ::= OCTET STRING Protocol-options ::= BIT STRING { nominated-context(0), short-encoding(1), packed-encoding-rules(2)} Protocol-version ::= BIT STRING {version-1(0)} Provider-reason ::= INTEGER { reason-not-specified(0), temporary-congestion(1), local-limit-exceeded(2), called-presentation-address-unknown(3), protocol-version-not-supported(4), default-context-not-supported(5), user-data-not-readable(6), no-PSAP-available(7)} Responding-presentation-selector ::= Presentation-selector Result ::= INTEGER {acceptance(0), user-rejection(1), provider-rejection(2)} Result-list ::= -- SEQUENCE SIZE (0..7, ..., 8..MAX) OF SEQUENCE OF SEQUENCE {result [0] IMPLICIT Result, transfer-syntax-name [1] IMPLICIT Transfer-syntax-name OPTIONAL, provider-reason [2] IMPLICIT INTEGER {reason-not-specified(0), abstract-syntax-not-supported(1), proposed-transfer-syntaxes-not-supported(2), local-limit-on-DCS-exceeded(3)} OPTIONAL } Transfer-syntax-name ::= OBJECT IDENTIFIER User-data ::= CHOICE { simply-encoded-data [APPLICATION 0] IMPLICIT Simply-encoded-data, fully-encoded-data [APPLICATION 1] IMPLICIT Fully-encoded-data, ... } -- Subclause 8.4 defines when each of the two alternatives shall be used. Simply-encoded-data ::= OCTET STRING -- See 8.4.1. --Fully-encoded-data ::= SEQUENCE SIZE (1, ..., 2..MAX) OF PDV-list Fully-encoded-data ::= SEQUENCE OF PDV-list -- contains one or more PDV-list values. -- See 8.4.2. PDV-list ::= SEQUENCE { transfer-syntax-name Transfer-syntax-name OPTIONAL, presentation-context-identifier Presentation-context-identifier, presentation-data-values CHOICE {single-ASN1-type [0] ANY, -- [0] ABSTRACT-SYNTAX.&Type -- (CONSTRAINED BY { -- Type corresponding to presentation context identifier }), octet-aligned [1] IMPLICIT OCTET STRING, arbitrary [2] IMPLICIT BIT STRING} -- Contains one or more presentation data values from the same -- presentation context. -- See 8.4.2. } User-session-requirements ::= BIT STRING { half-duplex(0), duplex(1), expedited-data(2), minor-synchronize(3), major-synchronize(4), resynchronize(5), activity-management(6), negotiated-release(7), capability-data(8), exceptions(9), typed-data(10), symmetric-synchronize(11), data-separation(12)} END
ASN.1
wireshark/epan/dissectors/asn1/pres/ISO9576-PRESENTATION.asn
-- Module ISO9576-PRESENTATION (X.236) ISO9576-CONNECTIONLESS-PRESENTATION DEFINITIONS ::= BEGIN -- -- The value of the SS-user data parameter of the S-UNIT-DATA request and indication -- session-service primitives shall be a UD-type value, followed as a requestor's -- option by zero or more UDC-type values. -- UD-type ::= SEQUENCE { protocol-version [0] IMPLICIT Protocol-version DEFAULT {version-1}, calling-presentation-selector [1] IMPLICIT Calling-presentation-selector OPTIONAL, called-presentation-selector [2] IMPLICIT Called-presentation-selector OPTIONAL, presentation-context-definition-list [4] IMPLICIT Presentation-context-definition-list OPTIONAL, user-data User-data } -- Shall be the parameters of the UD PPDU. -- -- As an initiator's option, the presentation data values contained in a UD PPDU may be -- encoded more than once, using UDC-type values, to allow the transfer of the same -- presentation data values using a number of different transfer syntaxes. -- UDC-type ::= User-data -- Shall not be present if the Presentation context definition list parameter is not present -- in the UD PPDU. Each instance of this data type shall contain all of the presentation data -- values which were contained in the User data parameter of the UD PPDU. -- This shall be the same set of presentation data values which were contained in the UD-type. -- -- WS: trunkated here as the rest is present in ISO8823-PRESENTATION.asn. END
C
wireshark/epan/dissectors/asn1/pres/packet-pres-template.c
/* packet-pres.c * Routine to dissect ISO 8823 OSI Presentation Protocol packets * Based on the dissector by * Yuriy Sidelnikov <[email protected]> * * Wireshark - Network traffic analyzer * By Gerald Combs <[email protected]> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #include <epan/packet.h> #include <epan/exceptions.h> #include <epan/prefs.h> #include <epan/conversation.h> #include <epan/expert.h> #include <epan/uat.h> #include <epan/asn1.h> #include <epan/oids.h> #include "packet-ber.h" #include "packet-ses.h" #include "packet-pres.h" #include "packet-rtse.h" #define PNAME "ISO 8823 OSI Presentation Protocol" #define PSNAME "PRES" #define PFNAME "pres" #define CLPNAME "ISO 9576-1 OSI Connectionless Presentation Protocol" #define CLPSNAME "CLPRES" #define CLPFNAME "clpres" void proto_register_pres(void); void proto_reg_handoff_pres(void); /* Initialize the protocol and registered fields */ static int proto_pres = -1; /* Initialize the connectionles protocol */ static int proto_clpres = -1; /* pointers for acse dissector */ proto_tree *global_tree = NULL; packet_info *global_pinfo = NULL; static const char *abstract_syntax_name_oid; static guint32 presentation_context_identifier; /* to keep track of presentation context identifiers and protocol-oids */ typedef struct _pres_ctx_oid_t { guint32 ctx_id; char *oid; guint32 idx; } pres_ctx_oid_t; static wmem_map_t *pres_ctx_oid_table = NULL; typedef struct _pres_user_t { guint ctx_id; char *oid; } pres_user_t; static pres_user_t *pres_users; static guint num_pres_users; static int hf_pres_CP_type = -1; static int hf_pres_CPA_PPDU = -1; static int hf_pres_Abort_type = -1; static int hf_pres_CPR_PPDU = -1; static int hf_pres_Typed_data_type = -1; #include "packet-pres-hf.c" /* Initialize the subtree pointers */ static gint ett_pres = -1; #include "packet-pres-ett.c" static expert_field ei_pres_dissector_not_available = EI_INIT; static expert_field ei_pres_wrong_spdu_type = EI_INIT; static expert_field ei_pres_invalid_offset = EI_INIT; UAT_DEC_CB_DEF(pres_users, ctx_id, pres_user_t) UAT_CSTRING_CB_DEF(pres_users, oid, pres_user_t) static guint pres_ctx_oid_hash(gconstpointer k) { const pres_ctx_oid_t *pco=(const pres_ctx_oid_t *)k; return pco->ctx_id; } static gint pres_ctx_oid_equal(gconstpointer k1, gconstpointer k2) { const pres_ctx_oid_t *pco1=(const pres_ctx_oid_t *)k1; const pres_ctx_oid_t *pco2=(const pres_ctx_oid_t *)k2; return (pco1->ctx_id==pco2->ctx_id && pco1->idx==pco2->idx); } static void register_ctx_id_and_oid(packet_info *pinfo _U_, guint32 idx, const char *oid) { pres_ctx_oid_t *pco, *tmppco; conversation_t *conversation; if (!oid) { /* we did not get any oid name, malformed packet? */ return; } pco=wmem_new(wmem_file_scope(), pres_ctx_oid_t); pco->ctx_id=idx; pco->oid=wmem_strdup(wmem_file_scope(), oid); conversation=find_conversation_pinfo(pinfo, 0); if (conversation) { pco->idx = conversation->conv_index; } else { pco->idx = 0; } /* if this ctx already exists, remove the old one first */ tmppco=(pres_ctx_oid_t *)wmem_map_lookup(pres_ctx_oid_table, pco); if (tmppco) { wmem_map_remove(pres_ctx_oid_table, tmppco); } wmem_map_insert(pres_ctx_oid_table, pco, pco); } static char * find_oid_in_users_table(packet_info *pinfo, guint32 ctx_id) { guint i; for (i = 0; i < num_pres_users; i++) { pres_user_t *u = &(pres_users[i]); if (u->ctx_id == ctx_id) { /* Register oid so other dissectors can find this connection */ register_ctx_id_and_oid(pinfo, u->ctx_id, u->oid); return u->oid; } } return NULL; } char * find_oid_by_pres_ctx_id(packet_info *pinfo, guint32 idx) { pres_ctx_oid_t pco, *tmppco; conversation_t *conversation; pco.ctx_id=idx; conversation=find_conversation_pinfo(pinfo, 0); if (conversation) { pco.idx = conversation->conv_index; } else { pco.idx = 0; } tmppco=(pres_ctx_oid_t *)wmem_map_lookup(pres_ctx_oid_table, &pco); if (tmppco) { return tmppco->oid; } return find_oid_in_users_table(pinfo, idx); } static void * pres_copy_cb(void *dest, const void *orig, size_t len _U_) { pres_user_t *u = (pres_user_t *)dest; const pres_user_t *o = (const pres_user_t *)orig; u->ctx_id = o->ctx_id; u->oid = g_strdup(o->oid); return dest; } static void pres_free_cb(void *r) { pres_user_t *u = (pres_user_t *)r; g_free(u->oid); } #include "packet-pres-fn.c" /* * Dissect an PPDU. */ static int dissect_ppdu(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, struct SESSION_DATA_STRUCTURE* local_session) { proto_item *ti; proto_tree *pres_tree; struct SESSION_DATA_STRUCTURE* session; asn1_ctx_t asn1_ctx; asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); /* do we have spdu type from the session dissector? */ if (local_session == NULL) { proto_tree_add_expert(tree, pinfo, &ei_pres_wrong_spdu_type, tvb, offset, -1); return 0; } session = local_session; if (session->spdu_type == 0) { proto_tree_add_expert_format(tree, pinfo, &ei_pres_wrong_spdu_type, tvb, offset, -1, "Internal error:wrong spdu type %x from session dissector.",session->spdu_type); return 0; } /* set up type of PPDU */ col_add_str(pinfo->cinfo, COL_INFO, val_to_str_ext(session->spdu_type, &ses_vals_ext, "Unknown PPDU type (0x%02x)")); asn1_ctx.private_data = session; ti = proto_tree_add_item(tree, proto_pres, tvb, offset, -1, ENC_NA); pres_tree = proto_item_add_subtree(ti, ett_pres); switch (session->spdu_type) { case SES_CONNECTION_REQUEST: offset = dissect_pres_CP_type(FALSE, tvb, offset, &asn1_ctx, pres_tree, hf_pres_CP_type); break; case SES_CONNECTION_ACCEPT: offset = dissect_pres_CPA_PPDU(FALSE, tvb, offset, &asn1_ctx, pres_tree, hf_pres_CPA_PPDU); break; case SES_ABORT: case SES_ABORT_ACCEPT: offset = dissect_pres_Abort_type(FALSE, tvb, offset, &asn1_ctx, pres_tree, hf_pres_Abort_type); break; case SES_DATA_TRANSFER: offset = dissect_pres_CPC_type(FALSE, tvb, offset, &asn1_ctx, pres_tree, hf_pres_user_data); break; case SES_TYPED_DATA: offset = dissect_pres_Typed_data_type(FALSE, tvb, offset, &asn1_ctx, pres_tree, hf_pres_Typed_data_type); break; case SES_RESYNCHRONIZE: offset = dissect_pres_RS_PPDU(FALSE, tvb, offset, &asn1_ctx, pres_tree, -1); break; case SES_RESYNCHRONIZE_ACK: offset = dissect_pres_RSA_PPDU(FALSE, tvb, offset, &asn1_ctx, pres_tree, -1); break; case SES_REFUSE: offset = dissect_pres_CPR_PPDU(FALSE, tvb, offset, &asn1_ctx, pres_tree, hf_pres_CPR_PPDU); break; default: offset = dissect_pres_CPC_type(FALSE, tvb, offset, &asn1_ctx, pres_tree, hf_pres_user_data); break; } return offset; } static int dissect_pres(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data) { int offset = 0, old_offset; struct SESSION_DATA_STRUCTURE* session; session = ((struct SESSION_DATA_STRUCTURE*)data); /* first, try to check length */ /* do we have at least 4 bytes */ if (!tvb_bytes_exist(tvb, 0, 4)) { if (session && session->spdu_type != SES_MAJOR_SYNC_POINT) { proto_tree_add_item(parent_tree, hf_pres_user_data, tvb, offset, tvb_reported_length_remaining(tvb,offset), ENC_NA); return 0; /* no, it isn't a presentation PDU */ } } /* save pointers for calling the acse dissector */ global_tree = parent_tree; global_pinfo = pinfo; /* if the session unit-data packet then we process it */ /* as a connectionless presentation protocol unit data */ if (session && session->spdu_type == CLSES_UNIT_DATA) { proto_tree * clpres_tree = NULL; proto_item *ti; col_set_str(pinfo->cinfo, COL_PROTOCOL, "CL-PRES"); col_clear(pinfo->cinfo, COL_INFO); if (parent_tree) { ti = proto_tree_add_item(parent_tree, proto_clpres, tvb, offset, -1, ENC_NA); clpres_tree = proto_item_add_subtree(ti, ett_pres); } /* dissect the packet */ dissect_UD_type_PDU(tvb, pinfo, clpres_tree, NULL); return tvb_captured_length(tvb); } /* we can't make any additional checking here */ /* postpone it before dissector will have more information */ col_set_str(pinfo->cinfo, COL_PROTOCOL, "PRES"); col_clear(pinfo->cinfo, COL_INFO); if (session && session->spdu_type == SES_MAJOR_SYNC_POINT) { /* This is a reassembly initiated in packet-ses */ char *oid = find_oid_by_pres_ctx_id (pinfo, session->pres_ctx_id); if (oid) { call_ber_oid_callback (oid, tvb, offset, pinfo, parent_tree, session); } else { proto_tree_add_item(parent_tree, hf_pres_user_data, tvb, offset, tvb_reported_length_remaining(tvb,offset), ENC_NA); } return tvb_captured_length(tvb); } while (tvb_reported_length_remaining(tvb, offset) > 0) { old_offset = offset; offset = dissect_ppdu(tvb, offset, pinfo, parent_tree, session); if (offset <= old_offset) { proto_tree_add_expert(parent_tree, pinfo, &ei_pres_invalid_offset, tvb, offset, -1); break; } } return tvb_captured_length(tvb); } /*--- proto_register_pres -------------------------------------------*/ void proto_register_pres(void) { /* List of fields */ static hf_register_info hf[] = { { &hf_pres_CP_type, { "CP-type", "pres.cptype", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }}, { &hf_pres_CPA_PPDU, { "CPA-PPDU", "pres.cpapdu", FT_NONE, BASE_NONE, NULL, 0, NULL, HFILL }}, { &hf_pres_Abort_type, { "Abort type", "pres.aborttype", FT_UINT32, BASE_DEC, VALS(pres_Abort_type_vals), 0, NULL, HFILL }}, { &hf_pres_CPR_PPDU, { "CPR-PPDU", "pres.cprtype", FT_UINT32, BASE_DEC, VALS(pres_CPR_PPDU_vals), 0, NULL, HFILL }}, { &hf_pres_Typed_data_type, { "Typed data type", "pres.Typed_data_type", FT_UINT32, BASE_DEC, VALS(pres_Typed_data_type_vals), 0, NULL, HFILL }}, #include "packet-pres-hfarr.c" }; /* List of subtrees */ static gint *ett[] = { &ett_pres, #include "packet-pres-ettarr.c" }; static ei_register_info ei[] = { { &ei_pres_dissector_not_available, { "pres.dissector_not_available", PI_UNDECODED, PI_WARN, "Dissector is not available", EXPFILL }}, { &ei_pres_wrong_spdu_type, { "pres.wrong_spdu_type", PI_PROTOCOL, PI_WARN, "Internal error:can't get spdu type from session dissector", EXPFILL }}, { &ei_pres_invalid_offset, { "pres.invalid_offset", PI_MALFORMED, PI_ERROR, "Internal error:can't get spdu type from session dissector", EXPFILL }}, }; static uat_field_t users_flds[] = { UAT_FLD_DEC(pres_users,ctx_id,"Context Id","Presentation Context Identifier"), UAT_FLD_CSTRING(pres_users,oid,"Syntax Name OID","Abstract Syntax Name (Object Identifier)"), UAT_END_FIELDS }; uat_t* users_uat = uat_new("PRES Users Context List", sizeof(pres_user_t), "pres_context_list", TRUE, &pres_users, &num_pres_users, UAT_AFFECTS_DISSECTION, /* affects dissection of packets, but not set of named fields */ "ChPresContextList", pres_copy_cb, NULL, pres_free_cb, NULL, NULL, users_flds); expert_module_t* expert_pres; module_t *pres_module; /* Register protocol */ proto_pres = proto_register_protocol(PNAME, PSNAME, PFNAME); register_dissector("pres", dissect_pres, proto_pres); /* Register connectionless protocol (just for the description) */ proto_clpres = proto_register_protocol(CLPNAME, CLPSNAME, CLPFNAME); /* Register fields and subtrees */ proto_register_field_array(proto_pres, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); expert_pres = expert_register_protocol(proto_pres); expert_register_field_array(expert_pres, ei, array_length(ei)); pres_ctx_oid_table = wmem_map_new_autoreset(wmem_epan_scope(), wmem_file_scope(), pres_ctx_oid_hash, pres_ctx_oid_equal); pres_module = prefs_register_protocol(proto_pres, NULL); prefs_register_uat_preference(pres_module, "users_table", "Users Context List", "A table that enumerates user protocols to be used against" " specific presentation context identifiers", users_uat); } /*--- proto_reg_handoff_pres ---------------------------------------*/ void proto_reg_handoff_pres(void) { /* register_ber_oid_dissector("0.4.0.0.1.1.1.1", dissect_pres, proto_pres, "itu-t(0) identified-organization(4) etsi(0) mobileDomain(0) gsm-Network(1) abstractSyntax(1) pres(1) version1(1)"); */ }
C/C++
wireshark/epan/dissectors/asn1/pres/packet-pres-template.h
/* packet-pres.h * Routines for pres packet dissection * * Wireshark - Network traffic analyzer * By Gerald Combs <[email protected]> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef PACKET_PRES_H #define PACKET_PRES_H /*#include "packet-pres-exp.h"*/ extern char *find_oid_by_pres_ctx_id(packet_info *pinfo, guint32 idx); #endif /* PACKET_PRES_H */
Configuration
wireshark/epan/dissectors/asn1/pres/pres.cnf
# pres.cnf # pres conformation file #.IMPORT ../rtse/rtse-exp.cnf #.EXPORTS #.PDU UD-type #.NO_EMIT UDC-type #.TYPE_RENAME CPA-PPDU/normal-mode-parameters T_CPA_PPDU_normal_mode_parameters CPR-PPDU/normal-mode-parameters T_CPR_PPDU_normal_mode_parameters ARU-PPDU/normal-mode-parameters T_ARU_PPDU_normal_mode_parameters #.FIELD_RENAME ARU-PPDU/normal-mode-parameters aRU_PPDU_normal_mode_parameters CPA-PPDU/normal-mode-parameters cPU_PPDU_normal_mode_parameters CPR-PPDU/normal-mode-parameters cPR_PPDU_normal_mode_parameters ARU-PPDU/x400-mode-parameters aRU_PPDU_x400_mode_parameters CPR-PPDU/x400-mode-parameters cPU_PPDU_x400_mode_parameters CPA-PPDU/x410-mode-parameters cPR_PPDU_x400_mode_parameters ARP-PPDU/provider-reason aRU_PPDU_provider-reason CPR-PPDU/normal-mode-parameters/provider-reason cPR_PPDU__provider-reason #.FN_BODY PDV-list/presentation-data-values/single-ASN1-type tvbuff_t *next_tvb; char *oid; oid=find_oid_by_pres_ctx_id(actx->pinfo, presentation_context_identifier); if(oid){ next_tvb = tvb_new_subset_remaining(tvb, offset); call_ber_oid_callback(oid, next_tvb, offset, actx->pinfo, global_tree, actx->private_data); } else { proto_tree_add_expert(tree, actx->pinfo, &ei_pres_dissector_not_available, tvb, offset, -1); } #.FN_BODY PDV-list/presentation-data-values/octet-aligned tvbuff_t *next_tvb; char *oid; oid=find_oid_by_pres_ctx_id(actx->pinfo, presentation_context_identifier); if(oid){ dissect_ber_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index, &next_tvb); call_ber_oid_callback(oid, next_tvb, offset, actx->pinfo, global_tree, actx->private_data); } else { proto_tree_add_expert(tree, actx->pinfo, &ei_pres_dissector_not_available, tvb, offset, -1); %(DEFAULT_BODY)s } #.FN_PARS Abstract-syntax-name FN_VARIANT = _str VAL_PTR = &abstract_syntax_name_oid #.FN_PARS Presentation-context-identifier VAL_PTR = &presentation_context_identifier #.FN_BODY Presentation-context-identifier const char *name; char *oid; struct SESSION_DATA_STRUCTURE* session = (struct SESSION_DATA_STRUCTURE*)actx->private_data; %(DEFAULT_BODY)s if(session) session->pres_ctx_id = presentation_context_identifier; oid = find_oid_by_pres_ctx_id(actx->pinfo, presentation_context_identifier); if(oid && (name = oid_resolved_from_string(actx->pinfo->pool, oid))) { proto_item_append_text(actx->created_item, " (%%s)", name); } #.FN_PARS Abort-reason VAL_PTR = &reason #.FN_BODY Abort-reason guint32 reason; %(DEFAULT_BODY)s col_append_fstr(actx->pinfo->cinfo, COL_INFO, " (%%s)", val_to_str(reason, pres_Abort_reason_vals, "unknown: %%d")); #.FN_HDR Context-list/_item abstract_syntax_name_oid=NULL; #.END #.FN_FTR Context-list/_item register_ctx_id_and_oid(actx->pinfo, presentation_context_identifier, abstract_syntax_name_oid); #.END
ASN.1
wireshark/epan/dissectors/asn1/q932/Addressing-Data-Elements.asn
-- Addressing-Data-Elements.asn -- -- Taken from ITU ASN.1 database -- http://www.itu.int/ITU-T/asn1/database/itu-t/q/q932/1998-Amd1/Addressing-Data-Elements.asn -- -- Module Addressing-Data-Elements (Q.932:05/1998) Addressing-Data-Elements {itu-t recommendation q 932 addressing-data-elements(7)} DEFINITIONS EXPLICIT TAGS ::= BEGIN EXPORTS PresentedAddressScreened, PresentedAddressUnscreened, PresentedNumberScreened, PresentedNumberUnscreened, Address, PartyNumber, PartySubaddress, ScreeningIndicator, PresentationAllowedIndicator; PresentedAddressScreened ::= CHOICE { presentationAlIowedAddress [0] IMPLICIT AddressScreened, presentationRestricted [1] IMPLICIT NULL, numberNotAvailableDueTolnterworking [2] IMPLICIT NULL, presentationRestrictedAddress [3] IMPLICIT AddressScreened } PresentedAddressUnscreened ::= CHOICE { presentationAllowedAddress [0] IMPLICIT Address, presentationRestricted [1] IMPLICIT NULL, numberNotAvailableDueTolnterworking [2] IMPLICIT NULL, presentationRestrictedAddress [3] IMPLICIT Address } PresentedNumberScreened ::= CHOICE { presentationAllowedNumber [0] IMPLICIT NumberScreened, presentationRestricted [1] IMPLICIT NULL, numberNotAvailableDueToInterworking [2] IMPLICIT NULL, presentationRestrictedNumber [3] IMPLICIT NumberScreened } PresentedNumberUnscreened ::= CHOICE { presentationAllowedNumber [0] PartyNumber, presentationRestricted [1] IMPLICIT NULL, numberNotAvailableDueToInterworking [2] IMPLICIT NULL, presentationRestrictedNumber [3] PartyNumber } AddressScreened ::= SEQUENCE { partyNumber PartyNumber, screeninglndicator ScreeningIndicator, partySubaddress PartySubaddress OPTIONAL } NumberScreened ::= SEQUENCE { partyNumber PartyNumber, screeningIndicator ScreeningIndicator } Address ::= SEQUENCE { partyNumber PartyNumber, partySubaddress PartySubaddress OPTIONAL } PartyNumber ::= CHOICE { unknownPartyNumber [0] IMPLICIT NumberDigits, -- the numbering plan is the default numbering plan -- of the network. It is recommended that this value -- is used. publicPartyNumber [1] IMPLICIT PublicPartyNumber, -- the numbering plan is according to ITU-T -- Recommendation E.164. nsapEncodedNumber [2] IMPLICIT NsapEncodedNumber, -- ATM endsystem address encoded as an NSAP address. dataPartyNumber [3] IMPLICIT NumberDigits, -- not used, value reserved. telexPartyNumber [4] IMPLICIT NumberDigits, -- not used, value reserved. privatePartyNumber [5] IMPLICIT PrivatePartyNumber, nationalStandardPartyNumber [8] IMPLICIT NumberDigits } -- not used, value reserved. NsapEncodedNumber ::= OCTET STRING(SIZE (20)) PublicPartyNumber ::= SEQUENCE { publicTypeOfNumber PublicTypeOfNumber, publicNumberDigits NumberDigits } PrivatePartyNumber ::= SEQUENCE { privateTypeOfNumber PrivateTypeOfNumber, privateNumberDigits NumberDigits } NumberDigits ::= NumericString(SIZE (1..20)) PublicTypeOfNumber ::= ENUMERATED { unknown(0), -- if used number digits carry prefix indicating type -- of number according to national -- recommendations internationalNumber(1), nationalNumber(2), networkSpecificNumber(3), -- not used, value reserved subscriberNumber(4), abbreviatedNumber(6)} -- valid only for called party number at the -- outgoing access, network substitutes -- appropriate number PrivateTypeOfNumber ::= ENUMERATED { unknown(0), level2RegionalNumber(1), level1RegionalNumber(2), pTNSpecificNumber(3), localNumber(4), abbreviatedNumber(6)} PartySubaddress ::= CHOICE { userSpecifiedSubaddress UserSpecifiedSubaddress, -- not recommended nSAPSubaddress NSAPSubaddress } -- according to ITU-T Recommendation X.213 UserSpecifiedSubaddress ::= SEQUENCE { subaddressInformation SubaddressInformation, oddCountIndicator BOOLEAN OPTIONAL } -- used when the coding of subaddress is BCD NSAPSubaddress ::= OCTET STRING(SIZE (1..20)) -- specified according to ITU-T Recommendation X.213. Some networks -- may limit the subaddress value to some other -- length, e.g. 4 octets SubaddressInformation ::= OCTET STRING(SIZE (1..20)) -- coded according to user requirements. Some -- networks may limit the subaddress value to some -- other length, e.g. 4 octets ScreeningIndicator ::= ENUMERATED { userProvidedNotScreened(0), -- number was provided by a remote user terminal -- equipment, and has been screened by a -- network that is not the local public or local -- private network. userProvidedVerifiedAndPassed(1), -- number was provided by a remote user terminal -- equipment (or by a remote private network), and -- has been screened by the local public or local -- private network. userProvidedVerifiedAndFailed(2), -- not used, value reserved networkProvided(3)} -- number was provided by local -- public or local -- private network PresentationAllowedIndicator ::= BOOLEAN END -- of addressing data elements -- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D
Text
wireshark/epan/dissectors/asn1/q932/CMakeLists.txt
# CMakeLists.txt # # Wireshark - Network traffic analyzer # By Gerald Combs <[email protected]> # Copyright 1998 Gerald Combs # # SPDX-License-Identifier: GPL-2.0-or-later # set( PROTOCOL_NAME q932 ) set( PROTO_OPT ) set( EXPORT_FILES ${PROTOCOL_NAME}-exp.cnf ) set( EXT_ASN_FILE_LIST ) set( ASN_FILE_LIST Addressing-Data-Elements.asn Network-Facility-Extension.asn Network-Protocol-Profile-component.asn Interpretation-component.asn ) set( EXTRA_DIST ${ASN_FILE_LIST} packet-${PROTOCOL_NAME}-template.c packet-${PROTOCOL_NAME}-template.h ${PROTOCOL_NAME}.cnf ) set( SRC_FILES ${EXTRA_DIST} ${EXT_ASN_FILE_LIST} ) set( A2W_FLAGS -b ) ASN2WRS()
ASN.1
wireshark/epan/dissectors/asn1/q932/Interpretation-component.asn
-- Interpretation-component.asn -- -- Taken from ITU ASN.1 database -- http://www.itu.int/ITU-T/asn1/database/itu-t/q/q932/1998-Amd1/Interpretation-component.asn -- -- Module Interpretation-component (Q.932:05/1998) Interpretation-component {iso(1) standard(0) pss1-generic-procedures(11582) interpretation-component(3)} DEFINITIONS ::= BEGIN EXPORTS InterpretationComponent; InterpretationComponent ::= [11] IMPLICIT ENUMERATED { discardAnyUnrecognisedInvokePdu(0), clearCallIfAnyInvokePduNotRecognised(1), rejectAnyUnrecognisedInvokePdu(2) -- this coding is implied by the absence of an -- Interpretation Component. } END -- component -- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D
ASN.1
wireshark/epan/dissectors/asn1/q932/Network-Facility-Extension.asn
-- Network-Facility-Extension.asn -- -- Taken from ITU ASN.1 database -- http://www.itu.int/ITU-T/asn1/database/itu-t/q/q932/1998-Amd1/Network-Facility-Extension.asn -- -- Module Network-Facility-Extension (Q.932:05/1998) Network-Facility-Extension {iso(1) standard(0) pss1-generic-procedures(11582) network-facility-extension(2)} DEFINITIONS ::= BEGIN EXPORTS NetworkFacilityExtension; IMPORTS PartyNumber FROM Addressing-Data-Elements {itu-t recommendation q 932 addressing-data-elements(7)}; NetworkFacilityExtension ::= [10] IMPLICIT SEQUENCE { sourceEntity [0] IMPLICIT EntityType, sourceEntityAddress [1] AddressInformation OPTIONAL, destinationEntity [2] IMPLICIT EntityType, destinationEntityAddress [3] AddressInformation OPTIONAL } EntityType ::= ENUMERATED {endPINX(0), anyTypeOfPINX(1)} AddressInformation ::= PartyNumber END -- of Network Facility Extension -- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D
ASN.1
wireshark/epan/dissectors/asn1/q932/Network-Protocol-Profile-component.asn
-- Network-Protocol-Profile-component.asn -- -- Taken from ITU ASN.1 database -- http://www.itu.int/ITU-T/asn1/database/itu-t/q/q932/1998-Amd1/Network-Protocol-Profile-component.asn -- -- Module Network-Protocol-Profile-component (Q.932:05/1998) Network-Protocol-Profile-component {iso(1) standard(0) pss1-generic-procedures(11582) network-protocol-profile-component(8)} DEFINITIONS ::= BEGIN EXPORTS NetworkProtocolProfile; NetworkProtocolProfile ::= [18] IMPLICIT INTEGER {acse(19), dse(32)}(0..254) END -- of Network-Protocol-Profile-component -- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D
C
wireshark/epan/dissectors/asn1/q932/packet-q932-template.c
/* packet-q932.c * Routines for Q.932 packet dissection * 2007 Tomas Kukosa * * Wireshark - Network traffic analyzer * By Gerald Combs <[email protected]> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #include <epan/packet.h> #include <epan/expert.h> #include <epan/strutil.h> #include <epan/asn1.h> #include <epan/prefs.h> #include "packet-ber.h" #include "packet-q932.h" #define PNAME "Q.932" #define PSNAME "Q932" #define PFNAME "q932" void proto_register_q932(void); /* Initialize the protocol and registered fields */ static int proto_q932 = -1; static int hf_q932_ie_type = -1; static int hf_q932_ie_len = -1; static int hf_q932_ie_data = -1; static int hf_q932_pp = -1; static int hf_q932_nd = -1; #include "packet-q932-hf.c" /* Initialize the subtree pointers */ static gint ett_q932 = -1; static gint ett_q932_ie = -1; #include "packet-q932-ett.c" static expert_field ei_q932_dse_not_supported = EI_INIT; static expert_field ei_q932_acse_not_supported = EI_INIT; static expert_field ei_q932_unknown_component = EI_INIT; static expert_field ei_q932_asn1_encoded = EI_INIT; /* Preferences */ /* ROSE context */ static rose_ctx_t q932_rose_ctx; dissector_table_t qsig_arg_local_dissector_table; dissector_table_t qsig_res_local_dissector_table; dissector_table_t qsig_err_local_dissector_table; dissector_table_t etsi_arg_local_dissector_table; dissector_table_t etsi_res_local_dissector_table; dissector_table_t etsi_err_local_dissector_table; #define FACILITY_QSIG 0 #define FACILITY_ETSI 1 static gint g_facility_encoding = FACILITY_QSIG; void proto_reg_handoff_q932(void); static dissector_handle_t q932_ie_handle; /* Subdissectors */ static dissector_handle_t q932_ros_handle; #define Q932_IE_EXTENDED_FACILITY 0x0D #define Q932_IE_FACILITY 0x1C #define Q932_IE_NOTIFICATION_INDICATOR 0x27 #define Q932_IE_INFORMATION_REQUEST 0x32 #define Q932_IE_FEATURE_ACTIVATION 0x38 #define Q932_IE_FEATURE_INDICATION 0x39 #define Q932_IE_SERVICE_PROFILE_ID 0x3A #define Q932_IE_ENDPOINT_IDENTIFIER 0x3B static const value_string q932_str_ie_type[] = { { Q932_IE_EXTENDED_FACILITY , "Extended facility" }, { Q932_IE_FACILITY , "Facility" }, { Q932_IE_NOTIFICATION_INDICATOR, "Notification indicator" }, { Q932_IE_INFORMATION_REQUEST, "Information request" }, { Q932_IE_FEATURE_ACTIVATION , "Feature activation" }, { Q932_IE_FEATURE_INDICATION , "Feature indication" }, { Q932_IE_SERVICE_PROFILE_ID , "Service profile identification" }, { Q932_IE_ENDPOINT_IDENTIFIER, "Endpoint identifier" }, { 0, NULL} }; static const value_string str_pp[] = { { 0x11 , "Remote Operations Protocol" }, { 0x12 , "CMIP Protocol" }, { 0x13 , "ACSE Protocol" }, { 0x1F , "Networking extensions" }, { 0, NULL} }; static const value_string str_nd[] = { { 0x00 , "User suspended" }, { 0x01 , "User resume" }, { 0x02 , "Bearer service change" }, { 0x04 , "Call completion delay" }, { 0x03 , "Discriminator for extension to ASN.1 encoded component" }, { 0x40 , "Discriminator for extension to ASN.1 encoded component for ISO" }, { 0x42 , "Conference established" }, { 0x43 , "Conference disconnected" }, { 0x44 , "Other party added" }, { 0x45 , "Isolated" }, { 0x46 , "Reattached" }, { 0x47 , "Other party isolated" }, { 0x48 , "Other party reattached" }, { 0x49 , "Other party split" }, { 0x4A , "Other party disconnected" }, { 0x4B , "Conference floating" }, { 0x4C , "Conference disconnected, pre-emption" }, { 0x4F , "Conference floating, served user pre-empted" }, { 0x60 , "Call is a waiting call" }, { 0x68 , "Diversion activated" }, { 0x69 , "call transferred, alerting" }, { 0x6A , "call transferred, answered" }, { 0x6E , "reverse charging (whole call)" }, { 0x6F , "reverse charging (for the rest of the call)" }, { 0x74 , "service profile update" }, { 0x79 , "Remote hold" }, { 0x7A , "Remote retrieval" }, { 0x7B , "Call is diverting" }, { 0, NULL} }; #include "packet-q932-fn.c" /*--- dissect_q932_facility_ie -------------------------------------------------------*/ static void dissect_q932_facility_ie(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, int length) { gint8 appclass; bool pc; gint32 tag; guint32 len; int hoffset, eoffset; int ie_end; tvbuff_t *next_tvb; ie_end = offset + length; proto_tree_add_item(tree, hf_q932_pp, tvb, offset, 1, ENC_BIG_ENDIAN); offset++; while (offset < ie_end) { hoffset = offset; offset = get_ber_identifier(tvb, offset, &appclass, &pc, &tag); offset = get_ber_length(tvb, offset, &len, NULL); eoffset = offset + len; next_tvb = tvb_new_subset_length(tvb, hoffset, eoffset - hoffset); switch (appclass) { case BER_CLASS_CON: switch (tag) { case 10 : /* Network Facility Extension */ dissect_NetworkFacilityExtension_PDU(next_tvb, pinfo, tree, NULL); break; case 18 : /* Network Protocol Profile */ dissect_NetworkProtocolProfile_PDU(next_tvb, pinfo, tree, NULL); break; case 11 : /* Interpretation Component */ dissect_InterpretationComponent_PDU(next_tvb, pinfo, tree, NULL); break; /* ROSE APDU */ case 1 : /* invoke */ case 2 : /* returnResult */ case 3 : /* returnError */ case 4 : /* reject */ q932_rose_ctx.apdu_depth = 1; call_dissector_with_data(q932_ros_handle, next_tvb, pinfo, tree, &q932_rose_ctx); break; /* DSE APDU */ case 12 : /* begin */ case 14 : /* end */ case 15 : /* continue */ case 17 : /* abort */ offset = dissect_ber_identifier(pinfo, tree, tvb, hoffset, NULL, NULL, NULL); offset = dissect_ber_length(pinfo, tree, tvb, offset, NULL, NULL); proto_tree_add_expert(tree, pinfo, &ei_q932_dse_not_supported, tvb, offset, len); break; default: offset = dissect_ber_identifier(pinfo, tree, tvb, hoffset, NULL, NULL, NULL); offset = dissect_ber_length(pinfo, tree, tvb, offset, NULL, NULL); proto_tree_add_expert(tree, pinfo, &ei_q932_unknown_component, tvb, offset, len); } break; case BER_CLASS_APP: switch (tag) { /* ACSE APDU */ case 0 : /* aarq */ case 1 : /* aare */ case 2 : /* rlrq */ case 3 : /* rlre */ case 4 : /* abrt */ offset = dissect_ber_identifier(pinfo, tree, tvb, hoffset, NULL, NULL, NULL); offset = dissect_ber_length(pinfo, tree, tvb, offset, NULL, NULL); proto_tree_add_expert(tree, pinfo, &ei_q932_acse_not_supported, tvb, offset, len); break; default: offset = dissect_ber_identifier(pinfo, tree, tvb, hoffset, NULL, NULL, NULL); offset = dissect_ber_length(pinfo, tree, tvb, offset, NULL, NULL); proto_tree_add_expert(tree, pinfo, &ei_q932_unknown_component, tvb, offset, len); } break; default: offset = dissect_ber_identifier(pinfo, tree, tvb, hoffset, NULL, NULL, NULL); offset = dissect_ber_length(pinfo, tree, tvb, offset, NULL, NULL); proto_tree_add_expert(tree, pinfo, &ei_q932_unknown_component, tvb, offset, len); } offset = eoffset; } } /*--- dissect_q932_ni_ie -------------------------------------------------------*/ static void dissect_q932_ni_ie(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, int length) { int remain = length; guint8 octet = 0; guint32 value = 0; proto_item* ti; while ((remain > 0) && !(octet & 0x80)) { octet = tvb_get_guint8(tvb, offset++); remain--; value <<= 7; value |= octet & 0x7F; } ti = proto_tree_add_uint(tree, hf_q932_nd, tvb, offset - (length - remain), length - remain, value); if (remain > 0) { expert_add_info(pinfo, ti, &ei_q932_asn1_encoded); } } /*--- dissect_q932_ie -------------------------------------------------------*/ static int dissect_q932_ie(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_) { gint offset; proto_item *ti; proto_tree *ie_tree; guint8 ie_type, ie_len; offset = 0; ti = proto_tree_add_item(tree, proto_q932, tvb, offset, -1, ENC_NA); proto_item_set_hidden(ti); ie_type = tvb_get_guint8(tvb, offset); ie_len = tvb_get_guint8(tvb, offset + 1); ie_tree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_q932_ie, NULL, val_to_str(ie_type, VALS(q932_str_ie_type), "unknown (0x%02X)")); proto_tree_add_item(ie_tree, hf_q932_ie_type, tvb, offset, 1, ENC_BIG_ENDIAN); proto_tree_add_item(ie_tree, hf_q932_ie_len, tvb, offset + 1, 1, ENC_BIG_ENDIAN); offset += 2; if (tvb_reported_length_remaining(tvb, offset) <= 0) return offset; switch (ie_type) { case Q932_IE_FACILITY : dissect_q932_facility_ie(tvb, offset, pinfo, ie_tree, ie_len); break; case Q932_IE_NOTIFICATION_INDICATOR : dissect_q932_ni_ie(tvb, offset, pinfo, ie_tree, ie_len); break; default: if (ie_len > 0) { proto_tree_add_item(ie_tree, hf_q932_ie_data, tvb, offset, ie_len, ENC_NA); } } return tvb_captured_length(tvb); } /*--- dissect_q932_apdu -----------------------------------------------------*/ static int dissect_q932_apdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_) { return call_dissector(q932_ros_handle, tvb, pinfo, tree); } /*--- proto_register_q932 ---------------------------------------------------*/ void proto_register_q932(void) { /* List of fields */ static hf_register_info hf[] = { { &hf_q932_ie_type, { "Type", "q932.ie.type", FT_UINT8, BASE_HEX, VALS(q932_str_ie_type), 0x0, "Information Element Type", HFILL }}, { &hf_q932_ie_len, { "Length", "q932.ie.len", FT_UINT8, BASE_DEC, NULL, 0x0, "Information Element Length", HFILL }}, { &hf_q932_ie_data, { "Data", "q932.ie.data", FT_BYTES, BASE_NONE, NULL, 0x0, NULL, HFILL }}, { &hf_q932_pp, { "Protocol profile", "q932.pp", FT_UINT8, BASE_HEX, VALS(str_pp), 0x1F, NULL, HFILL }}, { &hf_q932_nd, { "Notification description", "q932.nd", FT_UINT8, BASE_HEX, VALS(str_nd), 0x0, NULL, HFILL }}, #include "packet-q932-hfarr.c" }; /* List of subtrees */ static gint *ett[] = { &ett_q932, &ett_q932_ie, #include "packet-q932-ettarr.c" }; static ei_register_info ei[] = { { &ei_q932_dse_not_supported, { "q932.dse_not_supported", PI_UNDECODED, PI_WARN, "DSE APDU (not supported)", EXPFILL }}, { &ei_q932_acse_not_supported, { "q932.acse_not_supported", PI_UNDECODED, PI_WARN, "ACSE APDU (not supported)", EXPFILL }}, { &ei_q932_unknown_component, { "q932.unknown_component", PI_UNDECODED, PI_WARN, "Unknown Component", EXPFILL }}, { &ei_q932_asn1_encoded, { "q932.asn1_encoded", PI_UNDECODED, PI_WARN, "ASN.1 Encoded Data Structure(NOT IMPLEMENTED)", EXPFILL }}, }; module_t *q932_module; expert_module_t* expert_q932; static const enum_val_t facility_encoding[] = { {"Facility as QSIG", "Dissect facility as QSIG", FACILITY_QSIG}, {"Facility as ETSI", "Dissect facility as ETSI", FACILITY_ETSI}, {NULL, NULL, -1} }; /* Register protocol and dissector */ proto_q932 = proto_register_protocol(PNAME, PSNAME, PFNAME); register_dissector("q932.apdu", dissect_q932_apdu, proto_q932); q932_ie_handle = register_dissector("q932.ie", dissect_q932_ie, proto_q932); /* Register fields and subtrees */ proto_register_field_array(proto_q932, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); expert_q932 = expert_register_protocol(proto_q932); expert_register_field_array(expert_q932, ei, array_length(ei)); rose_ctx_init(&q932_rose_ctx); /* Register dissector tables */ q932_rose_ctx.arg_global_dissector_table = register_dissector_table("q932.ros.global.arg", "Q.932 Operation Argument (global opcode)", proto_q932, FT_STRING, STRING_CASE_SENSITIVE); q932_rose_ctx.res_global_dissector_table = register_dissector_table("q932.ros.global.res", "Q.932 Operation Result (global opcode)", proto_q932, FT_STRING, STRING_CASE_SENSITIVE); q932_rose_ctx.err_global_dissector_table = register_dissector_table("q932.ros.global.err", "Q.932 Error (global opcode)", proto_q932, FT_STRING, STRING_CASE_SENSITIVE); qsig_arg_local_dissector_table = register_dissector_table("q932.ros.local.arg", "Q.932 Operation Argument (local opcode)", proto_q932, FT_UINT32, BASE_HEX); qsig_res_local_dissector_table = register_dissector_table("q932.ros.local.res", "Q.932 Operation Result (local opcode)", proto_q932, FT_UINT32, BASE_HEX); qsig_err_local_dissector_table = register_dissector_table("q932.ros.local.err", "Q.932 Error (local opcode)", proto_q932, FT_UINT32, BASE_HEX); etsi_arg_local_dissector_table = register_dissector_table("q932.ros.etsi.local.arg", "Q.932 ETSI Operation Argument (local opcode)", proto_q932, FT_UINT32, BASE_HEX); etsi_res_local_dissector_table = register_dissector_table("q932.ros.etsi.local.res", "Q.932 ETSI Operation Result (local opcode)", proto_q932, FT_UINT32, BASE_HEX); etsi_err_local_dissector_table = register_dissector_table("q932.ros.etsi.local.err", "Q.932 ETSI Error (local opcode)", proto_q932, FT_UINT32, BASE_HEX); q932_module = prefs_register_protocol(proto_q932, proto_reg_handoff_q932); prefs_register_enum_preference(q932_module, "facility_encoding", "Type of Facility encoding", "Type of Facility encoding", &g_facility_encoding, facility_encoding, FALSE); } /*--- proto_reg_handoff_q932 ------------------------------------------------*/ void proto_reg_handoff_q932(void) { static gboolean q931_prefs_initialized = FALSE; if (!q931_prefs_initialized) { /* Facility */ dissector_add_uint("q931.ie", (0x00 << 8) | Q932_IE_FACILITY, q932_ie_handle); /* Notification indicator */ dissector_add_uint("q931.ie", (0x00 << 8) | Q932_IE_NOTIFICATION_INDICATOR, q932_ie_handle); q932_ros_handle = find_dissector_add_dependency("q932.ros", proto_q932); q931_prefs_initialized = TRUE; } if(g_facility_encoding == FACILITY_QSIG){ q932_rose_ctx.arg_local_dissector_table = qsig_arg_local_dissector_table; q932_rose_ctx.res_local_dissector_table = qsig_res_local_dissector_table; q932_rose_ctx.err_local_dissector_table = qsig_err_local_dissector_table; }else{ q932_rose_ctx.arg_local_dissector_table = etsi_arg_local_dissector_table; q932_rose_ctx.res_local_dissector_table = etsi_res_local_dissector_table; q932_rose_ctx.err_local_dissector_table = etsi_err_local_dissector_table; } } /*---------------------------------------------------------------------------*/
C/C++
wireshark/epan/dissectors/asn1/q932/packet-q932-template.h
/* packet-q932.h * Routines for Q.932 packet dissection * 2007 Tomas Kukosa * * Wireshark - Network traffic analyzer * By Gerald Combs <[email protected]> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef PACKET_Q932_H #define PACKET_Q932_H #include "packet-q932-exp.h" #endif /* PACKET_Q932_H */
Configuration
wireshark/epan/dissectors/asn1/q932/q932.cnf
# q932.cnf # Q.932 conformation file # 2007 Tomas Kukosa #.PDU InterpretationComponent NetworkFacilityExtension NetworkProtocolProfile #.EXPORTS EXTERN WS_DLL # Addressing-Data-Elements PresentedAddressScreened PresentedAddressUnscreened PresentedNumberScreened PresentedNumberUnscreened Address PartyNumber PartySubaddress ScreeningIndicator PresentationAllowedIndicator #.FIELD_RENAME # Addressing-Data-Elements PresentedNumberScreened/presentationAllowedNumber presentationAllowedNumberScreened PresentedAddressScreened/presentationRestrictedAddress presentationRestrictedAddressScreened PresentedNumberScreened/presentationRestrictedNumber presentationRestrictedNumberScreened #.END
Text
wireshark/epan/dissectors/asn1/q932-ros/CMakeLists.txt
# CMakeLists.txt # # Wireshark - Network traffic analyzer # By Gerald Combs <[email protected]> # Copyright 1998 Gerald Combs # # SPDX-License-Identifier: GPL-2.0-or-later # set( PROTOCOL_NAME q932-ros ) set( PROTO_OPT -p q932.ros ) set( EXT_ASN_FILE_LIST ../ros/Remote-Operations-Information-Objects.asn ) set( ASN_FILE_LIST Facility-Information-Element-Components.asn ) set( EXTRA_DIST ${ASN_FILE_LIST} packet-${PROTOCOL_NAME}-template.c ${PROTOCOL_NAME}.cnf ) set( SRC_FILES ${EXTRA_DIST} ${EXT_ASN_FILE_LIST} ) set( A2W_FLAGS -b ) set( EXTRA_CNF ../ros/ros-inv.cnf ../ros/ros-res.cnf ../ros/ros-err.cnf ../ros/ros-rej.cnf ) ASN2WRS()
ASN.1
wireshark/epan/dissectors/asn1/q932-ros/Facility-Information-Element-Components.asn
-- Facility-Information-Element-Components.asn -- -- Taken from ITU ASN.1 database -- http://www.itu.int/ITU-T/asn1/database/itu-t/q/q932/1998-Amd1/Facility-Information-Element-Components.asn -- -- Module Facility-Information-Element-Components (Q.932:05/1998) Facility-Information-Element-Components {itu-t recommendation q 932 facility-information-element-component(3)} DEFINITIONS IMPLICIT TAGS ::= BEGIN -- exports everything IMPORTS OPERATION, ERROR FROM Remote-Operations-Information-Objects {joint-iso-itu-t remote-operations(4) informationObjects(5) version1(0)}; ROS{InvokeId:InvokeIdSet, OPERATION:Invokable, OPERATION:Returnable} ::= CHOICE { invoke [1] Invoke{{InvokeIdSet}, {Invokable}}, returnResult [2] ReturnResult{{Returnable}}, returnError [3] ReturnError{{Errors {{Returnable}}}}, reject [4] Reject } (CONSTRAINED BY { -- must conform to the above definition --} ! RejectProblem:general-unrecognizedPDU) Invoke{InvokeId:InvokeIdSet, OPERATION:Operations} ::= SEQUENCE { invokeId InvokeId(InvokeIdSet) (CONSTRAINED BY {-- must be unambiguous -- } ! RejectProblem:invoke-duplicateInvocation), linkedId CHOICE {present [0] IMPLICIT present < InvokeId, absent [1] IMPLICIT NULL } (CONSTRAINED BY { -- must identify an outstanding operation --} ! RejectProblem:invoke-unrecognizedLinkedId) (CONSTRAINED BY { -- which has one or more linked operations--} ! RejectProblem:invoke-linkedResponseUnexpected) OPTIONAL, opcode OPERATION.&operationCode ({Operations} !RejectProblem:invoke-unrecognizedOperation), argument OPERATION.&ArgumentType ({Operations}{@opcode} !RejectProblem:invoke-mistypedArgument) OPTIONAL } (CONSTRAINED BY { -- must conform to the above definition --} ! RejectProblem:general-mistypedPDU) (WITH COMPONENTS { ..., linkedId ABSENT } | WITH COMPONENTS { ..., linkedId PRESENT, opcode (CONSTRAINED BY { -- must be in the &Linked field of the associated operation -- } !RejectProblem:invoke-unexpectedLinkedOperation) }) ReturnResult{OPERATION:Operations} ::= SEQUENCE { invokeId InvokeId (CONSTRAINED BY {-- must be that for an outstanding operation -- } ! RejectProblem:returnResult-unrecognizedInvocation) (CONSTRAINED BY {--which returns a result -- } ! RejectProblem:returnResult-resultResponseUnexpected), result SEQUENCE {opcode OPERATION.&operationCode ({Operations} ! RejectProblem:returnResult-unrecognizedInvocation), result OPERATION.&ResultType ({Operations}{@.opcode} ! RejectProblem:returnResult-mistypedResult)} OPTIONAL } (CONSTRAINED BY { -- must conform to the above definition --} ! RejectProblem:general-mistypedPDU) ReturnError{ERROR:Errors} ::= SEQUENCE { invokeId InvokeId (CONSTRAINED BY {-- must be that for an outstanding operation -- } ! RejectProblem:returnError-unrecognizedInvocation) (CONSTRAINED BY {-- which returns an error -- } ! RejectProblem:returnError-errorResponseUnexpected), errcode ERROR.&errorCode({Errors} !RejectProblem:returnError-unrecognizedError) (CONSTRAINED BY {--must be in the &Errors field of the associated operation -- } !RejectProblem:returnError-unexpectedError), parameter ERROR.&ParameterType ({Errors}{@errcode} !RejectProblem:returnError-mistypedParameter) OPTIONAL } (CONSTRAINED BY { -- must conform to the above definition --} ! RejectProblem:general-mistypedPDU) Reject ::= SEQUENCE { invokeId InvokeId, problem CHOICE {general [0] GeneralProblem, invoke [1] InvokeProblem, returnResult [2] ReturnResultProblem, returnError [3] ReturnErrorProblem} } (CONSTRAINED BY { -- must conform to the above definition --} ! RejectProblem:general-mistypedPDU) GeneralProblem ::= INTEGER { unrecognizedComponent(0), mistypedComponent(1), badlyStructuredComponent(2) } InvokeProblem ::= INTEGER { duplicateInvocation(0), unrecognizedOperation(1), mistypedArgument(2), resourceLimitation(3), releaseInProgress(4), unrecognizedLinkedId(5), linkedResponseUnexpected(6), unexpectedLinkedOperation(7)} ReturnResultProblem ::= INTEGER { unrecognizedInvocation(0), resultResponseUnexpected(1), mistypedResult(2) } ReturnErrorProblem ::= INTEGER { unrecognizedInvocation(0), errorResponseUnexpected(1), unrecognizedError(2), unexpectedError(3), mistypedParameter(4)} RejectProblem ::= INTEGER { general-unrecognizedPDU(0), general-mistypedPDU(1), general-badlyStructuredPDU(2), invoke-duplicateInvocation(10), invoke-unrecognizedOperation(11), invoke-mistypedArgument(12), invoke-resourceLimitation(13), invoke-releaseInProgress(14), invoke-unrecognizedLinkedId(15), invoke-linkedResponseUnexpected(16), invoke-unexpectedLinkedOperation(17), returnResult-unrecognizedInvocation(20), returnResult-resultResponseUnexpected(21), returnResult-mistypedResult(22), returnError-unrecognizedInvocation(30), returnError-errorResponseUnexpected(31), returnError-unrecognizedError(32), returnError-unexpectedError(33), returnError-mistypedParameter(34)} InvokeId ::= CHOICE {present INTEGER, absent NULL } noInvokeId InvokeId ::= absent:NULL NoInvokeId InvokeId ::= {noInvokeId} Errors{OPERATION:Operations} ERROR ::= {Operations.&Errors} -- the Range of the Invoke-Id's must be restricted to -32768..32767 Components{OPERATION:Invokable, OPERATION:Returnable} ::= CHOICE { gfpROS ROS{{GFPInvokeIDSet}, {Invokable}, {Returnable}} } GFPInvokeIDSet ::= InvokeId(WITH COMPONENTS { present (-32768..32767) }) END -- end of generic ROS PDU definitions -- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D
C
wireshark/epan/dissectors/asn1/q932-ros/packet-q932-ros-template.c
/* packet-q932-ros.c * Routines for Q.932 packet dissection * 2007 Tomas Kukosa * * Wireshark - Network traffic analyzer * By Gerald Combs <[email protected]> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #include <epan/packet.h> #include <epan/strutil.h> #include <epan/asn1.h> #include <epan/expert.h> #include "packet-ber.h" #define PNAME "Q.932 Operations Service Element" #define PSNAME "Q932.ROS" #define PFNAME "q932.ros" void proto_register_q932_ros(void); void proto_reg_handoff_q932_ros(void); /* Initialize the protocol and registered fields */ static int proto_q932_ros = -1; #include "packet-q932-ros-hf.c" /* Initialize the subtree pointers */ #include "packet-q932-ros-ett.c" static expert_field ei_ros_undecoded = EI_INIT; /* Preferences */ /* Subdissectors */ static dissector_handle_t data_handle = NULL; /* Global variables */ static rose_ctx_t *rose_ctx_tmp; static guint32 problem_val; static gchar problem_str[64]; static tvbuff_t *arg_next_tvb, *res_next_tvb, *err_next_tvb; #include "packet-q932-ros-fn.c" /*--- dissect_q932_ros -----------------------------------------------------*/ static int dissect_q932_ros(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) { /* Reject the packet if data is NULL */ if (data == NULL) return 0; rose_ctx_tmp = get_rose_ctx(data); DISSECTOR_ASSERT(rose_ctx_tmp); return dissect_ROS_PDU(tvb, pinfo, tree, NULL); } /*--- proto_register_q932_ros -----------------------------------------------*/ void proto_register_q932_ros(void) { /* List of fields */ static hf_register_info hf[] = { #include "packet-q932-ros-hfarr.c" }; /* List of subtrees */ static gint *ett[] = { #include "packet-q932-ros-ettarr.c" }; static ei_register_info ei[] = { { &ei_ros_undecoded, { "q932.ros.undecoded", PI_UNDECODED, PI_WARN, "Undecoded", EXPFILL }}, }; expert_module_t* expert_q932_ros; /* Register protocol and dissector */ proto_q932_ros = proto_register_protocol(PNAME, PSNAME, PFNAME); proto_set_cant_toggle(proto_q932_ros); /* Register fields and subtrees */ proto_register_field_array(proto_q932_ros, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); expert_q932_ros = expert_register_protocol(proto_q932_ros); expert_register_field_array(expert_q932_ros, ei, array_length(ei)); register_dissector(PFNAME, dissect_q932_ros, proto_q932_ros); } /*--- proto_reg_handoff_q932_ros --------------------------------------------*/ void proto_reg_handoff_q932_ros(void) { data_handle = find_dissector("data"); } /*---------------------------------------------------------------------------*/
Configuration
wireshark/epan/dissectors/asn1/q932-ros/q932-ros.cnf
#.PDU ROS #.OMIT_ASSIGNMENT Priority RejectProblem Components GFPInvokeIDSet #.TYPE_RENAME Invoke/argument InvokeArgument ReturnResult/result/result ResultArgument #.FIELD_RENAME Invoke/linkedId/present linkedIdPresent Reject/problem/invoke invokeProblem Reject/problem/returnError returnErrorProblem Reject/problem/returnResult returnResultProblem ReturnResult/result/result resultArgument #--- ROS --- #.FN_HDR ROS /* will be moved to ROS_PDU when PDU function can be alternated from conformance file */ actx->rose_ctx = rose_ctx_tmp; rose_ctx_clean_data(actx->rose_ctx); #.END #--- Code --- #.FN_PARS Code VAL_PTR = &%(ACTX)s->rose_ctx->d.code Code/local VAL_PTR = &%(ACTX)s->rose_ctx->d.code_local Code/global FN_VARIANT = _str VAL_PTR = &%(ACTX)s->rose_ctx->d.code_global #.FN_FTR Code actx->rose_ctx->d.code_item = actx->created_item; #.END #--- Problem --- #.FN_PARS GeneralProblem VAL_PTR = &problem_val InvokeProblem VAL_PTR = &problem_val ReturnResultProblem VAL_PTR = &problem_val ReturnErrorProblem VAL_PTR = &problem_val #.FN_FTR GeneralProblem (void) g_strlcpy(problem_str, val_to_str_const(problem_val, VALS(q932_ros_GeneralProblem_vals), ""), 64); #.FN_FTR InvokeProblem (void) g_strlcpy(problem_str, val_to_str_const(problem_val, VALS(q932_ros_InvokeProblem_vals), ""), 64); #.FN_FTR ReturnResultProblem (void) g_strlcpy(problem_str, val_to_str_const(problem_val, VALS(q932_ros_ReturnResultProblem_vals), ""), 64); #.FN_FTR ReturnErrorProblem (void) g_strlcpy(problem_str, val_to_str_const(problem_val, VALS(q932_ros_ReturnErrorProblem_vals), ""), 64); #.END #--- INVOKE --- #.FIELD_ATTR Invoke/argument TYPE = FT_BYTES DISPLAY = BASE_NONE #.FN_BODY Invoke/argument gint len; len = tvb_reported_length_remaining(tvb, offset); if (len) proto_tree_add_item(tree, hf_index, tvb, offset, len, ENC_NA); arg_next_tvb = tvb_new_subset_remaining(tvb, offset); offset += tvb_reported_length_remaining(tvb, offset); #.END #.INCLUDE ../ros/ros-inv.cnf #--- RETURN RESULT --- #.FIELD_ATTR ReturnResult/result/result TYPE = FT_BYTES DISPLAY = BASE_NONE #.FN_BODY ReturnResult/result/result gint len; len = tvb_reported_length_remaining(tvb, offset); if (len) proto_tree_add_item(tree, hf_index, tvb, offset, len, ENC_NA); res_next_tvb = tvb_new_subset_remaining(tvb, offset); offset += tvb_reported_length_remaining(tvb, offset); #.END #.INCLUDE ../ros/ros-res.cnf #--- RETURN ERROR --- #.FIELD_ATTR ReturnError/parameter TYPE = FT_BYTES DISPLAY = BASE_NONE #.FN_BODY ReturnError/parameter gint len; len = tvb_reported_length_remaining(tvb, offset); if (len) proto_tree_add_item(tree, hf_index, tvb, offset, len, ENC_NA); err_next_tvb = tvb_new_subset_remaining(tvb, offset); offset += tvb_reported_length_remaining(tvb, offset); #.END #.INCLUDE ../ros/ros-err.cnf #--- REJECT --- #.INCLUDE ../ros/ros-rej.cnf
Text
wireshark/epan/dissectors/asn1/qsig/CMakeLists.txt
# CMakeLists.txt # # Wireshark - Network traffic analyzer # By Gerald Combs <[email protected]> # Copyright 1998 Gerald Combs # # SPDX-License-Identifier: GPL-2.0-or-later # set( PROTOCOL_NAME qsig ) set( PROTO_OPT _EMPTY_ ) set( EXPORT_FILES ${PROTOCOL_NAME}-exp.cnf ) set( EXT_ASN_FILE_LIST ) set( ASN_FILE_LIST General-Error-List.asn qsig-gf-ext.asn qsig-gf-gp.asn qsig-gf-ade.asn QSIG-NA.asn QSIG-CF.asn QSIG-PR.asn QSIG-CT.asn QSIG-CC.asn QSIG-CO.asn QSIG-DND.asn QSIG-CI.asn QSIG-AOC.asn QSIG-RE.asn SYNC-SIG.asn QSIG-CINT.asn QSIG-CMN.asn QSIG-CPI.asn QSIG-PUMR.asn QSIG-PUMCH.asn QSIG-SSCT.asn QSIG-WTMLR.asn QSIG-WTMCH.asn QSIG-WTMAU.asn QSIG-SD.asn QSIG-CIDL.asn QSIG-SMS.asn QSIG-MCR.asn QSIG-MCM.asn QSIG-MID.asn ) set( EXTRA_DIST ${ASN_FILE_LIST} packet-${PROTOCOL_NAME}-template.c packet-${PROTOCOL_NAME}-template.h ${PROTOCOL_NAME}.cnf ) set( SRC_FILES ${EXTRA_DIST} ${EXT_ASN_FILE_LIST} ) set( A2W_FLAGS ) ASN2WRS()
ASN.1
wireshark/epan/dissectors/asn1/qsig/General-Error-List.asn
-- Module General-Error-List (Q.950:06/2000) -- See also ITU-T Q.950 (06/2000) -- See also the index of all ASN.1 assignments needed in this document -- General-Error-List {itu-t recommendation q 950 general-error-list(1)} DEFINITIONS ::= BEGIN EXPORTS userNotSubscribed, rejectedByNetwork, rejectedByUser, notAvailable, insufficientInformation, invalidServedUserNr, invalidCallState, basicServiceNotProvided, notIncomingCall, supplementaryServiceInteractionNotAllowed, resourceUnavailable, callFailure, proceduralError; IMPORTS ERROR FROM Remote-Operations-Information-Objects {joint-iso-itu-t remote-operations(4) informationObjects(5) version1(0)}; userNotSubscribed ERROR ::= {CODE local:0 } -- is an indication that the user has not subscribed to this service. rejectedByNetwork ERROR ::= {CODE local:1 } -- is an indication that the requested service is rejected by the network. rejectedByUser ERROR ::= {CODE local:2 } -- is an indication that the requested service is provided by the network but that the remote user has rejected this -- service request. notAvailable ERROR ::= {CODE local:3 } -- is an indication that the user has subscribed to this service but the requested service is not available combined -- with the basic service or the other services (e.g. operation). insufficientInformation ERROR ::= {CODE local:5 } -- is an indication that the content of operation argument is incomplete, or absent entirely. invalidServedUserNr ERROR ::= {CODE local:6 } -- is an indication that the requested service cannot be performed because of the usage of an invalid served user -- number. invalidCallState ERROR ::= {CODE local:7 } -- is an indication that no match exists between the service request and the valid Basic, Call Control State; this -- applies also to invalid auxiliary states or an invalid combination of Basic call states and auxiliary states. basicServiceNotProvided ERROR ::= {CODE local:8 } -- is an indication that the service request is directed to a Basic Service which is not provided (e.g. this return -- error value is used when a supplementary service is invoked with a SETUP message). notIncomingCall ERROR ::= {CODE local:9 } -- is an indication that the service request has been invoked for an outgoing call, which is not permitted for that -- service. supplementaryServiceInteractionNotAllowed ERROR ::= {CODE local:10 } -- is an indication that the service request is not permitted in combination with either a further requested or active -- supplementary service. resourceUnavailable ERROR ::= {CODE local:11 } -- is an indication that the service provider has temporarily no resource available for the provision of the -- requested service. callFailure ERROR ::= {CODE local:25 } -- is an indication that the requested supplementary service was not executable by virtue of a Basic Call Failure. proceduralError ERROR ::= {CODE local:43 } -- is an indication that a transport message (e.g. SETUP, REGISTER etc.) is received which has one or more -- operation PDUs which have a valid content but which are not specified as valid information content of the -- transport message used. END
C
wireshark/epan/dissectors/asn1/qsig/packet-qsig-template.c
/* packet-qsig.c * Routines for QSIG packet dissection * 2007 Tomas Kukosa * * Wireshark - Network traffic analyzer * By Gerald Combs <[email protected]> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #include <epan/packet.h> #include <epan/expert.h> #include <epan/strutil.h> #include <epan/asn1.h> #include <wsutil/strtoi.h> #include "packet-ber.h" #include "packet-qsig.h" #define PNAME "QSIG" #define PSNAME "QSIG" #define PFNAME "qsig" /* Shifted codeset values */ #define CS0 0x000 #define CS1 0x100 #define CS2 0x200 #define CS3 0x300 #define CS4 0x400 #define CS5 0x500 #define CS6 0x600 #define CS7 0x700 #define QSIG_IE_TRANSIT_COUNTER 0x31 #define QSIG_IE_PARTY_CATEGORY 0x32 void proto_register_qsig(void); void proto_reg_handoff_qsig(void); static dissector_handle_t qsig_arg_handle; static dissector_handle_t qsig_res_handle; static dissector_handle_t qsig_err_handle; static dissector_handle_t qsig_ie4_handle; static dissector_handle_t qsig_ie5_handle; static const value_string qsig_str_ie_type_cs4[] = { { QSIG_IE_TRANSIT_COUNTER , "Transit counter" }, { 0, NULL} }; static const value_string qsig_str_ie_type_cs5[] = { { QSIG_IE_PARTY_CATEGORY , "Party category" }, { 0, NULL} }; /* Codeset array */ static const value_string *qsig_str_ie_type[] = { NULL, NULL, NULL, NULL, qsig_str_ie_type_cs4, qsig_str_ie_type_cs5, NULL, NULL, }; static const value_string qsig_str_pc[] = { { 0x00 , "unknown" }, { 0x01 , "extension" }, { 0x02 , "operator" }, { 0x03 , "emergency extension" }, { 0, NULL} }; static const value_string qsig_str_service[] = { { 13868, "QSIG-NA" }, { 13873, "QSIG-CF" }, { 13874, "QSIG-PR" }, { 13869, "QSIG-CT" }, { 13870, "QSIG-CC" }, { 14843, "QSIG-CO" }, { 14844, "QSIG-DND(O)" }, { 14846, "QSIG-CI" }, { 15050, "QSIG-AOC" }, { 15052, "QSIG-RE" }, { 15054, "QSIG-CINT" }, { 15506, "QSIG-MWI" }, { 15507, "SYNC-SIG" }, { 15772, "QSIG-CMN" }, { 15992, "QSIG-CPI(P)" }, { 17876, "QSIG-PUMR" }, { 17878, "QSIG-PUMCH" }, { 19460, "QSIG-SSCT" }, { 15429, "QSIG-WTMLR" }, { 15431, "QSIG-WTMCH" }, { 15433, "QSIG-WTMAU" }, { 21407, "QSIG-SD" }, { 21889, "QSIG-CIDL" }, { 325, "QSIG-SMS" }, { 344, "QSIG-MCR" }, { 3471, "QSIG-MCM" }, { 3472, "QSIG-MID" }, { 0, NULL} }; static const value_string qsig_str_service_name[] = { { 13868, "Name-Operations" }, { 13873, "Call-Diversion-Operations" }, { 13874, "Path-Replacement-Operations" }, { 13869, "Call-Transfer-Operations" }, { 13870, "SS-CC-Operations" }, { 14843, "Call-Offer-Operations" }, { 14844, "Do-Not-Disturb-Operations" }, { 14846, "Call-Intrusion-Operations" }, { 15050, "SS-AOC-Operation" }, { 15052, "Recall-Operation" }, { 15054, "Call-Interception-Operations" }, { 15506, "SS-MWI-Operations" }, { 15507, "Synchronization-Operations" }, { 15772, "Common-Information-Operations" }, { 15992, "Call-Interruption-Operation" }, { 17876, "PUM-Registration-Operation" }, { 17878, "Private-User-Mobility-Call-Handling-Operations" }, { 19460, "Single-Step-Call-Transfer-Operations" }, { 15429, "WTM-Location-Registration-Operations" }, { 15431, "Wireless-Terminal-Call-Handling-Operations" }, { 15433, "WTM-Authentication-Operations" }, { 21407, "SS-SD-Operations" }, { 21889, "Call-Identification-and-Call-Linkage-Operations" }, { 325, "Short-Message-Service-Operations" }, { 344, "SS-MCR-Operations" }, { 3471, "SS-MCM-Operations" }, { 3472, "SS-MID-Operations" }, { 0, NULL} }; #define NO_SRV (-1) static const gint32 op2srv_tab[] = { /* 0 */ 13868, /* 1 */ 13868, /* 2 */ 13868, /* 3 */ 13868, /* 4 */ 13874, /* 5 */ 13874, /* 6 */ 13874, /* 7 */ 13869, /* 8 */ 13869, /* 9 */ 13869, /* 10 */ 13869, /* 11 */ 13869, /* 12 */ 13869, /* 13 */ 13869, /* 14 */ 13869, /* 15 */ 13873, /* 16 */ 13873, /* 17 */ 13873, /* 18 */ 13873, /* 19 */ 13873, /* 20 */ 13873, /* 21 */ 13873, /* 22 */ 13873, /* 23 */ 13873, /* 24 */ NO_SRV, /* 25 */ NO_SRV, /* 26 */ NO_SRV, /* 27 */ 13870, /* 28 */ 13870, /* 29 */ 13870, /* 30 */ 13870, /* 31 */ 13870, /* 32 */ 13870, /* 33 */ 13870, /* 34 */ 14843, /* 35 */ 14844, /* 36 */ 14844, /* 37 */ 14844, /* 38 */ 14844, /* 39 */ 14844, /* 40 */ 13870, /* 41 */ 90001, /* 42 */ 90001, /* 43 */ 14846, /* 44 */ 14846, /* 45 */ 14846, /* 46 */ 14846, /* 47 */ 14846, /* 48 */ 14846, /* 49 */ 90001, /* 50 */ 15429, /* 51 */ 15429, /* 52 */ 15429, /* 53 */ 15429, /* 54 */ 15431, /* 55 */ 15431, /* 56 */ 15431, /* 57 */ 15052, /* 58 */ 15052, /* 59 */ 15050, /* 60 */ 15050, /* 61 */ 15050, /* 62 */ 15050, /* 63 */ 15050, /* 64 */ 15050, /* 65 */ 15050, /* 66 */ 15054, /* 67 */ 15054, /* 68 */ 15054, /* 69 */ 15054, /* 70 */ 15054, /* 71 */ 15431, /* 72 */ 15433, /* 73 */ 15433, /* 74 */ 15433, /* 75 */ 15433, /* 76 */ 15433, /* 77 */ 15433, /* 78 */ 15507, /* 79 */ 15507, /* 80 */ 3471, /* 81 */ 3471, /* 82 */ 3471, /* 83 */ NO_SRV, /* 84 */ 15772, /* 85 */ 15772, /* 86 */ 13874, /* 87 */ 15992, /* 88 */ 15992, /* 89 */ 17876, /* 90 */ 17876, /* 91 */ 17876, /* 92 */ 17876, /* 93 */ 17878, /* 94 */ 17878, /* 95 */ 17878, /* 96 */ 17878, /* 97 */ 15429, /* 98 */ 15429, /* 99 */ 19460, /* 100 */ 19460, /* 101 */ 19460, /* 102 */ 19460, /* 103 */ 21407, /* 104 */ 21407, /* 105 */ 21889, /* 106 */ 21889, /* 107 */ 325, /* 108 */ 325, /* 109 */ 325, /* 110 */ 325, /* 111 */ 325, /* 112 */ 344, /* 113 */ 344, /* 114 */ 344, /* 115 */ 3471, /* 116 */ 3471, /* 117 */ 3471, /* 118 */ 3471, /* 119 */ 3472, /* 120 */ 3472, }; static const value_string qsig_str_operation[] = { #include "packet-qsig-table10.c" { 0, NULL} }; static const value_string qsig_str_error[] = { #include "packet-qsig-table20.c" { 0, NULL} }; /* Initialize the protocol and registered fields */ static int proto_qsig = -1; static int hf_qsig_operation = -1; static int hf_qsig_service = -1; static int hf_qsig_error = -1; static int hf_qsig_ie_type = -1; static int hf_qsig_ie_type_cs4 = -1; static int hf_qsig_ie_type_cs5 = -1; static int hf_qsig_ie_len = -1; static int hf_qsig_ie_data = -1; static int hf_qsig_tc = -1; static int hf_qsig_pc = -1; #include "packet-qsig-hf.c" static int *hf_qsig_ie_type_arr[] = { NULL, NULL, NULL, NULL, &hf_qsig_ie_type_cs4, &hf_qsig_ie_type_cs5, NULL, NULL, }; /* Initialize the subtree pointers */ static gint ett_qsig = -1; static gint ett_qsig_ie = -1; static gint ett_qsig_unknown_extension = -1; #include "packet-qsig-ett.c" static gint ett_cnq_PSS1InformationElement = -1; /* static expert_field ei_qsig_unsupported_arg_type = EI_INIT; */ static expert_field ei_qsig_unsupported_result_type = EI_INIT; static expert_field ei_qsig_unsupported_error_type = EI_INIT; /* Preferences */ /* Subdissectors */ static dissector_handle_t q931_ie_handle = NULL; /* Global variables */ static const char *extension_oid = NULL; /* Dissector tables */ static dissector_table_t extension_dissector_table; #include "packet-qsig-fn.c" typedef struct _qsig_op_t { gint32 opcode; dissector_t arg_pdu; dissector_t res_pdu; } qsig_op_t; static const qsig_op_t qsig_op_tab[] = { #include "packet-qsig-table11.c" }; typedef struct _qsig_err_t { gint32 errcode; dissector_t err_pdu; } qsig_err_t; static const qsig_err_t qsig_err_tab[] = { #include "packet-qsig-table21.c" }; static const qsig_op_t *get_op(gint32 opcode) { int i; /* search from the end to get the last occurrence if the operation is redefined in some newer specification */ for (i = array_length(qsig_op_tab) - 1; i >= 0; i--) if (qsig_op_tab[i].opcode == opcode) return &qsig_op_tab[i]; return NULL; } static gint32 get_service(gint32 opcode) { if ((opcode < 0) || (opcode >= (int)array_length(op2srv_tab))) return NO_SRV; return op2srv_tab[opcode]; } static const qsig_err_t *get_err(gint32 errcode) { int i; /* search from the end to get the last occurrence if the operation is redefined in some newer specification */ for (i = array_length(qsig_err_tab) - 1; i >= 0; i--) if (qsig_err_tab[i].errcode == errcode) return &qsig_err_tab[i]; return NULL; } /*--- dissect_qsig_arg ------------------------------------------------------*/ static int dissect_qsig_arg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) { int offset = 0; rose_ctx_t *rctx; gint32 opcode = 0, service, oid_num; const qsig_op_t *op_ptr = NULL; const gchar *p, *oid; proto_item *ti, *ti_tmp; proto_tree *qsig_tree; /* Reject the packet if data is NULL */ if (data == NULL) return 0; rctx = get_rose_ctx(data); DISSECTOR_ASSERT(rctx); if (rctx->d.pdu != 1) /* invoke */ return offset; if (rctx->d.code == 0) { /* local */ opcode = rctx->d.code_local; op_ptr = get_op(opcode); } else if (rctx->d.code == 1) { /* global */ oid = g_strrstr(rctx->d.code_global, "."); if (oid != NULL) { if (ws_strtou32(oid+1, NULL, &oid_num)) op_ptr = get_op(oid_num); } if (op_ptr) opcode = op_ptr->opcode; } else { return offset; } if (!op_ptr) return offset; service = get_service(opcode); ti = proto_tree_add_item(tree, proto_qsig, tvb, offset, tvb_captured_length(tvb), ENC_NA); qsig_tree = proto_item_add_subtree(ti, ett_qsig); proto_tree_add_uint(qsig_tree, hf_qsig_operation, tvb, 0, 0, opcode); p = try_val_to_str(opcode, VALS(qsig_str_operation)); if (p) { proto_item_append_text(ti, ": %s", p); proto_item_append_text(rctx->d.code_item, " - %s", p); if (rctx->apdu_depth >= 0) proto_item_append_text(proto_item_get_parent_nth(proto_tree_get_parent(tree), rctx->apdu_depth), " %s", p); } ti_tmp = proto_tree_add_uint(qsig_tree, hf_qsig_service, tvb, 0, 0, service); p = try_val_to_str(service, VALS(qsig_str_service_name)); if (p) proto_item_append_text(ti_tmp, " - %s", p); if (op_ptr->arg_pdu) offset = op_ptr->arg_pdu(tvb, pinfo, qsig_tree, NULL); else if (tvb_reported_length_remaining(tvb, offset) > 0) { proto_tree_add_expert(tree, pinfo, &ei_qsig_unsupported_error_type, tvb, offset, -1); offset += tvb_captured_length_remaining(tvb, offset); } return offset; } /*--- dissect_qsig_res -------------------------------------------------------*/ static int dissect_qsig_res(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) { gint offset = 0; rose_ctx_t *rctx; gint32 opcode, service; const qsig_op_t *op_ptr; const gchar *p; proto_item *ti, *ti_tmp; proto_tree *qsig_tree; /* Reject the packet if data is NULL */ if (data == NULL) return 0; rctx = get_rose_ctx(data); DISSECTOR_ASSERT(rctx); if (rctx->d.pdu != 2) /* returnResult */ return offset; if (rctx->d.code != 0) /* local */ return offset; opcode = rctx->d.code_local; op_ptr = get_op(opcode); if (!op_ptr) return offset; service = get_service(opcode); ti = proto_tree_add_item(tree, proto_qsig, tvb, offset, tvb_captured_length(tvb), ENC_NA); qsig_tree = proto_item_add_subtree(ti, ett_qsig); proto_tree_add_uint(qsig_tree, hf_qsig_operation, tvb, 0, 0, opcode); p = try_val_to_str(opcode, VALS(qsig_str_operation)); if (p) { proto_item_append_text(ti, ": %s", p); proto_item_append_text(rctx->d.code_item, " - %s", p); if (rctx->apdu_depth >= 0) proto_item_append_text(proto_item_get_parent_nth(proto_tree_get_parent(tree), rctx->apdu_depth), " %s", p); } ti_tmp = proto_tree_add_uint(qsig_tree, hf_qsig_service, tvb, 0, 0, service); p = try_val_to_str(service, VALS(qsig_str_service_name)); if (p) proto_item_append_text(ti_tmp, " - %s", p); if (op_ptr->res_pdu) offset = op_ptr->res_pdu(tvb, pinfo, qsig_tree, NULL); else if (tvb_reported_length_remaining(tvb, offset) > 0) { proto_tree_add_expert(tree, pinfo, &ei_qsig_unsupported_result_type, tvb, offset, -1); offset += tvb_captured_length_remaining(tvb, offset); } return offset; } /*--- dissect_qsig_err ------------------------------------------------------*/ static int dissect_qsig_err(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) { int offset = 0; rose_ctx_t *rctx; gint32 errcode; const qsig_err_t *err_ptr; const gchar *p; proto_item *ti; proto_tree *qsig_tree; /* Reject the packet if data is NULL */ if (data == NULL) return 0; rctx = get_rose_ctx(data); DISSECTOR_ASSERT(rctx); if (rctx->d.pdu != 3) /* returnError */ return offset; if (rctx->d.code != 0) /* local */ return offset; errcode = rctx->d.code_local; err_ptr = get_err(errcode); if (!err_ptr) return offset; ti = proto_tree_add_item(tree, proto_qsig, tvb, offset, tvb_captured_length(tvb), ENC_NA); qsig_tree = proto_item_add_subtree(ti, ett_qsig); proto_tree_add_uint(qsig_tree, hf_qsig_error, tvb, 0, 0, errcode); p = try_val_to_str(errcode, VALS(qsig_str_error)); if (p) { proto_item_append_text(ti, ": %s", p); proto_item_append_text(rctx->d.code_item, " - %s", p); if (rctx->apdu_depth >= 0) proto_item_append_text(proto_item_get_parent_nth(proto_tree_get_parent(tree), rctx->apdu_depth), " %s", p); } if (err_ptr->err_pdu) offset = err_ptr->err_pdu(tvb, pinfo, qsig_tree, NULL); else if (tvb_reported_length_remaining(tvb, offset) > 0) { proto_tree_add_expert(tree, pinfo, &ei_qsig_unsupported_error_type, tvb, offset, -1); offset += tvb_captured_length_remaining(tvb, offset); } return offset; } /*--- dissect_qsig_transit_counter_ie ---------------------------------------*/ static int dissect_qsig_transit_counter_ie(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int length _U_) { proto_tree_add_item(tree, hf_qsig_tc, tvb, offset, 1, ENC_BIG_ENDIAN); offset++; return offset; } /*--- dissect_qsig_party_category_ie ----------------------------------------*/ static int dissect_qsig_party_category_ie(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int length _U_) { proto_tree_add_item(tree, hf_qsig_pc, tvb, offset, 1, ENC_BIG_ENDIAN); offset++; return offset; } /*--- dissect_qsig_ie -------------------------------------------------------*/ static void dissect_qsig_ie(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int codeset) { gint offset; proto_item *ti, *hidden_item; proto_tree *ie_tree; guint8 ie_type, ie_len; offset = 0; ti = proto_tree_add_item(tree, proto_qsig, tvb, offset, -1, ENC_NA); proto_item_set_hidden(ti); ie_type = tvb_get_guint8(tvb, offset); ie_len = tvb_get_guint8(tvb, offset + 1); ie_tree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_qsig_ie, NULL, val_to_str(ie_type, VALS(qsig_str_ie_type[codeset]), "unknown (0x%02X)")); proto_tree_add_item(ie_tree, *hf_qsig_ie_type_arr[codeset], tvb, offset, 1, ENC_BIG_ENDIAN); hidden_item = proto_tree_add_item(ie_tree, hf_qsig_ie_type, tvb, offset, 1, ENC_BIG_ENDIAN); proto_item_set_hidden(hidden_item); proto_tree_add_item(ie_tree, hf_qsig_ie_len, tvb, offset + 1, 1, ENC_BIG_ENDIAN); offset += 2; if (tvb_reported_length_remaining(tvb, offset) <= 0) return; switch ((codeset << 8) | ie_type) { case CS4 | QSIG_IE_TRANSIT_COUNTER : dissect_qsig_transit_counter_ie(tvb, offset, pinfo, ie_tree, ie_len); break; case CS5 | QSIG_IE_PARTY_CATEGORY : dissect_qsig_party_category_ie(tvb, offset, pinfo, ie_tree, ie_len); break; default: if (ie_len > 0) { if (tree) proto_tree_add_item(ie_tree, hf_qsig_ie_data, tvb, offset, ie_len, ENC_NA); } } } /*--- dissect_qsig_ie_cs4 ---------------------------------------------------*/ static int dissect_qsig_ie_cs4(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_) { dissect_qsig_ie(tvb, pinfo, tree, 4); return tvb_captured_length(tvb); } /*--- dissect_qsig_ie_cs5 ---------------------------------------------------*/ static int dissect_qsig_ie_cs5(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_) { dissect_qsig_ie(tvb, pinfo, tree, 5); return tvb_captured_length(tvb); } /*--- proto_register_qsig ---------------------------------------------------*/ void proto_register_qsig(void) { /* List of fields */ static hf_register_info hf[] = { { &hf_qsig_operation, { "Operation", "qsig.operation", FT_UINT8, BASE_DEC, VALS(qsig_str_operation), 0x0, NULL, HFILL }}, { &hf_qsig_service, { "Service", "qsig.service", FT_UINT16, BASE_DEC, VALS(qsig_str_service), 0x0, "Supplementary Service", HFILL }}, { &hf_qsig_error, { "Error", "qsig.error", FT_UINT8, BASE_DEC, VALS(qsig_str_error), 0x0, NULL, HFILL }}, { &hf_qsig_ie_type, { "Type", "qsig.ie.type", FT_UINT8, BASE_HEX, NULL, 0x0, "Information Element Type", HFILL }}, { &hf_qsig_ie_type_cs4, { "Type", "qsig.ie.type.cs4", FT_UINT8, BASE_HEX, VALS(qsig_str_ie_type_cs4), 0x0, "Information Element Type (Codeset 4)", HFILL }}, { &hf_qsig_ie_type_cs5, { "Type", "qsig.ie.type.cs5", FT_UINT8, BASE_HEX, VALS(qsig_str_ie_type_cs5), 0x0, "Information Element Type (Codeset 5)", HFILL }}, { &hf_qsig_ie_len, { "Length", "qsig.ie.len", FT_UINT8, BASE_DEC, NULL, 0x0, "Information Element Length", HFILL }}, { &hf_qsig_ie_data, { "Data", "qsig.ie.data", FT_BYTES, BASE_NONE, NULL, 0x0, NULL, HFILL }}, { &hf_qsig_tc, { "Transit count", "qsig.tc", FT_UINT8, BASE_DEC, NULL, 0x1F, NULL, HFILL }}, { &hf_qsig_pc, { "Party category", "qsig.pc", FT_UINT8, BASE_HEX, VALS(qsig_str_pc), 0x07, NULL, HFILL }}, #include "packet-qsig-hfarr.c" }; /* List of subtrees */ static gint *ett[] = { &ett_qsig, &ett_qsig_ie, &ett_qsig_unknown_extension, #include "packet-qsig-ettarr.c" &ett_cnq_PSS1InformationElement, }; static ei_register_info ei[] = { #if 0 { &ei_qsig_unsupported_arg_type, { "qsig.unsupported.arg_type", PI_UNDECODED, PI_WARN, "UNSUPPORTED ARGUMENT TYPE (QSIG)", EXPFILL }}, #endif { &ei_qsig_unsupported_result_type, { "qsig.unsupported.result_type", PI_UNDECODED, PI_WARN, "UNSUPPORTED RESULT TYPE (QSIG)", EXPFILL }}, { &ei_qsig_unsupported_error_type, { "qsig.unsupported.error_type", PI_UNDECODED, PI_WARN, "UNSUPPORTED ERROR TYPE (QSIG)", EXPFILL }}, }; expert_module_t* expert_qsig; /* Register protocol and dissector */ proto_qsig = proto_register_protocol(PNAME, PSNAME, PFNAME); /* Register fields and subtrees */ proto_register_field_array(proto_qsig, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); expert_qsig = expert_register_protocol(proto_qsig); expert_register_field_array(expert_qsig, ei, array_length(ei)); /* Register dissectors */ qsig_arg_handle = register_dissector(PFNAME "_arg", dissect_qsig_arg, proto_qsig); qsig_res_handle = register_dissector(PFNAME "_res", dissect_qsig_res, proto_qsig); qsig_err_handle = register_dissector(PFNAME "_err", dissect_qsig_err, proto_qsig); qsig_ie4_handle = register_dissector(PFNAME "_ie_cs4", dissect_qsig_ie_cs4, proto_qsig); qsig_ie5_handle = register_dissector(PFNAME "_ie_cs5", dissect_qsig_ie_cs5, proto_qsig); /* Register dissector tables */ extension_dissector_table = register_dissector_table("qsig.ext", "QSIG Extension", proto_qsig, FT_STRING, STRING_CASE_SENSITIVE); } /*--- proto_reg_handoff_qsig ------------------------------------------------*/ void proto_reg_handoff_qsig(void) { int i; gchar *oid; dissector_handle_t q931_handle; q931_handle = find_dissector_add_dependency("q931", proto_qsig); q931_ie_handle = find_dissector_add_dependency("q931.ie", proto_qsig); for (i=0; i<(int)array_length(qsig_op_tab); i++) { dissector_add_uint("q932.ros.local.arg", qsig_op_tab[i].opcode, qsig_arg_handle); dissector_add_uint("q932.ros.local.res", qsig_op_tab[i].opcode, qsig_res_handle); oid = wmem_strdup_printf(NULL, "1.3.12.9.%d", qsig_op_tab[i].opcode); dissector_add_string("q932.ros.global.arg", oid, qsig_arg_handle); dissector_add_string("q932.ros.global.res", oid, qsig_res_handle); wmem_free(NULL, oid); } for (i=0; i<(int)array_length(qsig_err_tab); i++) { dissector_add_uint("q932.ros.local.err", qsig_err_tab[i].errcode, qsig_err_handle); } /* QSIG-TC - Transit counter */ dissector_add_uint("q931.ie", CS4 | QSIG_IE_TRANSIT_COUNTER, qsig_ie4_handle); /* SSIG-BC - Party category */ dissector_add_uint("q931.ie", CS5 | QSIG_IE_PARTY_CATEGORY, qsig_ie5_handle); /* RFC 3204, 3.2 QSIG Media Type */ dissector_add_string("media_type", "application/qsig", q931_handle); } /*---------------------------------------------------------------------------*/
C/C++
wireshark/epan/dissectors/asn1/qsig/packet-qsig-template.h
/* packet-qsig.h * Routines for QSIG packet dissection * 2007 Tomas Kukosa * * Wireshark - Network traffic analyzer * By Gerald Combs <[email protected]> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef PACKET_QSIG_H #define PACKET_QSIG_H #include "packet-qsig-exp.h" #endif /* PACKET_QSIG_H */
ASN.1
wireshark/epan/dissectors/asn1/qsig/QSIG-AOC.asn
-- QSIG-AOC.asn -- -- Taken from Ecma International -- Standard ECMA-212, 3rd edition (December 2001) -- http://www.ecma-international.org/publications/standards/Ecma-212.htm -- SS-AOC-Operations-asn1-97 {iso (1) standard (0) pss1-advice-of-charge (15050) advice-of-charge-operations-asn1-97 (1)} DEFINITIONS EXPLICIT TAGS ::= BEGIN IMPORTS OPERATION, ERROR FROM Remote-Operations-Information-Objects {joint-iso-itu-t (2) remote-operations (4) informationObjects(5) version1(0)} EXTENSION, Extension{} FROM Manufacturer-specific-service-extension-class-asn1-97 {iso (1) standard (0) pss1-generic-procedures (11582) msi-class-asn1-97 (11)} notAvailable, supplementaryServiceInteractionNotAllowed FROM General-Error-List {ccitt recommendation q 950 general-error-list (1)} PartyNumber FROM Addressing-Data-Elements-asn1-97 { iso (1) standard (0) pss1-generic-procedures (11582) addressing-data-elements-asn1-97 (20) } ; AOC-Operations OPERATION ::= { chargeRequest | getFinalCharge | aocFinal | aocInterim | aocRate | aocComplete | aocDivChargeReq } aocRate OPERATION ::= { ARGUMENT AocRateArg RETURN RESULT FALSE ALWAYS RESPONDS FALSE CODE local: 63} AocRateArg ::= SEQUENCE { aocRate CHOICE { chargeNotAvailable NULL, aocSCurrencyInfoList AOCSCurrencyInfoList }, rateArgExtension CHOICE { extension [1] IMPLICIT Extension{{AOCExtSet}}, multipleExtension [2] IMPLICIT SEQUENCE OF Extension{{AOCExtSet}} } OPTIONAL } aocInterim OPERATION ::= { ARGUMENT AocInterimArg RETURN RESULT FALSE ALWAYS RESPONDS FALSE CODE local: 62} AocInterimArg ::= SEQUENCE { interimCharge CHOICE { chargeNotAvailable [0] IMPLICIT NULL, freeOfCharge [1] IMPLICIT NULL, specificCurrency SEQUENCE { recordedCurrency [1] IMPLICIT RecordedCurrency, interimBillingId[2] IMPLICIT InterimBillingId OPTIONAL } }, interimArgExtension CHOICE { extension [1] IMPLICIT Extension{{AOCExtSet}}, multipleExtension [2] IMPLICIT SEQUENCE OF Extension{{AOCExtSet}} } OPTIONAL } aocFinal OPERATION ::= { ARGUMENT AocFinalArg RETURN RESULT FALSE ALWAYS RESPONDS FALSE CODE local: 61} AocFinalArg ::= SEQUENCE { finalCharge CHOICE { chargeNotAvailable [0] IMPLICIT NULL, freeOfCharge [1] IMPLICIT NULL, specificCurrency SEQUENCE { recordedCurrency [1] IMPLICIT RecordedCurrency, finalBillingId[2] IMPLICIT FinalBillingId OPTIONAL } }, chargingAssociation ChargingAssociation OPTIONAL, finalArgExtension CHOICE { extension [1] IMPLICIT Extension{{AOCExtSet}}, multipleExtension [2] IMPLICIT SEQUENCE OF Extension{{AOCExtSet}} } OPTIONAL } AOCSCurrencyInfoList ::= SEQUENCE SIZE(1..10) OF AOCSCurrencyInfo AOCSCurrencyInfo ::= SEQUENCE { chargedItem ChargedItem, rateType CHOICE { durationCurrency [1] IMPLICIT DurationCurrency, flatRateCurrency [2] IMPLICIT FlatRateCurrency, volumeRateCurrency [3] IMPLICIT VolumeRateCurrency, specialChargingCode SpecialChargingCode, freeOfCharge [4] IMPLICIT NULL, currencyInfoNotAvailable [5] IMPLICIT NULL, freeOfChargefromBeginning [6] IMPLICIT NULL } } ChargedItem ::= ENUMERATED { basicCommunication (0), callAttempt (1), callSetup (2), userToUserInfo (3), operationOfSupplementaryServ (4) } DurationCurrency ::= SEQUENCE { dCurrency [1] IMPLICIT Currency, dAmount [2] IMPLICIT Amount, dChargingType [3] IMPLICIT ChargingType, dTime [4] IMPLICIT Time, dGranularity [5] IMPLICIT Time OPTIONAL } FlatRateCurrency ::= SEQUENCE { fRCurrency [1] IMPLICIT Currency, fRAmount [2] IMPLICIT Amount } VolumeRateCurrency ::= SEQUENCE { vRCurrency [1] IMPLICIT Currency, vRAmount [2] IMPLICIT Amount, vRVolumeUnit [3] IMPLICIT VolumeUnit } SpecialChargingCode ::= INTEGER (1..10) RecordedCurrency ::= SEQUENCE { rCurrency [1] IMPLICIT Currency, rAmount [2] IMPLICIT Amount } InterimBillingId ::= ENUMERATED { normalCharging (0), creditCardCharging (2) } FinalBillingId ::= ENUMERATED { normalCharging (0), creditCardCharging (2), callForwardingUnconditional (3), callForwardingBusy (4), callForwardingNoReply (5), callDeflection (6), callTransfer (7) } Currency ::= IA5String (SIZE (0..10)) -- SIZE(0) shall indicate the default currency of the PISN -- The representation of other currencies is outside the scope of this standard Amount ::= SEQUENCE { currencyAmount [1] IMPLICIT CurrencyAmount, multiplier [2] IMPLICIT Multiplier } CurrencyAmount ::= INTEGER (0..16777215) Multiplier ::= ENUMERATED { oneThousandth (0), oneHundredth (1), oneTenth (2), one (3), ten (4), hundred (5), thousand (6) } Time ::= SEQUENCE { lengthOfTimeUnit [1] IMPLICIT LengthOfTimeUnit, scale [2] IMPLICIT Scale } LengthOfTimeUnit ::= INTEGER (0..16777215) Scale ::= ENUMERATED { oneHundredthSecond (0), oneTenthSecond (1), oneSecond (2), tenSeconds (3), oneMinute (4), oneHour (5), twentyFourHours (6) } VolumeUnit ::= ENUMERATED { octet (0), segment (1), message (2) } ChargingType ::= ENUMERATED { continuousCharging (0), stepFunction (1) } ChargingAssociation ::= CHOICE { chargeNumber [0] PartyNumber, chargeIdentifier ChargeIdentifier } ChargeIdentifier ::= INTEGER (-32768..32767) chargeRequest OPERATION ::= { ARGUMENT ChargeRequestArg RESULT ChargeRequestRes ERRORS { freeOfCharge | supplementaryServiceInteractionNotAllowed | notAvailable | unspecified } CODE local: 59} getFinalCharge OPERATION ::= { ARGUMENT DummyArg RETURN RESULT FALSE ALWAYS RESPONDS FALSE CODE local: 60} ChargeRequestArg ::= SEQUENCE { adviceModeCombinations SEQUENCE SIZE(0..7) OF AdviceModeCombination, chargeReqArgExtension CHOICE { extension [1] IMPLICIT Extension{{AOCExtSet}}, multipleExtension [2] IMPLICIT SEQUENCE OF Extension{{AOCExtSet}} } OPTIONAL } ChargeRequestRes ::= SEQUENCE { adviceModeCombination AdviceModeCombination, chargeReqResExtension CHOICE { extension [1] IMPLICIT Extension{{AOCExtSet}}, multipleExtension [2] IMPLICIT SEQUENCE OF Extension{{AOCExtSet}} } OPTIONAL } AdviceModeCombination ::= ENUMERATED { -- advice mode combination rate (0), -- charge rate provision rateInterim (1), -- charge rate and interim charge provision rateFinal (2), -- charge rate and final charge provision interim (3), -- interim charge provision final (4), -- final charge provision interimFinal (5), -- interim charge and final charge provision rateInterimFinal (6)} -- charge rate, interim charge and final -- charge provision DummyArg ::= CHOICE{ none NULL, extension [1] IMPLICIT Extension{{AOCExtSet}}, multipleExtension [2] IMPLICIT SEQUENCE OF Extension{{AOCExtSet}} } -- The following OPERATION applies for the interaction with Call Transfer aocComplete OPERATION ::= { ARGUMENT AocCompleteArg RESULT AocCompleteRes ERRORS {supplementaryServiceInteractionNotAllowed} CODE local: 64} AocCompleteArg ::= SEQUENCE { chargedUser PartyNumber, chargingAssociation ChargingAssociation OPTIONAL, completeArgExtension CHOICE { extension [1] IMPLICIT Extension{{AOCExtSet}}, multipleExtension [2] IMPLICIT SEQUENCE OF Extension{{AOCExtSet}} } OPTIONAL } AocCompleteRes::= SEQUENCE { chargingOption ChargingOption, completeResExtension CHOICE { extension [1] IMPLICIT Extension{{AOCExtSet}}, multipleExtension [2] IMPLICIT SEQUENCE OF Extension{{AOCExtSet}} } OPTIONAL } ChargingOption ::= ENUMERATED{ aocFreeOfCharge (0), aocContinueCharging (1), aocStopCharging (2) } -- The following OPERATION applies for the interaction with Call Diversion aocDivChargeReq OPERATION::= { ARGUMENT AocDivChargeReqArg RETURN RESULT FALSE ALWAYS RESPONDS FALSE CODE local: 65} AocDivChargeReqArg ::= SEQUENCE { divertingUser PartyNumber, chargingAssociation ChargingAssociation OPTIONAL, diversionType DiversionType, aocDivChargeReqArgExt CHOICE { extension [1] IMPLICIT Extension{{AOCExtSet}}, multipleExtension [2] IMPLICIT SEQUENCE OF Extension{{AOCExtSet}} } OPTIONAL } DiversionType ::= ENUMERATED { callForwardingUnconditional (0), callForwardingBusy (1), callForwardingNoReply (2), callDeflection (3) } AOCExtSet EXTENSION ::= {...} unspecified ERROR ::= { PARAMETER Extension{{AOCExtSet}} CODE local: 1008} freeOfCharge ERROR ::= { CODE local: 1016} END -- of SS-AOC-Operations-asn1-97
ASN.1
wireshark/epan/dissectors/asn1/qsig/QSIG-CC.asn
-- QSIG-CC.asn -- -- Taken from Ecma International -- Standard ECMA-186, 4th edition (December 2001) -- http://www.ecma-international.org/publications/standards/Ecma-186.htm -- SS-CC-Operations-asn1-97 { iso (1) standard (0) pss1-call-completion (13870) operations-asn1-97 (1)} DEFINITIONS EXPLICIT TAGS ::= BEGIN IMPORTS OPERATION, ERROR FROM Remote-Operations-Information-Objects { joint-iso-itu-t remote-operations (4) informationObjects(5) version1 (0)} EXTENSION, Extension{} FROM Manufacturer-specific-service-extension-class-asn1-97 { iso( 1) standard( 0) pss1-generic-procedures( 11582) msi-class-asn1-97( 11) } PSS1InformationElement FROM PSS1-generic-parameters-definition-asn1-97 { iso standard pss1-generic-procedures (11582) pss1-generic-parameters-asn1-97(17)} PartyNumber, PartySubaddress, PresentedNumberUnscreened FROM Addressing-Data-Elements-asn1-97 {iso standard pss1-generic-procedures (11582) addressing-data-elements-asn1-97 (20)} supplementaryServiceInteractionNotAllowed FROM General-Error-List { ccitt (0) recommendation (0) q 950 general-error-list (1) } ; CC-Operations OPERATION ::= {ccbsRequest | ccnrRequest | ccCancel | ccExecPossible | ccPathReserve | ccRingout | ccSuspend | ccResume } ccbsRequest OPERATION ::= { ARGUMENT CcRequestArg RESULT CcRequestRes ERRORS{ shortTermRejection | longTermRejection | unspecified | supplementaryServiceInteractionNotAllowed } CODE local: 40 } ccnrRequest OPERATION ::= { ARGUMENT CcRequestArg RESULT CcRequestRes ERRORS{ shortTermRejection | longTermRejection | unspecified | supplementaryServiceInteractionNotAllowed } CODE local: 27 } ccCancel OPERATION ::= { ARGUMENT CcOptionalArg RETURN RESULT FALSE ALWAYS RESPONDS FALSE CODE local: 28 } ccExecPossible OPERATION ::= { ARGUMENT CcOptionalArg RETURN RESULT FALSE ALWAYS RESPONDS FALSE CODE local: 29 } ccPathReserve OPERATION ::= { ARGUMENT CcExtension RESULT CcExtension ERRORS { remoteUserBusyAgain | failureToMatch | failedDueToInterworking | unspecified } CODE local: 30 } ccRingout OPERATION ::= { ARGUMENT CcExtension RETURN RESULT FALSE ERRORS{ remoteUserBusyAgain | failureToMatch | unspecified } ALWAYS RESPONDS FALSE CODE local: 31 } ccSuspend OPERATION ::= { ARGUMENT CcExtension RETURN RESULT FALSE ALWAYS RESPONDS FALSE CODE local: 32 } ccResume OPERATION ::= { ARGUMENT CcExtension RETURN RESULT FALSE ALWAYS RESPONDS FALSE CODE local: 33 } -- TYPE DEFINITIONS FOR CC DATA TYPES FOLLOW CcRequestArg ::= SEQUENCE { numberA PresentedNumberUnscreened, numberB PartyNumber, service PSS1InformationElement, -- permitted information elements are: -- Bearer capability; Low layer compatibility; High layer compatibility subaddrA [10] PartySubaddress OPTIONAL, subaddrB [11] PartySubaddress OPTIONAL, can-retain-service [12] IMPLICIT BOOLEAN DEFAULT FALSE, retain-sig-connection [13] IMPLICIT BOOLEAN OPTIONAL, -- TRUE: signalling connection to be retained; -- FALSE: signalling connection to be released; -- omission: release or retain signalling connection-- extension CcExtension OPTIONAL } CcRequestRes ::= SEQUENCE{ no-path-reservation [0] IMPLICIT BOOLEAN DEFAULT FALSE, retain-service [1] IMPLICIT BOOLEAN DEFAULT FALSE, extension CcExtension OPTIONAL } CcOptionalArg ::= CHOICE{ fullArg [0] IMPLICIT SEQUENCE { numberA PartyNumber, numberB PartyNumber, service PSS1InformationElement, -- permitted information elements are: --Bearer capability; -- Low layer compatibility; -- High layer compatibility. subaddrA [10] PartySubaddress OPTIONAL, subaddrB [11] PartySubaddress OPTIONAL, extension CcExtension OPTIONAL }, extArg CcExtension } CcExtension ::= CHOICE { none NULL, single [14] IMPLICIT Extension{{CCExtSet}}, multiple [15] IMPLICIT SEQUENCE OF Extension{{CCExtSet}} } CCExtSet EXTENSION ::= {...} -- DEFINITIONS FOR ERRORS FOLLOW unspecified ERROR ::= { PARAMETER Extension{{CCExtSet}} CODE local: 1008 } shortTermRejection ERROR ::= { CODE local: 1010} longTermRejection ERROR ::= { CODE local: 1011} remoteUserBusyAgain ERROR ::= { CODE local: 1012} failureToMatch ERROR ::= { CODE local: 1013} failedDueToInterworking ERROR ::= { CODE local: 1014} END -- of SS-CC-Operations-asn1-97
ASN.1
wireshark/epan/dissectors/asn1/qsig/QSIG-CF.asn
-- QSIG-CF.asn -- -- Taken from Ecma International -- Standard ECMA-174, 3rd edition (December 2001) -- http://www.ecma-international.org/publications/standards/Ecma-174.htm -- Call-Diversion-Operations-asn1-97 { iso (1) standard (0) pss1-call-diversion (13873) call-diversion-operations-asn1-97 (1) } DEFINITIONS EXPLICIT TAGS ::= BEGIN IMPORTS OPERATION, ERROR FROM Remote-Operations-Information-Objects { joint-iso-itu-t remote-operations (4) informationObjects(5) version1(0)} EXTENSION, Extension{} FROM Manufacturer-specific-service-extension-class-asn1-97 { iso (1) standard (0) pss1-generic-procedures (11582) msi-class-asn1-97 (11) } PSS1InformationElement FROM PSS1-generic-parameters-definition-asn1-97 { iso (1) standard (0) pss1-generic-procedures (11582) pss1-generic-parameters-asn1-97 (17) } Address, PartyNumber, PartySubaddress, PresentedNumberScreened, PresentedNumberUnscreened, PresentationAllowedIndicator FROM Addressing-Data-Elements-asn1-97 { iso (1) standard (0) pss1-generic-procedures (11582) addressing-data-elements-asn1-97 (20) } Name FROM Name-Operations-asn1-97 { iso (1) standard (0) pss1-name (13868) name-operations-asn1-97 (1) } userNotSubscribed, notAvailable, invalidServedUserNr, basicServiceNotProvided, resourceUnavailable, supplementaryServiceInteractionNotAllowed FROM General-Error-List { ccitt recommendation q 950 general-error-list (1) }; Call-Diversion-Operations OPERATION ::= {activateDiversionQ | deactivateDiversionQ | interrogateDiversionQ | checkRestriction | callRerouteing | divertingLegInformation1 | divertingLegInformation2 | divertingLegInformation3 | cfnrDivertedLegFailed} activateDiversionQ OPERATION ::={ -- Sent from the Activating PINX to the Served User PINX ARGUMENT SEQUENCE { procedure Procedure, basicService BasicService, divertedToAddress Address, servedUserNr PartyNumber, activatingUserNr PartyNumber, extension CHOICE { single [1] IMPLICIT Extension{{DiversionExtensionSet}} , multiple[2] IMPLICIT SEQUENCE OF Extension{{DiversionExtensionSet}} } OPTIONAL } RESULT CHOICE { null NULL, single [1] IMPLICIT Extension{{DiversionExtensionSet}}, multiple[2] IMPLICIT SEQUENCE OF Extension{{DiversionExtensionSet}} } ERRORS { userNotSubscribed | notAvailable | invalidServedUserNr | basicServiceNotProvided | resourceUnavailable | invalidDivertedToNr | specialServiceNr | diversionToServedUserNr | temporarilyUnavailable | notAuthorized | unspecified } CODE local: 15} deactivateDiversionQ OPERATION ::={ -- Sent from the Deactivating PINX to the Served User PINX ARGUMENT SEQUENCE { procedure Procedure, basicService BasicService, servedUserNr PartyNumber, deactivatingUserNr PartyNumber, extension CHOICE { single [1] IMPLICIT Extension{{DiversionExtensionSet}} , multiple[2] IMPLICIT SEQUENCE OF Extension{{DiversionExtensionSet}} } OPTIONAL } RESULT CHOICE { null NULL, single [1] IMPLICIT Extension{{DiversionExtensionSet}} , multiple[2] IMPLICIT SEQUENCE OF Extension{{DiversionExtensionSet}} } ERRORS {userNotSubscribed | notAvailable| invalidServedUserNr | temporarilyUnavailable | notAuthorized | unspecified } CODE local: 16} interrogateDiversionQ OPERATION ::={ -- Sent from the Interrogating PINX to the Served User PINX ARGUMENT SEQUENCE { procedure Procedure, basicService BasicService DEFAULT allServices, servedUserNr PartyNumber, interrogatingUserNr PartyNumber, extension CHOICE { single [1] IMPLICIT Extension{{DiversionExtensionSet}} , multiple[2] IMPLICIT SEQUENCE OF Extension{{DiversionExtensionSet}} } OPTIONAL } RESULT IntResultList ERRORS {userNotSubscribed | notAvailable | invalidServedUserNr | temporarilyUnavailable | notAuthorized | unspecified } CODE local: 17} checkRestriction OPERATION ::={ -- Sent from the Served User PINX to the Diverted-to PINX ARGUMENT SEQUENCE { servedUserNr PartyNumber, basicService BasicService, divertedToNr PartyNumber, extension CHOICE { single [1] IMPLICIT Extension{{DiversionExtensionSet}} , multiple[2] IMPLICIT SEQUENCE OF Extension{{DiversionExtensionSet}} } OPTIONAL } RESULT CHOICE { null NULL, single [1] IMPLICIT Extension{{DiversionExtensionSet}}, multiple[2] IMPLICIT SEQUENCE OF Extension{{DiversionExtensionSet}} } ERRORS {notAvailable | invalidServedUserNr | invalidDivertedToNr | specialServiceNr | unspecified } CODE local: 18} callRerouteing OPERATION ::={ -- Sent from the Served User PINX to the Rerouteing PINX ARGUMENT SEQUENCE { rerouteingReason DiversionReason, originalRerouteingReason [0] IMPLICIT DiversionReason OPTIONAL, calledAddress Address, diversionCounter INTEGER (1..15), pSS1InfoElement PSS1InformationElement, -- The basic call information elements Bearer capability, High layer compatibility, Low -- layer compatibity and Progress indicator can be embedded in the -- pSS1InfoElement in accordance with 6.5.3.1.5. lastRerouteingNr [1] PresentedNumberUnscreened, subscriptionOption [2] IMPLICIT SubscriptionOption, callingPartySubaddress [3] PartySubaddress OPTIONAL, callingNumber [4] PresentedNumberScreened, callingName [5] Name OPTIONAL, originalCalledNr [6] PresentedNumberUnscreened OPTIONAL, redirectingName [7] Name OPTIONAL, originalCalledName [8] Name OPTIONAL, extension CHOICE { single [9] IMPLICIT Extension{{DiversionExtensionSet}}, multiple[10] IMPLICIT SEQUENCE OF Extension{{DiversionExtensionSet}} } OPTIONAL } RESULT CHOICE { null NULL, single [1] IMPLICIT Extension{{DiversionExtensionSet}} , multiple[2] IMPLICIT SEQUENCE OF Extension{{DiversionExtensionSet}} } ERRORS {userNotSubscribed | notAvailable | resourceUnavailable | invalidDivertedToNr | specialServiceNr | diversionToServedUserNr | numberOfDiversionsExceeded | supplementaryServiceInteractionNotAllowed | unspecified } -- The error value numberOfDiversionsExceeded applies only in case of partial rerouteing. CODE local: 19} divertingLegInformation1 OPERATION ::={ -- Sent from the Rerouteing PINX to the Originating PINX ARGUMENT SEQUENCE { diversionReason DiversionReason, subscriptionOption SubscriptionOption, nominatedNr PartyNumber, extension CHOICE { single [9] IMPLICIT Extension{{DiversionExtensionSet}} , multiple [10] IMPLICIT SEQUENCE OF Extension{{DiversionExtensionSet}} } OPTIONAL } RETURN RESULT FALSE ALWAYS RESPONDS FALSE CODE local: 20} divertingLegInformation2 OPERATION ::={ -- Sent from the Rerouteing PINX to the Diverted-to PINX ARGUMENT SEQUENCE { diversionCounter INTEGER (1..15), diversionReason DiversionReason, originalDiversionReason [0] IMPLICIT DiversionReason OPTIONAL, divertingNr [1] PresentedNumberUnscreened OPTIONAL, originalCalledNr [2] PresentedNumberUnscreened OPTIONAL, redirectingName [3] Name OPTIONAL, originalCalledName [4] Name OPTIONAL, extension CHOICE { single [5] IMPLICIT Extension{{DiversionExtensionSet}} , multiple[6] IMPLICIT SEQUENCE OF Extension{{DiversionExtensionSet}} } OPTIONAL } -- The divertingNr element is mandatory except in the case of interworking. RETURN RESULT FALSE ALWAYS RESPONDS FALSE CODE local: 21} divertingLegInformation3 OPERATION ::={ -- Sent from the Diverted-to PINX to the Originating PINX ARGUMENT SEQUENCE { presentationAllowedIndicator PresentationAllowedIndicator, redirectionName [0] Name OPTIONAL, extension CHOICE { single [1] IMPLICIT Extension{{DiversionExtensionSet}} , multiple[2] IMPLICIT SEQUENCE OF Extension{{DiversionExtensionSet}} } OPTIONAL } RETURN RESULT FALSE ALWAYS RESPONDS FALSE CODE local: 22} cfnrDivertedLegFailed OPERATION ::={ -- Sent from the Rerouteing PINX to the Served User PINX -- This indicates that the diverted-to leg has been cleared during SS-CFNR execution. ARGUMENT CHOICE { null NULL, single [1] IMPLICIT Extension{{DiversionExtensionSet}} , multiple[2] IMPLICIT SEQUENCE OF Extension{{DiversionExtensionSet}} } RETURN RESULT FALSE ALWAYS RESPONDS FALSE CODE local: 23} -- Definitions of general used data types: DiversionReason ::= ENUMERATED { unknown (0), cfu (1), cfb (2), cfnr (3)} -- The value unknown is only used if received from another network when interworking. IntResultList ::= SET SIZE (0..29) OF IntResult IntResult ::= SEQUENCE { servedUserNr PartyNumber, basicService BasicService, procedure Procedure, divertedToAddress Address, remoteEnabled BOOLEAN DEFAULT FALSE, extension CHOICE { single [1] IMPLICIT Extension{{DiversionExtensionSet}} , multiple[2] IMPLICIT SEQUENCE OF Extension{{DiversionExtensionSet}} } OPTIONAL } Procedure ::= ENUMERATED { cfu (0), cfb (1), cfnr (2) } SubscriptionOption ::= ENUMERATED { noNotification (0), notificationWithoutDivertedToNr (1), notificationWithDivertedToNr (2) } BasicService ::= ENUMERATED { allServices (0), speech (1), unrestrictedDigitalInformation (2), audio3100Hz (3), telephony (32), teletex (33), telefaxGroup4Class1 (34), videotexSyntaxBased (35), videotelephony (36) } DiversionExtensionSet EXTENSION ::= {...} invalidDivertedToNr ERROR ::= {CODE local: 12} specialServiceNr ERROR ::= {CODE local: 14} diversionToServedUserNr ERROR ::= {CODE local: 15} numberOfDiversionsExceeded ERROR ::= {CODE local: 24} temporarilyUnavailable ERROR ::= {CODE local: 1000} notAuthorized ERROR ::= {CODE local: 1007} unspecified ERROR ::= {PARAMETER Extension{{DiversionExtensionSet}} CODE local:1008} END -- of Call-Diversion-Operations-asn1-97