ETSI's Bug Tracker - CAM
View Issue Details
0007207CAMATSpublic27-10-2015 08:3323-11-2016 14:17
Alexandre Berge 
Sebastian Muellers 
normalminorhave not tried
resolvedfixed 
Test_Spec_TS102868_v1.3.1 
Next Release 
0007207: CamInd's "lower-layer" fields should not be optional
From Elemer Lelik (Ericsson):

type record CamInd {
    CAM msgIn,
    UInt8 gnNextHeader optional,
    UInt8 gnHeaderType optional,
    UInt8 gnHeaderSubtype optional,
    UInt32 gnLifetime optional,
    UInt8 gnTrafficClass optional,
    UInt16 btpDestinationPort optional,
    UInt16 btpInfo optional
}
with {
    encode (msgIn) "LibItsCam_asn1"
}
 
The msgIn part is a PER encoded octetstring, the rest of the fields are encoded in binary according to their declarations.

Problem is , due to the fact that the fields are optional, decoding becomes impossible: let’s assume that we have successfully decode the PER part , which is followed by a single octetsay ‘AB’O;
This can be decoded as :
gnNextHeader ‘AB’O,
all the rest of the filed s being omitted,
or the first field omitted, and the next set to ‘AB’
or a number of other combinations.
Those fields are appended by the Test Adapter (CamPort in this case) to provide information about lower layer (mainly in order to know GN's packet type and BTP destination port). In our implementation of the Codec, they are obviously considered as non optional.
The TTCN-3 declaration is faulty here, those fields should not be optional:

type record CamInd {
    CAM msgIn,
    UInt8 gnNextHeader,
    UInt8 gnHeaderType,
    UInt8 gnHeaderSubtype,
    UInt32 gnLifetime,
    UInt8 gnTrafficClass,
    UInt16 btpDestinationPort,
    UInt16 btpInfo
}
with {
    encode (msgIn) "LibItsCam_asn1"
}
No tags attached.
related to 0007208resolved Sebastian Muellers DENM DenmInd's "lower-layer" fields should not be optional 
Issue History
27-10-2015 08:33Alexandre BergeNew Issue
27-10-2015 08:37Alexandre BergeRelationship addedrelated to 0007208
16-11-2015 10:06Sebastian MuellersProduct Version => Test_Spec_TS102868_v1.3.1
16-11-2015 10:06Sebastian MuellersTarget Version => Next Release
23-11-2016 14:17Sebastian MuellersNote Added: 0014345
23-11-2016 14:17Sebastian MuellersStatusnew => resolved
23-11-2016 14:17Sebastian MuellersResolutionopen => fixed
23-11-2016 14:17Sebastian MuellersAssigned To => Sebastian Muellers

Notes
(0014345)
Sebastian Muellers   
23-11-2016 14:17   
implemented