aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/ulp
diff options
context:
space:
mode:
authorTomas Kukosa <tomas.kukosa@siemens.com>2007-05-15 08:26:18 +0000
committerTomas Kukosa <tomas.kukosa@siemens.com>2007-05-15 08:26:18 +0000
commita0ee5100c4ac12970260877b4222437494a5ad9a (patch)
treea86c73165fad1ab307461e516747e9333ff5b46c /asn1/ulp
parent35da9bda8a8f389a11f4e689d2ba748f3d525d27 (diff)
downloadwireshark-a0ee5100c4ac12970260877b4222437494a5ad9a.tar.gz
wireshark-a0ee5100c4ac12970260877b4222437494a5ad9a.tar.bz2
wireshark-a0ee5100c4ac12970260877b4222437494a5ad9a.zip
ULP regenerated from OMA UserPlane Location Protocol Candidate Version 1.0 – 22 Jan 2007
svn path=/trunk/; revision=21778
Diffstat (limited to 'asn1/ulp')
-rw-r--r--asn1/ulp/Makefile6
-rw-r--r--asn1/ulp/Makefile.nmake12
-rw-r--r--asn1/ulp/SUPL.asn276
-rw-r--r--asn1/ulp/ULP-Components.asn267
-rw-r--r--asn1/ulp/ULP.asn652
-rw-r--r--asn1/ulp/packet-ulp-template.c5
-rw-r--r--asn1/ulp/packet-ulp-template.h35
-rw-r--r--asn1/ulp/ulp.cnf23
8 files changed, 614 insertions, 662 deletions
diff --git a/asn1/ulp/Makefile b/asn1/ulp/Makefile
index a309bd1223..286d4fa241 100644
--- a/asn1/ulp/Makefile
+++ b/asn1/ulp/Makefile
@@ -1,13 +1,13 @@
# $Id$
-DISSECTOR_FILES=packet-ulp.c packet-ulp.h
+DISSECTOR_FILES=packet-ulp.c
all: generate_dissector
generate_dissector: $(DISSECTOR_FILES)
-$(DISSECTOR_FILES): ../../tools/asn2wrs.py ULP.asn packet-ulp-template.c packet-ulp-template.h ulp.cnf
- python ../../tools/asn2wrs.py -e -p ulp -c ulp.cnf -s packet-ulp-template ULP.asn
+$(DISSECTOR_FILES): ../../tools/asn2wrs.py ULP.asn SUPL.asn ULP-Components.asn packet-ulp-template.c ulp.cnf
+ python ../../tools/asn2wrs.py -p ulp -c ulp.cnf -s packet-ulp-template ULP.asn SUPL.asn ULP-Components.asn
clean:
rm -f parsetab.py parsetab.pyc $(DISSECTOR_FILES)
diff --git a/asn1/ulp/Makefile.nmake b/asn1/ulp/Makefile.nmake
index 15c44f28ec..7c67989423 100644
--- a/asn1/ulp/Makefile.nmake
+++ b/asn1/ulp/Makefile.nmake
@@ -7,15 +7,16 @@ include ../../config.nmake
UNIX2DOS=$(PERL) ../../tools/unix2dos.pl
PROTOCOL_NAME=ulp
-DISSECTOR_FILES=packet-$(PROTOCOL_NAME).c packet-$(PROTOCOL_NAME).h
+DISSECTOR_FILES=packet-$(PROTOCOL_NAME).c
+ULP_ASN=ULP.asn SUPL.asn ULP-Components.asn
all: generate_dissector
generate_dissector: $(DISSECTOR_FILES)
-$(DISSECTOR_FILES): ../../tools/asn2wrs.py ULP.asn packet-ulp-template.c packet-ulp-template.h ulp.cnf
+$(DISSECTOR_FILES): ../../tools/asn2wrs.py $(ULP_ASN) packet-ulp-template.c ulp.cnf
!IFDEF PYTHON
- $(PYTHON) "../../tools/asn2wrs.py" -u -e -p $(PROTOCOL_NAME) -c ulp.cnf -s packet-ulp-template ULP.asn
+ $(PYTHON) "../../tools/asn2wrs.py" -p $(PROTOCOL_NAME) -c ulp.cnf -s packet-ulp-template $(ULP_ASN)
!ELSE
@echo Error: You need Python to use asn2wrs.py
@exit 1
@@ -35,12 +36,9 @@ maintainer-clean: distclean
fix_eol: generate_dissector
move packet-$(PROTOCOL_NAME).c packet-$(PROTOCOL_NAME).c.tmp
- move packet-$(PROTOCOL_NAME).h packet-$(PROTOCOL_NAME).h.tmp
$(UNIX2DOS) < packet-$(PROTOCOL_NAME).c.tmp > packet-$(PROTOCOL_NAME).c
- $(UNIX2DOS) < packet-$(PROTOCOL_NAME).h.tmp > packet-$(PROTOCOL_NAME).h
- del /f packet-$(PROTOCOL_NAME).c.tmp packet-$(PROTOCOL_NAME).h.tmp
+ del /f packet-$(PROTOCOL_NAME).c.tmp
copy_files: generate_dissector fix_eol
xcopy packet-$(PROTOCOL_NAME).c ..\..\epan\dissectors /d /y
- xcopy packet-$(PROTOCOL_NAME).h ..\..\epan\dissectors /d /y
diff --git a/asn1/ulp/SUPL.asn b/asn1/ulp/SUPL.asn
new file mode 100644
index 0000000000..56c08864c9
--- /dev/null
+++ b/asn1/ulp/SUPL.asn
@@ -0,0 +1,276 @@
+-- SUPL.asn
+--
+-- Taken from OMA UserPlane Location Protocol Candidate Version 1.0 – 22 Jan 2007
+-- http://www.openmobilealliance.org/release_program/docs/SUPL/V1_0-20070122-C/OMA-TS-ULP-V1_0-20070122-C.pdf
+--
+-- 8.2 Message Specific Part
+--
+
+--
+-- 8.2.1 SUPL INIT
+--
+SUPL-INIT DEFINITIONS AUTOMATIC TAGS ::=
+BEGIN
+
+EXPORTS SUPLINIT;
+
+IMPORTS SLPAddress, QoP, PosMethod
+ FROM ULP-Components;
+
+SUPLINIT ::= SEQUENCE {
+ posMethod PosMethod,
+ notification Notification OPTIONAL,
+ sLPAddress SLPAddress OPTIONAL,
+ qoP QoP OPTIONAL,
+ sLPMode SLPMode,
+ mAC MAC OPTIONAL,
+ keyIdentity KeyIdentity OPTIONAL,
+ ...}
+
+Notification ::= SEQUENCE {
+ notificationType NotificationType,
+ encodingType EncodingType OPTIONAL,
+ requestorId OCTET STRING(SIZE (1..maxReqLength)) OPTIONAL,
+ requestorIdType FormatIndicator OPTIONAL,
+ clientName OCTET STRING(SIZE (1..maxClientLength)) OPTIONAL,
+ clientNameType FormatIndicator OPTIONAL,
+ ...}
+
+NotificationType ::= ENUMERATED {
+ noNotificationNoVerification(0), notificationOnly(1),
+ notificationAndVerficationAllowedNA(2),
+ notificationAndVerficationDeniedNA(3), privacyOverride(4), ...
+ }
+EncodingType ::= ENUMERATED {ucs2(0), gsmDefault(1), utf8(2), ...
+ }
+maxReqLength INTEGER ::= 50
+
+maxClientLength INTEGER ::= 50
+
+FormatIndicator ::= ENUMERATED {
+ logicalName(0), e-mailAddress(1), msisdn(2), url(3), sipUrl(4), min(5),
+ mdn(6), imsPublicIdentity(7), ...
+ }
+SLPMode ::= ENUMERATED {proxy(0), nonProxy(1)}
+
+MAC ::= BIT STRING(SIZE (64))
+
+KeyIdentity ::= BIT STRING(SIZE (128))
+
+END
+
+--
+-- 8.2.2 SUPL START
+--
+SUPL-START DEFINITIONS AUTOMATIC TAGS ::=
+BEGIN
+
+EXPORTS SUPLSTART, SETCapabilities;
+
+IMPORTS LocationId, QoP
+ FROM ULP-Components;
+
+SUPLSTART ::= SEQUENCE {
+ sETCapabilities SETCapabilities,
+ locationId LocationId,
+ qoP QoP OPTIONAL,
+ ...}
+
+SETCapabilities ::= SEQUENCE {
+ posTechnology PosTechnology,
+ prefMethod PrefMethod,
+ posProtocol PosProtocol,
+ ...}
+
+PosTechnology ::= SEQUENCE {
+ agpsSETassisted BOOLEAN,
+ agpsSETBased BOOLEAN,
+ autonomousGPS BOOLEAN,
+ aFLT BOOLEAN,
+ eCID BOOLEAN,
+ eOTD BOOLEAN,
+ oTDOA BOOLEAN,
+ ...}
+
+PrefMethod ::= ENUMERATED {
+ agpsSETassistedPreferred, agpsSETBasedPreferred, noPreference}
+
+PosProtocol ::= SEQUENCE {
+ tia801 BOOLEAN,
+ rrlp BOOLEAN,
+ rrc BOOLEAN,
+ ...}
+
+END
+
+--
+-- 8.2.3 SUPL RESPONSE
+--
+SUPL-RESPONSE DEFINITIONS AUTOMATIC TAGS ::=
+BEGIN
+
+EXPORTS SUPLRESPONSE;
+
+IMPORTS PosMethod, SLPAddress
+ FROM ULP-Components;
+
+SUPLRESPONSE ::= SEQUENCE {
+ posMethod PosMethod,
+ sLPAddress SLPAddress OPTIONAL,
+ sETAuthKey SETAuthKey OPTIONAL,
+ keyIdentity4 KeyIdentity4 OPTIONAL,
+ ...}
+
+SETAuthKey ::= CHOICE {
+ shortKey BIT STRING(SIZE (128)),
+ longKey BIT STRING(SIZE (256)),
+ ...}
+
+KeyIdentity4 ::= BIT STRING(SIZE (128))
+
+END
+
+--
+-- 8.2.4 SUPL POS INIT
+--
+SUPL-POS-INIT DEFINITIONS AUTOMATIC TAGS ::=
+BEGIN
+
+EXPORTS SUPLPOSINIT;
+
+IMPORTS
+ SUPLPOS
+ FROM SUPL-POS
+ SETCapabilities
+ FROM SUPL-START
+ LocationId, Position, Ver
+ FROM ULP-Components;
+
+SUPLPOSINIT ::= SEQUENCE {
+ sETCapabilities SETCapabilities,
+ requestedAssistData RequestedAssistData OPTIONAL,
+ locationId LocationId,
+ position Position OPTIONAL,
+ sUPLPOS SUPLPOS OPTIONAL,
+ ver Ver OPTIONAL,
+ ...}
+
+RequestedAssistData ::= SEQUENCE {
+ almanacRequested BOOLEAN,
+ utcModelRequested BOOLEAN,
+ ionosphericModelRequested BOOLEAN,
+ dgpsCorrectionsRequested BOOLEAN,
+ referenceLocationRequested BOOLEAN,
+ referenceTimeRequested BOOLEAN,
+ acquisitionAssistanceRequested BOOLEAN,
+ realTimeIntegrityRequested BOOLEAN,
+ navigationModelRequested BOOLEAN,
+ navigationModelData NavigationModel OPTIONAL,
+ ...}
+
+NavigationModel ::= SEQUENCE {
+ gpsWeek INTEGER(0..1023),
+ gpsToe INTEGER(0..167),
+ nSAT INTEGER(0..31),
+ toeLimit INTEGER(0..10),
+ satInfo SatelliteInfo OPTIONAL,
+ ...}
+
+-- Further information on this fields can be found
+-- in 3GPP TS 44.031 and 49.031
+SatelliteInfo ::= SEQUENCE (SIZE (1..31)) OF SatelliteInfoElement
+
+SatelliteInfoElement ::= SEQUENCE {
+ satId INTEGER(0..63),
+ iODE INTEGER(0..255),
+ ...}
+
+END
+
+--
+-- 8.2.5 SUPL POS
+--
+SUPL-POS DEFINITIONS AUTOMATIC TAGS ::=
+BEGIN
+
+EXPORTS SUPLPOS;
+
+IMPORTS Velocity
+ FROM ULP-Components;
+
+SUPLPOS ::= SEQUENCE {
+ posPayLoad PosPayLoad,
+ velocity Velocity OPTIONAL,
+ ...}
+
+PosPayLoad ::= CHOICE {
+ tia801payload OCTET STRING(SIZE (1..8192)),
+ rrcPayload OCTET STRING(SIZE (1..8192)),
+ rrlpPayload OCTET STRING(SIZE (1..8192)),
+ ...}
+
+END
+
+--
+-- 8.2.6 SUPL END
+--
+SUPL-END DEFINITIONS AUTOMATIC TAGS ::=
+BEGIN
+
+EXPORTS SUPLEND;
+
+IMPORTS StatusCode, Position, Ver
+ FROM ULP-Components;
+
+SUPLEND ::= SEQUENCE {
+ position Position OPTIONAL,
+ statusCode StatusCode OPTIONAL,
+ ver Ver OPTIONAL,
+ ...}
+
+END
+
+--
+-- 8.2.7 SUPL AUTH REQ
+--
+SUPL-AUTH-REQ DEFINITIONS AUTOMATIC TAGS ::=
+BEGIN
+
+EXPORTS SUPLAUTHREQ;
+
+SUPLAUTHREQ ::= SEQUENCE {
+ sETNonce SETNonce,
+ keyIdentity2 KeyIdentity2,
+ ...}
+
+SETNonce ::= BIT STRING(SIZE (128))
+
+KeyIdentity2 ::= BIT STRING(SIZE (128))
+
+END
+
+--
+-- 8.2.8 SUPL AUTH RESP
+--
+SUPL-AUTH-RESP DEFINITIONS AUTOMATIC TAGS ::=
+BEGIN
+
+EXPORTS SUPLAUTHRESP;
+
+IMPORTS StatusCode
+ FROM ULP-Components;
+
+SUPLAUTHRESP ::= SEQUENCE {
+ sPCAuthKey SPCAuthKey OPTIONAL,
+ keyIdentity3 KeyIdentity3 OPTIONAL,
+ statusCode StatusCode OPTIONAL,
+ ...}
+
+SPCAuthKey ::= CHOICE {
+ shortKey BIT STRING(SIZE (128)),
+ longKey BIT STRING(SIZE (256)),
+ ...}
+
+KeyIdentity3 ::= BIT STRING(SIZE (128))
+
+END
diff --git a/asn1/ulp/ULP-Components.asn b/asn1/ulp/ULP-Components.asn
new file mode 100644
index 0000000000..2f18603fa6
--- /dev/null
+++ b/asn1/ulp/ULP-Components.asn
@@ -0,0 +1,267 @@
+-- UPL-Components.asn
+--
+-- Taken from OMA UserPlane Location Protocol Candidate Version 1.0 – 22 Jan 2007
+-- http://www.openmobilealliance.org/release_program/docs/SUPL/V1_0-20070122-C/OMA-TS-ULP-V1_0-20070122-C.pdf
+--
+-- 8.3 Common elements
+--
+
+ULP-Components DEFINITIONS AUTOMATIC TAGS ::=
+BEGIN
+
+EXPORTS
+ Version, SessionID, IPAddress, SLPAddress, LocationId, Position, StatusCode,
+ Velocity, QoP, PosMethod, Ver;
+
+-- protocol version expressed as x.y.z (e.g., 5.1.0)
+Version ::= SEQUENCE {
+ maj INTEGER(0..255),
+ min INTEGER(0..255),
+ servind INTEGER(0..255)}
+
+SessionID ::= SEQUENCE {
+ setSessionID SetSessionID OPTIONAL, -- the semantics of OPTIONAL applies to the encoding only. The parameter itself is MANDATORY. This is introduced only to minimize bandwidth for the SUPL INIT message. Since the setSessionID is allocated by the SET, there is no setSessionID to be transmitted in the SUPL INIT message.
+ slpSessionID SlpSessionID OPTIONAL -- the semantics of OPTIONAL applies to the encoding only. The parameter itself is MANDATORY. This is introduced only to minimize bandwidth for the SUPL START message. Since the slpSessionID is allocated by the SLP, there is no slpSessionID to be transmitted in the SUPL START message.--}
+
+SetSessionID ::= SEQUENCE {sessionId INTEGER(0..65535),
+ setId SETId}
+
+SETId ::= CHOICE {
+ msisdn OCTET STRING(SIZE (8)),
+ mdn OCTET STRING(SIZE (8)),
+ min BIT STRING(SIZE (34)), -- coded according to TIA-553
+ imsi OCTET STRING(SIZE (8)),
+ nai IA5String(SIZE (1..1000)),
+ iPAddress IPAddress,
+ ...}
+
+-- msisdn, mdn and imsi are a BCD (Binary Coded Decimal) string
+-- represent digits from 0 through 9,
+-- two digits per octet, each digit encoded 0000 to 1001 (0 to 9)
+-- bits 8765 of octet n encoding digit 2n
+-- bits 4321 of octet n encoding digit 2(n-1) +1
+-- not used digits in the string shall be filled with 1111
+SlpSessionID ::= SEQUENCE {
+ sessionID OCTET STRING(SIZE (4)),
+ slpId SLPAddress}
+
+IPAddress ::= CHOICE {
+ ipv4Address OCTET STRING(SIZE (4)),
+ ipv6Address OCTET STRING(SIZE (16))}
+
+SLPAddress ::= CHOICE {iPAddress IPAddress,
+ fQDN FQDN,
+ ...}
+
+FQDN ::=
+ VisibleString(FROM ("a".."z" | "A".."Z" | "0".."9" | ".-"))(SIZE (1..255))
+
+Ver ::= BIT STRING(SIZE (64))
+
+LocationId ::= SEQUENCE {cellInfo CellInfo,
+ status Status,
+ ...}
+
+Status ::= ENUMERATED {stale(0), current(1), unknown(2), ...
+ }
+CellInfo ::= CHOICE {
+ gsmCell GsmCellInformation,
+ wcdmaCell WcdmaCellInformation,
+ cdmaCell CdmaCellInformation,
+ ...}
+
+Position ::= SEQUENCE {
+ timestamp UTCTime, -- shall include seconds and shall use UTC time.
+ positionEstimate PositionEstimate,
+ velocity Velocity OPTIONAL,
+ ...}
+
+PositionEstimate ::= SEQUENCE {
+ latitudeSign ENUMERATED {north, south},
+ latitude INTEGER(0..8388607),
+ longitude INTEGER(-8388608..8388607),
+ uncertainty
+ SEQUENCE {uncertaintySemiMajor INTEGER(0..127),
+ uncertaintySemiMinor INTEGER(0..127),
+ orientationMajorAxis INTEGER(0..180)} OPTIONAL,
+ -- angle in degree between major axis and North
+ confidence INTEGER(0..100) OPTIONAL,
+ altitudeInfo AltitudeInfo OPTIONAL,
+ ...}
+
+AltitudeInfo ::= SEQUENCE {
+ altitudeDirection ENUMERATED {height, depth},
+ altitude INTEGER(0..32767),
+ altUncertainty INTEGER(0..127),
+ ...} -- based on 3GPP TS 23.032
+
+CdmaCellInformation ::= SEQUENCE {
+ refNID INTEGER(0..65535), -- Network Id
+ refSID INTEGER(0..32767), -- System Id
+ refBASEID INTEGER(0..65535), -- Base Station Id
+ refBASELAT INTEGER(0..4194303), -- Base Station Latitude
+ reBASELONG INTEGER(0..8388607), -- Base Station Longitude
+ refREFPN INTEGER(0..511), -- Base Station PN Code
+ refWeekNumber INTEGER(0..65535), -- GPS Week Number
+ refSeconds INTEGER(0..4194303)-- GPS Seconds -- ,
+ ...}
+
+GsmCellInformation ::= SEQUENCE {
+ refMCC INTEGER(0..999), -- Mobile Country Code
+ refMNC INTEGER(0..999), -- Mobile Network Code
+ refLAC INTEGER(0..65535), -- Location area code
+ refCI INTEGER(0..65535), -- Cell identity
+ nMR NMR OPTIONAL,
+ tA INTEGER(0..255) OPTIONAL, --Timing Advance
+ ...}
+
+WcdmaCellInformation ::= SEQUENCE {
+ refMCC INTEGER(0..999), -- Mobile Country Code
+ refMNC INTEGER(0..999), -- Mobile Network Code
+ refUC INTEGER(0..268435455), -- Cell identity
+ frequencyInfo FrequencyInfo OPTIONAL,
+ primaryScramblingCode INTEGER(0..511) OPTIONAL,
+ measuredResultsList MeasuredResultsList OPTIONAL,
+ ...}
+
+FrequencyInfo ::= SEQUENCE {
+ modeSpecificInfo CHOICE {fdd FrequencyInfoFDD,
+ tdd FrequencyInfoTDD,
+ ...},
+ ...}
+
+FrequencyInfoFDD ::= SEQUENCE {
+ uarfcn-UL UARFCN OPTIONAL,
+ uarfcn-DL UARFCN,
+ ...}
+
+FrequencyInfoTDD ::= SEQUENCE {uarfcn-Nt UARFCN,
+ ...}
+
+UARFCN ::= INTEGER(0..16383)
+
+NMR ::= SEQUENCE (SIZE (1..15)) OF NMRelement
+
+NMRelement ::= SEQUENCE {
+ aRFCN INTEGER(0..1023),
+ bSIC INTEGER(0..63),
+ rxLev INTEGER(0..63),
+ ...}
+
+MeasuredResultsList ::= SEQUENCE (SIZE (1..maxFreq)) OF MeasuredResults
+
+MeasuredResults ::= SEQUENCE {
+ frequencyInfo FrequencyInfo OPTIONAL,
+ utra-CarrierRSSI UTRA-CarrierRSSI OPTIONAL,
+ cellMeasuredResultsList CellMeasuredResultsList OPTIONAL}
+
+CellMeasuredResultsList ::=
+ SEQUENCE (SIZE (1..maxCellMeas)) OF CellMeasuredResults
+
+-- SPARE: UTRA-CarrierRSSI, Max = 76
+-- Values above Max are spare
+UTRA-CarrierRSSI ::= INTEGER(0..127)
+
+CellMeasuredResults ::= SEQUENCE {
+ cellIdentity INTEGER(0..268435455) OPTIONAL,
+ modeSpecificInfo
+ CHOICE {fdd
+ SEQUENCE {primaryCPICH-Info PrimaryCPICH-Info,
+ cpich-Ec-N0 CPICH-Ec-N0 OPTIONAL,
+ cpich-RSCP CPICH-RSCP OPTIONAL,
+ pathloss Pathloss OPTIONAL},
+ tdd
+ SEQUENCE {cellParametersID CellParametersID,
+ proposedTGSN TGSN OPTIONAL,
+ primaryCCPCH-RSCP PrimaryCCPCH-RSCP OPTIONAL,
+ pathloss Pathloss OPTIONAL,
+ timeslotISCP-List TimeslotISCP-List OPTIONAL}}}
+
+CellParametersID ::= INTEGER(0..127)
+
+TGSN ::= INTEGER(0..14)
+
+PrimaryCCPCH-RSCP ::= INTEGER(0..127)
+
+-- SPARE: TimeslotISCP, Max = 91
+-- Values above Max are spare
+TimeslotISCP ::= INTEGER(0..127)
+
+TimeslotISCP-List ::= SEQUENCE (SIZE (1..maxTS)) OF TimeslotISCP
+
+PrimaryCPICH-Info ::= SEQUENCE {primaryScramblingCode INTEGER(0..511)}
+
+-- SPARE: CPICH-Ec-No, Max = 49
+-- Values above Max are spare
+CPICH-Ec-N0 ::= INTEGER(0..63)
+
+-- SPARE: CPICH- RSCP, Max = 91
+-- Values above Max are spare
+CPICH-RSCP ::= INTEGER(0..127)
+
+-- SPARE: Pathloss, Max = 158
+-- Values above Max are spare
+Pathloss ::= INTEGER(46..173)
+
+maxCellMeas INTEGER ::= 32
+
+maxFreq INTEGER ::= 8
+
+maxTS INTEGER ::= 14
+
+StatusCode ::= ENUMERATED {
+ unspecified(0), systemFailure(1), unexpectedMessage(2), protocolError(3),
+ dataMissing(4), unexpectedDataValue(5), posMethodFailure(6),
+ posMethodMismatch(7), posProtocolMismatch(8), targetSETnotReachable(9),
+ versionNotSupported(10), resourceShortage(11), invalidSessionId(12),
+ nonProxyModeNotSupported(13), proxyModeNotSupported(14),
+ positioningNotPermitted(15), authNetFailure(16), authSuplinitFailure(17), consentDeniedByUser(100),
+ consentGrantedByUser(101), ...
+ }
+QoP ::= SEQUENCE {
+ horacc INTEGER(0..127),
+ veracc INTEGER(0..127) OPTIONAL, -- as defined in 3GPP TS 23.032 “uncertainty altitude”—
+ maxLocAge INTEGER(0..65535) OPTIONAL,
+ delay INTEGER(0..7) OPTIONAL, -- as defined in 3GPP TS 44.031
+ ...}
+
+Velocity ::= CHOICE { -- velocity definition as per 23.032
+ horvel Horvel,
+ horandvervel Horandvervel,
+ horveluncert Horveluncert,
+ horandveruncert Horandveruncert,
+ ...}
+
+Horvel ::= SEQUENCE {
+ bearing BIT STRING(SIZE (9)),
+ horspeed BIT STRING(SIZE (16)),
+ ...}
+
+Horandvervel ::= SEQUENCE {
+ verdirect BIT STRING(SIZE (1)),
+ bearing BIT STRING(SIZE (9)),
+ horspeed BIT STRING(SIZE (16)),
+ verspeed BIT STRING(SIZE (8)),
+ ...}
+
+Horveluncert ::= SEQUENCE {
+ bearing BIT STRING(SIZE (9)),
+ horspeed BIT STRING(SIZE (16)),
+ uncertspeed BIT STRING(SIZE (8)),
+ ...}
+
+Horandveruncert ::= SEQUENCE {
+ verdirect BIT STRING(SIZE (1)),
+ bearing BIT STRING(SIZE (9)),
+ horspeed BIT STRING(SIZE (16)),
+ verspeed BIT STRING(SIZE (8)),
+ horuncertspeed BIT STRING(SIZE (8)),
+ veruncertspeed BIT STRING(SIZE (8)),
+ ...}
+
+PosMethod ::= ENUMERATED {
+ agpsSETassisted(0), agpsSETbased(1), agpsSETassistedpref(2),
+ agpsSETbasedpref(3), autonomousGPS(4), aFLT(5), eCID(6), eOTD(7), oTDOA(8),
+ noPosition(9), ...
+ }
+END
diff --git a/asn1/ulp/ULP.asn b/asn1/ulp/ULP.asn
index 22ea6fc460..e5b9753dc6 100644
--- a/asn1/ulp/ULP.asn
+++ b/asn1/ulp/ULP.asn
@@ -1,602 +1,50 @@
-ULP DEFINITIONS AUTOMATIC TAGS ::=
-BEGIN
-
---IMPORTS
--- Version, SessionID
--- FROM ULP-Components
--- SUPLINIT
--- FROM SUPL-INIT
--- SUPLSTART
--- FROM SUPL-START
--- SUPLRESPONSE
--- FROM SUPL-RESPONSE
--- SUPLPOSINIT
--- FROM SUPL-POS-INIT
--- SUPLPOS
--- FROM SUPL-POS
--- SUPLEND
--- FROM SUPL-END
--- SUPLAUTHREQ
--- FROM SUPL-AUTH-REQ
--- SUPLAUTHRESP
--- FROM SUPL-AUTH-RESP;
-
--- general ULP PDU layout;
-ULP-PDU ::= SEQUENCE {
- length INTEGER(0..65535),
- version Version,
- sessionID SessionID,
- message UlpMessage}
-
-UlpMessage ::= CHOICE {
- msSUPLINIT SUPLINIT,
- msSUPLSTART SUPLSTART,
- msSUPLRESPONSE SUPLRESPONSE,
- msSUPLPOSINIT SUPLPOSINIT,
- msSUPLPOS SUPLPOS,
- msSUPLEND SUPLEND,
- msSUPLAUTHREQ SUPLAUTHREQ,
- msSUPLAUTHRESP SUPLAUTHRESP,
- ...}
-
--- END
---ULP-Components DEFINITIONS AUTOMATIC TAGS ::=
---BEGIN
-
---EXPORTS
--- Version, SessionID, IPAddress, SLPAddress, LocationId, Position, StatusCode,
--- Velocity, QoP, PosMethod, Ver;
-
--- protocol version expressed as x.y.z (e.g., 5.1.0)
-Version ::= SEQUENCE {
- maj INTEGER(0..255),
- min INTEGER(0..255),
- servind INTEGER(0..255)}
-
-SessionID ::= SEQUENCE {
- setSessionID SetSessionID OPTIONAL, -- the semantics of OPTIONAL applies to the encoding only. The parameter itself is MANDATORY. This is introduced only to minimize bandwidth for the SUPL INIT message. Since the setSessionID is allocated by the SET, there is no setSessionID to be transmitted in the SUPL INIT message.
- slpSessionID SlpSessionID OPTIONAL -- the semantics of OPTIONAL applies to the encoding only. The parameter itself is MANDATORY. This is introduced only to minimize bandwidth for the SUPL START message. Since the slpSessionID is allocated by the SLP, there is no slpSessionID to be transmitted in the SUPL START message.--}
-
-SetSessionID ::= SEQUENCE {sessionId INTEGER(0..65535),
- setId SETId}
-
-SETId ::= CHOICE {
- msisdn OCTET STRING(SIZE (8)),
- mdn OCTET STRING(SIZE (8)),
- min BIT STRING(SIZE (34)), -- coded according to TIA-553
- imsi OCTET STRING(SIZE (8)),
- nai IA5String(SIZE (1..1000)),
- iPAddress IPAddress,
- ...}
-
--- msisdn, mdn and imsi are a BCD (Binary Coded Decimal) string
--- represent digits from 0 through 9,
--- two digits per octet, each digit encoded 0000 to 1001 (0 to 9)
--- bits 8765 of octet n encoding digit 2n
--- bits 4321 of octet n encoding digit 2(n-1) +1
--- not used digits in the string shall be filled with 1111
-SlpSessionID ::= SEQUENCE {
- sessionID OCTET STRING(SIZE (4)),
- slpId SLPAddress}
-
-IPAddress ::= CHOICE {
- ipv4Address IPv4Address,
- ipv6Address IPv6Address
- }
-
-IPv4Address ::= OCTET STRING(SIZE (4))
-IPv6Address ::= OCTET STRING(SIZE (16))
-
-SLPAddress ::= CHOICE {iPAddress IPAddress,
- fQDN FQDN,
- ...}
-
-FQDN ::= VisibleString(SIZE (1..255))
--- VisibleString(FROM ("a".."z" | "A".."Z" | "0".."9" | ".-"))(SIZE (1..255))
-
-Ver ::= BIT STRING(SIZE (64))
-
---LocationId ::= SEQUENCE {gsmCell GsmCellInformation OPTIONAL,
--- wcdmaCell WcdmaCellInformation OPTIONAL,
--- cdmaCell CdmaCellInformation OPTIONAL,
--- status Status,
--- ...}
-LocationId ::= SEQUENCE {
- cellInfo CellInfo,
- status Status,
- ...
-}
-
-Status ::= ENUMERATED {
- stale(0),
- current(1),
- unknown(2),
- ...
- }
-
-CellInfo ::= CHOICE {
- gsmCell GsmCellInformation,
- wcdmaCell WcdmaCellInformation,
- cdmaCell CdmaCellInformation,
- ...
- }
-
-Position ::= SEQUENCE {
- timestamp UTCTime,
- -- shall include seconds and shall use UTC time.
- positionEstimate PositionEstimate,
- velocity Velocity OPTIONAL,
- ...
- }
-
-PositionEstimate ::= SEQUENCE {
- latitudeSign ENUMERATED {north, south},
- latitude INTEGER(0..8388607),
- longitude INTEGER(-8388608..8388607),
- uncertainty
- SEQUENCE {uncertaintySemiMajor INTEGER(0..127),
- uncertaintySemiMinor INTEGER(0..127),
- orientationMajorAxis INTEGER(0..180)} OPTIONAL,
- -- angle in degree between major axis and North
- confidence INTEGER(0..100) OPTIONAL,
- altitudeInfo AltitudeInfo OPTIONAL,
- ...}
-
-AltitudeInfo ::= SEQUENCE {
- altitudeDirection ENUMERATED {height, depth},
- altitude INTEGER(0..32767),
- altUncertainty INTEGER(0..127),
- ...} -- based on 3GPP TS 23.032
-
-CdmaCellInformation ::= SEQUENCE {
- refNID INTEGER(0..65535), -- Network Id
- refSID INTEGER(0..32767), -- System Id
- refBASEID INTEGER(0..65535), -- Base Station Id
- refBASELAT INTEGER(0..4194303), -- Base Station Latitude
- reBASELONG INTEGER(0..8388607), -- Base Station Longitude
- refREFPN INTEGER(0..511), -- Base Station PN Code
- refWeekNumber INTEGER(0..65535), -- GPS Week Number
- refSeconds INTEGER(0..4194303)-- GPS Seconds -- ,
- ...}
-
-GsmCellInformation ::= SEQUENCE {
- refMCC INTEGER(0..999), -- Mobile Country Code
- refMNC INTEGER(0..999), -- Mobile Network Code
- refLAC INTEGER(0..65535), -- Location area code
- refCI INTEGER(0..65535), -- Cell identity
- nMR NMR OPTIONAL,
- tA INTEGER(0..255) OPTIONAL, --Timing Advance
- ...}
-
-WcdmaCellInformation ::= SEQUENCE {
- refMCC INTEGER(0..999), -- Mobile Country Code
- refMNC INTEGER(0..999), -- Mobile Network Code
- refUC INTEGER(0..268435455), -- Cell identity
- frequencyInfo FrequencyInfo OPTIONAL,
- primaryScramblingCode INTEGER(0..511) OPTIONAL,
- measuredResultsList MeasuredResultsList OPTIONAL,
- ...}
-
-FrequencyInfo ::= SEQUENCE {
- modeSpecificInfo CHOICE {fdd FrequencyInfoFDD,
- tdd FrequencyInfoTDD,
- ...},
- ...}
-
-FrequencyInfoFDD ::= SEQUENCE {
- uarfcn-UL UARFCN OPTIONAL,
- uarfcn-DL UARFCN,
- ...}
-
-FrequencyInfoTDD ::= SEQUENCE {
- uarfcn-Nt UARFCN,
- ...
- }
-
-UARFCN ::= INTEGER(0..16383)
-
-NMR ::= SEQUENCE (SIZE (1..15)) OF NMRelement
-
-NMRelement ::= SEQUENCE {
- aRFCN INTEGER(0..1023),
- bSIC INTEGER(0..63),
- rxLev INTEGER(0..63),
- ...}
-
-MeasuredResultsList ::= SEQUENCE (SIZE (1..maxFreq)) OF MeasuredResults
-
-MeasuredResults ::= SEQUENCE {
- frequencyInfo FrequencyInfo OPTIONAL,
- utra-CarrierRSSI UTRA-CarrierRSSI OPTIONAL,
- cellMeasuredResultsList CellMeasuredResultsList OPTIONAL}
-
-CellMeasuredResultsList ::=
- SEQUENCE (SIZE (1..maxCellMeas)) OF CellMeasuredResults
-
--- SPARE: UTRA-CarrierRSSI, Max = 76
--- Values above Max are spare
-UTRA-CarrierRSSI ::= INTEGER(0..127)
-
-CellMeasuredResults ::= SEQUENCE {
- cellIdentity INTEGER(0..268435455) OPTIONAL,
- modeSpecificInfo
- CHOICE {fdd
- SEQUENCE {primaryCPICH-Info PrimaryCPICH-Info,
- cpich-Ec-N0 CPICH-Ec-N0 OPTIONAL,
- cpich-RSCP CPICH-RSCP OPTIONAL,
- pathloss Pathloss OPTIONAL},
- tdd
- SEQUENCE {cellParametersID CellParametersID,
- proposedTGSN TGSN OPTIONAL,
- primaryCCPCH-RSCP PrimaryCCPCH-RSCP OPTIONAL,
- pathloss Pathloss OPTIONAL,
- timeslotISCP-List TimeslotISCP-List OPTIONAL}}}
-
-CellParametersID ::= INTEGER(0..127)
-
-TGSN ::= INTEGER(0..14)
-
-PrimaryCCPCH-RSCP ::= INTEGER(0..127)
-
--- SPARE: TimeslotISCP, Max = 91
--- Values above Max are spare
-TimeslotISCP ::= INTEGER(0..127)
-
-TimeslotISCP-List ::= SEQUENCE (SIZE (1..maxTS)) OF TimeslotISCP
-
-PrimaryCPICH-Info ::= SEQUENCE {primaryScramblingCode INTEGER(0..511)}
-
--- SPARE: CPICH-Ec-No, Max = 49
--- Values above Max are spare
-CPICH-Ec-N0 ::= INTEGER(0..63)
-
--- SPARE: CPICH- RSCP, Max = 91
--- Values above Max are spare
-CPICH-RSCP ::= INTEGER(0..127)
-
--- SPARE: Pathloss, Max = 158
--- Values above Max are spare
-Pathloss ::= INTEGER(46..173)
-
-maxCellMeas INTEGER ::= 32
-
-maxFreq INTEGER ::= 8
-
-maxTS INTEGER ::= 14
-
-StatusCode ::= ENUMERATED {
- unspecified(0),
- systemFailure(1),
- unexpectedMessage(2),
- protocolError(3),
- dataMissing(4),
- unexpectedDataValue(5),
- posMethodFailure(6),
- posMethodMismatch(7),
- posProtocolMismatch(8),
- targetSETnotReachable(9),
- versionNotSupported(10),
- resourceShortage(11),
- invalidSessionId(12),
- nonProxyModeNotSupported(13),
- proxyModeNotSupported(14),
- positioningNotPermitted(15),
- authNetFailure(16),
- authSuplinitFailure(17),
- consentDeniedByUser(100),
- consentGrantedByUser(101),
- ...
- }
-
-QoP ::= SEQUENCE {
- horacc INTEGER(0..127),
- veracc INTEGER(0..127) OPTIONAL, -- as defined in 3GPP TS 23.032 “uncertainty altitude”-
- maxLocAge INTEGER(0..65535) OPTIONAL,
- delay INTEGER(0..7) OPTIONAL, -- as defined in 3GPP TS 44.031
- ...}
-
-Velocity ::= CHOICE { -- velocity definition as per 23.032
- horvel Horvel,
- horandvervel Horandvervel,
- horveluncert Horveluncert,
- horandveruncert Horandveruncert,
- ...}
-
-Horvel ::= SEQUENCE {
- bearing BIT STRING(SIZE (9)),
- horspeed BIT STRING(SIZE (16)),
- ...}
-
-Horandvervel ::= SEQUENCE {
- verdirect BIT STRING(SIZE (1)),
- bearing BIT STRING(SIZE (9)),
- horspeed BIT STRING(SIZE (16)),
- verspeed BIT STRING(SIZE (8)),
- ...}
-
-Horveluncert ::= SEQUENCE {
- bearing BIT STRING(SIZE (9)),
- horspeed BIT STRING(SIZE (16)),
- uncertspeed BIT STRING(SIZE (8)),
- ...}
-
-Horandveruncert ::= SEQUENCE {
- verdirect BIT STRING(SIZE (1)),
- bearing BIT STRING(SIZE (9)),
- horspeed BIT STRING(SIZE (16)),
- verspeed BIT STRING(SIZE (8)),
- horuncertspeed BIT STRING(SIZE (8)),
- veruncertspeed BIT STRING(SIZE (8)),
- ...}
-
-PosMethod ::= ENUMERATED {
- agpsSETassisted(0), agpsSETbased(1), agpsSETassistedpref(2),
- agpsSETbasedpref(3), autonomousGPS(4), aFLT(5), eCID(6), eOTD(7), oTDOA(8),
- noPosition(9), ...
- }
-
---END
---SUPL-AUTH-REQ DEFINITIONS AUTOMATIC TAGS ::=
---BEGIN
-
---EXPORTS SUPLAUTHREQ;
-
-SUPLAUTHREQ ::= SEQUENCE {
- sETNonce SETNonce,
- keyIdentity2 KeyIdentity2,
- ...}
-
-SETNonce ::= BIT STRING(SIZE (128))
-
-KeyIdentity2 ::= BIT STRING(SIZE (128))
-
---END
---SUPL-AUTH-RESP DEFINITIONS AUTOMATIC TAGS ::=
---BEGIN
-
---EXPORTS SUPLAUTHRESP;
-
---IMPORTS StatusCode
--- FROM ULP-Components;
-
-SUPLAUTHRESP ::= SEQUENCE {
- sPCAuthKey SPCAuthKey OPTIONAL,
- keyIdentity3 KeyIdentity3 OPTIONAL,
- statusCode StatusCode OPTIONAL,
- ...}
-
-SPCAuthKey ::= CHOICE {
- shortKey BIT STRING(SIZE (128)),
- longKey BIT STRING(SIZE (256)),
- ...}
-
-KeyIdentity3 ::= BIT STRING(SIZE (128))
-
---END
---SUPL-END DEFINITIONS AUTOMATIC TAGS ::=
---BEGIN
-
---EXPORTS SUPLEND;
-
---IMPORTS StatusCode, Position, Ver
--- FROM ULP-Components;
-
-SUPLEND ::= SEQUENCE {
- position Position OPTIONAL,
- statusCode StatusCode OPTIONAL,
- ver Ver OPTIONAL,
- ...}
-
-
---END
---SUPL-INIT DEFINITIONS AUTOMATIC TAGS ::=
---BEGIN
-
---EXPORTS SUPLINIT;
-
---IMPORTS SLPAddress, QoP, PosMethod
--- FROM ULP-Components;
-
-SUPLINIT ::= SEQUENCE {
- posMethod PosMethod,
- notification Notification OPTIONAL,
- sLPAddress SLPAddress OPTIONAL,
- qoP QoP OPTIONAL,
- sLPMode SLPMode,
- mAC MAC OPTIONAL,
- keyIdentity KeyIdentity OPTIONAL,
- ...}
-
-Notification ::= SEQUENCE {
- notificationType NotificationType,
- encodingType EncodingType OPTIONAL,
- requestorId OCTET STRING(SIZE (1..maxReqLength)) OPTIONAL,
- requestorIdType FormatIndicator OPTIONAL,
- clientName OCTET STRING(SIZE (1..maxClientLength)) OPTIONAL,
- clientNameType FormatIndicator OPTIONAL,
- ...}
-
-NotificationType ::= ENUMERATED {
- noNotificationNoVerification(0),
- notificationOnly(1),
- notificationAndVerficationAllowedNA(2),
- notificationAndVerficationDeniedNA(3),
- privacyOverride(4),
- ...
- }
-
-EncodingType ::= ENUMERATED {
- ucs2(0),
- gsmDefault(1),
- utf8(2),
- ...
- }
-
-maxReqLength INTEGER ::= 50
-
-maxClientLength INTEGER ::= 50
-
-FormatIndicator ::= ENUMERATED {
- logicalName(0),
- e-mailAddress(1),
- msisdn(2),
- url(3),
- sipUrl(4),
- min(5),
- mdn(6),
- ...
- }
-
-
-SLPMode ::= ENUMERATED {proxy(0), nonProxy(1)}
-
-MAC ::= BIT STRING(SIZE (64))
-
-KeyIdentity ::= BIT STRING(SIZE (128))
-
---END
---SUPL-POS DEFINITIONS AUTOMATIC TAGS ::=
---BEGIN
-
---EXPORTS SUPLPOS;
-
---IMPORTS Velocity
--- FROM ULP-Components;
-
-SUPLPOS ::= SEQUENCE {
- posPayLoad PosPayLoad,
- velocity Velocity OPTIONAL,
- ...}
-
-PosPayLoad ::= CHOICE {
- tia801payload OCTET STRING(SIZE (1..8192)),
- rrcPayload OCTET STRING(SIZE (1..8192)),
- rrlpPayload RRLPPayload,
- ...}
-
-RRLPPayload ::= OCTET STRING(SIZE (1..8192))
-
---END
---SUPL-POS-INIT DEFINITIONS AUTOMATIC TAGS ::=
---BEGIN
-
---EXPORTS SUPLPOSINIT;
-
---IMPORTS
--- SUPLPOS
--- FROM SUPL-POS
--- SETCapabilities
--- FROM SUPL-START
--- LocationId, Position, Ver
--- FROM ULP-Components;
-
-SUPLPOSINIT ::= SEQUENCE {
- sETCapabilities SETCapabilities,
- requestedAssistData RequestedAssistData OPTIONAL,
- locationId LocationId,
- position Position OPTIONAL,
- sUPLPOS SUPLPOS OPTIONAL,
- ver Ver OPTIONAL,
- ...}
-
-RequestedAssistData ::= SEQUENCE {
- almanacRequested BOOLEAN,
- utcModelRequested BOOLEAN,
- ionosphericModelRequested BOOLEAN,
- dgpsCorrectionsRequested BOOLEAN,
- referenceLocationRequested BOOLEAN,
- referenceTimeRequested BOOLEAN,
- acquisitionAssistanceRequested BOOLEAN,
- realTimeIntegrityRequested BOOLEAN,
- navigationModelRequested BOOLEAN,
- navigationModelData NavigationModel OPTIONAL,
- ...}
-
-NavigationModel ::= SEQUENCE {
- gpsWeek INTEGER(0..1023),
- gpsToe INTEGER(0..167),
- nSAT INTEGER(0..31),
- toeLimit INTEGER(0..10),
- satInfo SatelliteInfo OPTIONAL,
- ...}
-
--- Further information on this fields can be found
--- in 3GPP TS 44.031 and 49.031
-SatelliteInfo ::= SEQUENCE (SIZE (1..31)) OF SatelliteInfoElement
-
-SatelliteInfoElement ::= SEQUENCE {
- satId INTEGER(0..63),
- iODE INTEGER(0..255),
- ...}
-
---END
-
---SUPL-RESPONSE DEFINITIONS AUTOMATIC TAGS ::=
---BEGIN
-
---EXPORTS SUPLRESPONSE;
-
---IMPORTS PosMethod, SLPAddress
--- FROM ULP-Components;
-
-SUPLRESPONSE ::= SEQUENCE {
- posMethod PosMethod,
- sLPAddress SLPAddress OPTIONAL,
- sETAuthKey SETAuthKey OPTIONAL,
- keyIdentity4 KeyIdentity4 OPTIONAL,
- ...}
-
-SETAuthKey ::= CHOICE {
- shortKey BIT STRING(SIZE (128)),
- longKey BIT STRING(SIZE (256)),
- ...}
-
-KeyIdentity4 ::= BIT STRING(SIZE (128))
-
---END
---SUPL-START DEFINITIONS AUTOMATIC TAGS ::=
---BEGIN
-
---EXPORTS SUPLSTART, SETCapabilities;
-
---IMPORTS LocationId, QoP
--- FROM ULP-Components;
-
-SUPLSTART ::= SEQUENCE {
- sETCapabilities SETCapabilities,
- locationId LocationId,
- qoP QoP OPTIONAL,
- ...}
-
-SETCapabilities ::= SEQUENCE {
- posTechnology PosTechnology,
- prefMethod PrefMethod,
- posProtocol PosProtocol,
- ...}
-
-PosTechnology ::= SEQUENCE {
- agpsSETassisted BOOLEAN,
- agpsSETBased BOOLEAN,
- autonomousGPS BOOLEAN,
- aFLT BOOLEAN,
- eCID BOOLEAN,
- eOTD BOOLEAN,
- oTDOA BOOLEAN,
- ...}
-
-PrefMethod ::= ENUMERATED {
- agpsSETassistedPreferred, agpsSETBasedPreferred, noPreference}
-
-PosProtocol ::= SEQUENCE {
- tia801 BOOLEAN,
- rrlp BOOLEAN,
- rrc BOOLEAN,
- ...}
-
-END
-
-
-
-
-
-
+-- UPL.asn
+--
+-- Taken from OMA UserPlane Location Protocol Candidate Version 1.0 – 22 Jan 2007
+-- http://www.openmobilealliance.org/release_program/docs/SUPL/V1_0-20070122-C/OMA-TS-ULP-V1_0-20070122-C.pdf
+--
+-- 8.1 Common Part
+--
+
+ULP DEFINITIONS AUTOMATIC TAGS ::=
+BEGIN
+
+IMPORTS
+ Version, SessionID
+ FROM ULP-Components
+ SUPLINIT
+ FROM SUPL-INIT
+ SUPLSTART
+ FROM SUPL-START
+ SUPLRESPONSE
+ FROM SUPL-RESPONSE
+ SUPLPOSINIT
+ FROM SUPL-POS-INIT
+ SUPLPOS
+ FROM SUPL-POS
+ SUPLEND
+ FROM SUPL-END
+ SUPLAUTHREQ
+ FROM SUPL-AUTH-REQ
+ SUPLAUTHRESP
+ FROM SUPL-AUTH-RESP;
+
+-- general ULP PDU layout;
+ULP-PDU ::= SEQUENCE {
+ length INTEGER(0..65535),
+ version Version,
+ sessionID SessionID,
+ message UlpMessage}
+
+UlpMessage ::= CHOICE {
+ msSUPLINIT SUPLINIT,
+ msSUPLSTART SUPLSTART,
+ msSUPLRESPONSE SUPLRESPONSE,
+ msSUPLPOSINIT SUPLPOSINIT,
+ msSUPLPOS SUPLPOS,
+ msSUPLEND SUPLEND,
+ msSUPLAUTHREQ SUPLAUTHREQ,
+ msSUPLAUTHRESP SUPLAUTHRESP,
+ ...}
+
+END
diff --git a/asn1/ulp/packet-ulp-template.c b/asn1/ulp/packet-ulp-template.c
index 9f08cac15d..a9c43a9da1 100644
--- a/asn1/ulp/packet-ulp-template.c
+++ b/asn1/ulp/packet-ulp-template.c
@@ -39,9 +39,6 @@
#include <stdio.h>
#include <string.h>
-#include "packet-ulp.h"
-
-#include "packet-ber.h"
#include "packet-per.h"
#include <epan/emem.h>
#include "packet-tcp.h"
@@ -152,5 +149,3 @@ void proto_register_ulp(void) {
}
-
-
diff --git a/asn1/ulp/packet-ulp-template.h b/asn1/ulp/packet-ulp-template.h
deleted file mode 100644
index 53802c798d..0000000000
--- a/asn1/ulp/packet-ulp-template.h
+++ /dev/null
@@ -1,35 +0,0 @@
-/* packet-ulp.h
- * Routines for OMA UserPlane Location Protocol packet dissection
- * Copyright 2006, Anders Broman <anders.broman@ericsson.com>
- *
- * $Id$
- *
- * Wireshark - Network traffic analyzer
- * By Gerald Combs <gerald@wireshark.org>
- * 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
-
-#ifndef PACKET_ULP_H
-#define PACKET_ULP_H
-
-
-
-/* #include "packet-ulp-exp.h" */
-
-#endif /* PACKET_UPL_H */
-
-
diff --git a/asn1/ulp/ulp.cnf b/asn1/ulp/ulp.cnf
index e7161c6682..778bb9bf25 100644
--- a/asn1/ulp/ulp.cnf
+++ b/asn1/ulp/ulp.cnf
@@ -3,19 +3,22 @@
# Copyright 2006 Anders Broman
# $Id$
+#.OPT
+PER
+UNALIGNED
+#.END
+
#.PDU
ULP-PDU
-#.FN_BODY ULP-PDU
-
+#.FN_HDR ULP-PDU
proto_tree_add_item(tree, proto_ulp, tvb, 0, -1, FALSE);
- if (check_col(%(ACTX)s->pinfo->cinfo, COL_PROTOCOL))
- col_set_str(%(ACTX)s->pinfo->cinfo, COL_PROTOCOL, PSNAME);
- if (check_col(%(ACTX)s->pinfo->cinfo, COL_INFO))
- col_clear(%(ACTX)s->pinfo->cinfo, COL_INFO);
-
- %(DEFAULT_BODY)s
+ if (check_col(actx->pinfo->cinfo, COL_PROTOCOL))
+ col_set_str(actx->pinfo->cinfo, COL_PROTOCOL, PSNAME);
+ if (check_col(actx->pinfo->cinfo, COL_INFO))
+ col_clear(actx->pinfo->cinfo, COL_INFO);
+#.END
#.FN_BODY UlpMessage VAL_PTR = &UlpMessage
@@ -36,5 +39,5 @@ guint32 UlpMessage;
if (rrlp_tvb){
call_dissector(rrlp_handle, rrlp_tvb, %(ACTX)s->pinfo, tree);
-
- } \ No newline at end of file
+ }
+#.END