aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/cmip/cmip.cnf
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2007-05-13 20:58:29 +0000
committerAnders Broman <anders.broman@ericsson.com>2007-05-13 20:58:29 +0000
commitc01f3829742dacd6d94dc50be54537661bad0581 (patch)
treeeb3da0d69d5bc62ca587ebd999b6beacd693f168 /asn1/cmip/cmip.cnf
parentb80cb43018aa49bac3e24cabca009ca0471cd579 (diff)
Second step in introducing asn context to BER dissectors just like in PER.
svn path=/trunk/; revision=21753
Diffstat (limited to 'asn1/cmip/cmip.cnf')
-rw-r--r--asn1/cmip/cmip.cnf95
1 files changed, 51 insertions, 44 deletions
diff --git a/asn1/cmip/cmip.cnf b/asn1/cmip/cmip.cnf
index ffb6f95991..5b17c93c4a 100644
--- a/asn1/cmip/cmip.cnf
+++ b/asn1/cmip/cmip.cnf
@@ -15,6 +15,13 @@ ObjectClass
Attribute
RDNSequence
+#.REGISTER
+OperationalState B "2.9.3.2.7.35" "smi2AttributeID(7)operationalState(35)"
+Destination B "2.9.3.2.7.55" "smi2AttributeID(7)destination(55)"
+DiscriminatorConstruct B "2.9.3.2.7.56" "smi2AttributeID(7)discriminatorConstruct(56)"
+NameBinding B "2.9.3.2.7.63" "smi2AttributeID(7)nameBinding(63)"
+ObjectClass B "2.9.3.2.7.65" "smi2AttributeID(7)objectClass(65)"
+
#.NO_EMIT
#.PDU
@@ -24,14 +31,14 @@ RDNSequence
#.FIELD_RENAME
#.FN_HDR CMIPAbortInfo
- if(check_col(pinfo->cinfo, COL_INFO)){
- col_append_fstr(pinfo->cinfo, COL_INFO, "CMIP-A-ABORT");
+ if(check_col(actx->pinfo->cinfo, COL_INFO)){
+ col_append_fstr(actx->pinfo->cinfo, COL_INFO, "CMIP-A-ABORT");
}
#.END
#.FN_HDR CMIPUserInfo
- if(check_col(pinfo->cinfo, COL_INFO)){
- col_append_fstr(pinfo->cinfo, COL_INFO, "CMIP-A-ASSOCIATE");
+ if(check_col(actx->pinfo->cinfo, COL_INFO)){
+ col_append_fstr(actx->pinfo->cinfo, COL_INFO, "CMIP-A-ASSOCIATE");
}
#.END
@@ -39,43 +46,43 @@ RDNSequence
guint32 value;
%(DEFAULT_BODY)s
- if(check_col(pinfo->cinfo, COL_INFO)){
- col_append_fstr(pinfo->cinfo, COL_INFO, " AbortSource:%%s", val_to_str(value, cmip_CMIPAbortSource_vals, " Unknown AbortSource:%%d"));
+ if(check_col(actx->pinfo->cinfo, COL_INFO)){
+ col_append_fstr(actx->pinfo->cinfo, COL_INFO, " AbortSource:%%s", val_to_str(value, cmip_CMIPAbortSource_vals, " Unknown AbortSource:%%d"));
}
#.END
#.FN_BODY Opcode VAL_PTR = &opcode
%(DEFAULT_BODY)s
- if(check_col(pinfo->cinfo, COL_INFO)){
- col_prepend_fstr(pinfo->cinfo, COL_INFO, "%%s", val_to_str(opcode, cmip_Opcode_vals, " Unknown Opcode:%%d"));
+ if(check_col(actx->pinfo->cinfo, COL_INFO)){
+ col_prepend_fstr(actx->pinfo->cinfo, COL_INFO, "%%s", val_to_str(opcode, cmip_Opcode_vals, " Unknown Opcode:%%d"));
}
#.END
#.FN_HDR Invoke
opcode_type=OPCODE_INVOKE;
- if(check_col(pinfo->cinfo, COL_INFO)){
- col_prepend_fstr(pinfo->cinfo, COL_INFO, "Invoke ");
+ if(check_col(actx->pinfo->cinfo, COL_INFO)){
+ col_prepend_fstr(actx->pinfo->cinfo, COL_INFO, "Invoke ");
}
#.END
#.FN_HDR ReturnResult
opcode_type=OPCODE_RETURN_RESULT;
- if(check_col(pinfo->cinfo, COL_INFO)){
- col_prepend_fstr(pinfo->cinfo, COL_INFO, "ReturnResult ");
+ if(check_col(actx->pinfo->cinfo, COL_INFO)){
+ col_prepend_fstr(actx->pinfo->cinfo, COL_INFO, "ReturnResult ");
}
#.END
#.FN_HDR ReturnError
opcode_type=OPCODE_RETURN_ERROR;
- if(check_col(pinfo->cinfo, COL_INFO)){
- col_prepend_fstr(pinfo->cinfo, COL_INFO, "ReturnError ");
+ if(check_col(actx->pinfo->cinfo, COL_INFO)){
+ col_prepend_fstr(actx->pinfo->cinfo, COL_INFO, "ReturnError ");
}
#.END
#.FN_HDR Reject
opcode_type=OPCODE_REJECT;
- if(check_col(pinfo->cinfo, COL_INFO)){
- col_prepend_fstr(pinfo->cinfo, COL_INFO, "Reject ");
+ if(check_col(actx->pinfo->cinfo, COL_INFO)){
+ col_prepend_fstr(actx->pinfo->cinfo, COL_INFO, "Reject ");
}
#.END
@@ -85,55 +92,55 @@ RDNSequence
#.FN_BODY AttributeId/localForm
attributeform = ATTRIBUTE_LOCAL_FORM;
- offset = dissect_ber_integer(implicit_tag, pinfo, tree, tvb, offset, hf_cmip_localForm, NULL);
+ offset = dissect_ber_integer(implicit_tag, actx->pinfo, tree, tvb, offset, hf_cmip_localForm, NULL);
#.FN_BODY Attribute/value
/*XXX handle local form here */
if(attributeform==ATTRIBUTE_GLOBAL_FORM){
- offset=call_ber_oid_callback(attribute_identifier_id, tvb, offset, pinfo, tree);
+ offset=call_ber_oid_callback(attribute_identifier_id, tvb, offset, actx->pinfo, tree);
}
#.FN_PARS AttributeValueAssertion/id
FN_VARIANT = _str VAL_PTR = &attributevalueassertion_id
#.FN_BODY AttributeValueAssertion/value
- offset=call_ber_oid_callback(attributevalueassertion_id, tvb, offset, pinfo, tree);
+ offset=call_ber_oid_callback(attributevalueassertion_id, tvb, offset, actx->pinfo, tree);
#.FN_BODY Argument
switch(opcode_type){
case OPCODE_INVOKE:
switch(opcode){
case 0: /* M-eventreport */
- offset = dissect_cmip_EventReportArgument(FALSE, tvb, offset, pinfo, tree, -1);
+ offset = dissect_cmip_EventReportArgument(FALSE, tvb, offset, actx, tree, -1);
break;
case 1: /* M-eventreport-confirmed */
- offset = dissect_cmip_EventReportArgument(FALSE, tvb, offset, pinfo, tree, -1);
+ offset = dissect_cmip_EventReportArgument(FALSE, tvb, offset, actx, tree, -1);
break;
case 2: /* M-linkedreply */
- offset = dissect_cmip_LinkedReplyArgument(FALSE, tvb, offset, pinfo, tree, -1);
+ offset = dissect_cmip_LinkedReplyArgument(FALSE, tvb, offset, actx, tree, -1);
break;
case 3: /* M-get */
- offset = dissect_cmip_GetArgument(FALSE, tvb, offset, pinfo, tree, -1);
+ offset = dissect_cmip_GetArgument(FALSE, tvb, offset,actx, tree, -1);
break;
case 4: /* M-set */
- offset = dissect_cmip_SetArgument(FALSE, tvb, offset, pinfo, tree, -1);
+ offset = dissect_cmip_SetArgument(FALSE, tvb, offset,actx, tree, -1);
break;
case 5: /* M-set-confirmed */
- offset = dissect_cmip_SetArgument(FALSE, tvb, offset, pinfo, tree, -1);
+ offset = dissect_cmip_SetArgument(FALSE, tvb, offset,actx, tree, -1);
break;
case 6: /* M-action*/
- offset = dissect_cmip_ActionArgument(FALSE, tvb, offset, pinfo, tree, -1);
+ offset = dissect_cmip_ActionArgument(FALSE, tvb, offset, actx, tree, -1);
break;
case 7: /* M-action-confirmed*/
- offset = dissect_cmip_ActionArgument(FALSE, tvb, offset, pinfo, tree, -1);
+ offset = dissect_cmip_ActionArgument(FALSE, tvb, offset, actx, tree, -1);
break;
case 8: /* M-create*/
- offset = dissect_cmip_CreateArgument(FALSE, tvb, offset, pinfo, tree, -1);
+ offset = dissect_cmip_CreateArgument(FALSE, tvb, offset, actx, tree, -1);
break;
case 9: /* M-delete*/
- offset = dissect_cmip_DeleteArgument(FALSE, tvb, offset, pinfo, tree, -1);
+ offset = dissect_cmip_DeleteArgument(FALSE, tvb, offset, actx, tree, -1);
break;
case 10: /* M-cancelget */
- offset = dissect_cmip_InvokeIDType(FALSE, tvb, offset, pinfo, tree, -1);
+ offset = dissect_cmip_InvokeIDType(FALSE, tvb, offset, actx, tree, -1);
break;
}
break;
@@ -142,28 +149,28 @@ RDNSequence
case 0: /* M-eventreport*/
break; /* No return data */
case 1: /* M-eventreport-confirmed */
- offset = dissect_cmip_EventReportResult(FALSE, tvb, offset, pinfo, tree, -1);
+ offset = dissect_cmip_EventReportResult(FALSE, tvb, offset, actx, tree, -1);
break;
case 2: /* M-linkedreply*/
break; /* No return data */
case 3: /* M-get */
- offset = dissect_cmip_GetResult(FALSE, tvb, offset, pinfo, tree, -1);
+ offset = dissect_cmip_GetResult(FALSE, tvb, offset, actx, tree, -1);
break;
case 4: /* M-set */
break; /* No return data */
case 5: /* M-set-confirmed*/
- offset = dissect_cmip_SetResult(FALSE, tvb, offset, pinfo, tree, -1);
+ offset = dissect_cmip_SetResult(FALSE, tvb, offset, actx, tree, -1);
break;
case 6: /* M-action*/
break; /* No return data */
case 7: /* M-action-confirmed*/
- offset = dissect_cmip_ActionResult(FALSE, tvb, offset, pinfo, tree, -1);
+ offset = dissect_cmip_ActionResult(FALSE, tvb, offset, actx, tree, -1);
break;
case 8: /* M-create*/
- offset = dissect_cmip_CreateResult(FALSE, tvb, offset, pinfo, tree, -1);
+ offset = dissect_cmip_CreateResult(FALSE, tvb, offset, actx, tree, -1);
break;
case 9: /* M-delete*/
- offset = dissect_cmip_DeleteResult(FALSE, tvb, offset, pinfo, tree, -1);
+ offset = dissect_cmip_DeleteResult(FALSE, tvb, offset, actx, tree, -1);
break;
case 10: /* M-cancelget */
break; /* doe this one return any data? */
@@ -184,43 +191,43 @@ RDNSequence
FN_VARIANT = _str HF_INDEX = hf_cmip_actionType_OID VAL_PTR = &object_identifier_id
#.FN_BODY ActionInfo/actionInfoArg
- offset=call_ber_oid_callback(object_identifier_id, tvb, offset, pinfo, tree);
+ offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree);
#.FN_PARS ActionReply/actionType
FN_VARIANT = _str HF_INDEX = hf_cmip_actionType_OID VAL_PTR = &object_identifier_id
#.FN_BODY ActionReply/actionReplyInfo
- offset=call_ber_oid_callback(object_identifier_id, tvb, offset, pinfo, tree);
+ offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree);
#.FN_PARS EventReportArgument/eventType
FN_VARIANT = _str HF_INDEX = hf_cmip_eventType_OID VAL_PTR = &object_identifier_id
#.FN_BODY EventReportArgument/eventInfo
- offset=call_ber_oid_callback(object_identifier_id, tvb, offset, pinfo, tree);
+ offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree);
#.FN_PARS EventReply/eventType
FN_VARIANT = _str HF_INDEX = hf_cmip_eventType_OID VAL_PTR = &object_identifier_id
#.FN_BODY EventReply/eventReplyInfo
- offset=call_ber_oid_callback(object_identifier_id, tvb, offset, pinfo, tree);
+ offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree);
#.FN_PARS ModificationItem/attributeId
FN_VARIANT = _str HF_INDEX = hf_cmip_attributeId_OID VAL_PTR = &object_identifier_id
#.FN_BODY ModificationItem/attributeValue
- offset=call_ber_oid_callback(object_identifier_id, tvb, offset, pinfo, tree);
+ offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree);
#.FN_PARS SpecificErrorInfo/errorId
FN_VARIANT = _str HF_INDEX = hf_cmip_errorId_OID VAL_PTR = &object_identifier_id
#.FN_BODY SpecificErrorInfo/errorInfo
- offset=call_ber_oid_callback(object_identifier_id, tvb, offset, pinfo, tree);
+ offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree);
#.FN_PARS AttributeError/attributeId
FN_VARIANT = _str HF_INDEX = hf_cmip_attributeId_OID VAL_PTR = &object_identifier_id
#.FN_BODY AttributeError/attributeValue
- offset=call_ber_oid_callback(object_identifier_id, tvb, offset, pinfo, tree);
+ offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree);
#.FN_PARS ErrorInfo/actionType
FN_VARIANT = _str HF_INDEX = hf_cmip_actionType_OID VAL_PTR = &object_identifier_id
@@ -235,7 +242,7 @@ RDNSequence
FN_VARIANT = _str HF_INDEX = hf_cmip_eventType_OID VAL_PTR = &object_identifier_id
#.FN_BODY InvalidArgumentValueEventValue/eventInfo
- offset=call_ber_oid_callback(object_identifier_id, tvb, offset, pinfo, tree);
+ offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree);
#.END