Wireshark-bugs: [Wireshark-bugs] [Bug 8165] Filter s1ap.eNB_UE_S1AP_ID exists with multiple case

Date: Mon, 14 Jan 2013 15:14:08 +0000

Comment # 4 on bug 8165 from
(In reply to comment #3)
For waht it's worth ASN1 is case sensitive and in a construct as this

UE-S1AP-ID-pair ::= SEQUENCE{
    mME-UE-S1AP-ID        MME-UE-S1AP-ID,
> eNB-UE-S1AP-ID		ENB-UE-S1AP-ID,
    iE-Extensions        ProtocolExtensionContainer {
> {UE-S1AP-ID-pair-ExtIEs} } OPTIONAL,
    ...
}
the left like "eNB-UE-S1AP-ID" MUST start with a lower case letter. I think
that asn2wrs normaly creates the filter based on the left operand but in this
construct:
HandoverRequiredIEs S1AP-PROTOCOL-IES ::= {    
    { ID id-MME-UE-S1AP-ID                            CRITICALITY reject   
TYPE MME-UE-S1AP-ID                                     PRESENCE mandatory }|
    { ID id-eNB-UE-S1AP-ID                            CRITICALITY reject   
TYPE ENB-UE-S1AP-ID                                     PRESENCE mandatory }|

The upper case ENB-UE-S1AP-ID will be used for the hf var in a

static int dissect_ENB_UE_S1AP_ID_PDU(tvbuff_t *tvb _U_, packet_info *pinfo
_U_, proto_tree *tree _U_, void *data _U_) {
  int offset = 0;
  asn1_ctx_t asn1_ctx;
  asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, TRUE, pinfo);
  offset = dissect_s1ap_ENB_UE_S1AP_ID(tvb, offset, &asn1_ctx, tree,
hf_s1ap_ENB_UE_S1AP_ID_PDU);
  offset += 7; offset >>= 3;
  return offset;
}

call. I have no idea how this could be "fixed" in asn2wrs...

Regards
Anders


You are receiving this mail because:
  • You are watching all bug changes.