2004-11-14 05:12:49 +00:00
|
|
|
# cmip.cnf
|
|
|
|
# CMIP conformation file
|
|
|
|
|
2005-08-02 05:21:19 +00:00
|
|
|
# $Id$
|
2004-11-14 05:12:49 +00:00
|
|
|
|
2005-06-25 23:12:24 +00:00
|
|
|
#.INCLUDE ../acse/acse-exp.cnf
|
2004-11-14 05:12:49 +00:00
|
|
|
|
|
|
|
#.EXPORTS
|
|
|
|
CMIPAbortInfo
|
|
|
|
CMIPUserInfo
|
|
|
|
ROS
|
2004-12-13 08:15:34 +00:00
|
|
|
InvokeIDType
|
2005-08-28 15:01:49 +00:00
|
|
|
ObjectInstance
|
|
|
|
ObjectClass
|
|
|
|
Attribute
|
|
|
|
RDNSequence
|
2004-11-14 05:12:49 +00:00
|
|
|
|
2007-05-13 20:58:29 +00:00
|
|
|
#.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)"
|
|
|
|
|
2004-11-14 05:12:49 +00:00
|
|
|
#.NO_EMIT
|
|
|
|
|
|
|
|
#.PDU
|
|
|
|
|
|
|
|
#.TYPE_RENAME
|
|
|
|
|
|
|
|
#.FIELD_RENAME
|
|
|
|
|
|
|
|
#.FN_HDR CMIPAbortInfo
|
2007-05-13 20:58:29 +00:00
|
|
|
if(check_col(actx->pinfo->cinfo, COL_INFO)){
|
|
|
|
col_append_fstr(actx->pinfo->cinfo, COL_INFO, "CMIP-A-ABORT");
|
2004-11-14 05:12:49 +00:00
|
|
|
}
|
|
|
|
#.END
|
|
|
|
|
|
|
|
#.FN_HDR CMIPUserInfo
|
2007-05-13 20:58:29 +00:00
|
|
|
if(check_col(actx->pinfo->cinfo, COL_INFO)){
|
|
|
|
col_append_fstr(actx->pinfo->cinfo, COL_INFO, "CMIP-A-ASSOCIATE");
|
2004-11-14 05:12:49 +00:00
|
|
|
}
|
|
|
|
#.END
|
|
|
|
|
2005-11-14 10:02:31 +00:00
|
|
|
#.FN_BODY CMIPAbortSource VAL_PTR = &value
|
2004-11-14 05:12:49 +00:00
|
|
|
guint32 value;
|
2005-08-28 15:01:49 +00:00
|
|
|
|
|
|
|
%(DEFAULT_BODY)s
|
2007-05-13 20:58:29 +00:00
|
|
|
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"));
|
2004-11-14 05:12:49 +00:00
|
|
|
}
|
|
|
|
#.END
|
|
|
|
|
2005-11-14 10:02:31 +00:00
|
|
|
#.FN_BODY Opcode VAL_PTR = &opcode
|
2005-08-28 15:01:49 +00:00
|
|
|
%(DEFAULT_BODY)s
|
2007-05-13 20:58:29 +00:00
|
|
|
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"));
|
2004-11-14 05:12:49 +00:00
|
|
|
}
|
|
|
|
#.END
|
|
|
|
|
2005-06-23 09:28:46 +00:00
|
|
|
#.FN_HDR Invoke
|
2004-11-14 05:12:49 +00:00
|
|
|
opcode_type=OPCODE_INVOKE;
|
2007-05-13 20:58:29 +00:00
|
|
|
if(check_col(actx->pinfo->cinfo, COL_INFO)){
|
|
|
|
col_prepend_fstr(actx->pinfo->cinfo, COL_INFO, "Invoke ");
|
2004-11-14 05:12:49 +00:00
|
|
|
}
|
|
|
|
#.END
|
|
|
|
|
2005-06-23 09:28:46 +00:00
|
|
|
#.FN_HDR ReturnResult
|
2004-11-14 05:12:49 +00:00
|
|
|
opcode_type=OPCODE_RETURN_RESULT;
|
2007-05-13 20:58:29 +00:00
|
|
|
if(check_col(actx->pinfo->cinfo, COL_INFO)){
|
|
|
|
col_prepend_fstr(actx->pinfo->cinfo, COL_INFO, "ReturnResult ");
|
2004-11-14 05:12:49 +00:00
|
|
|
}
|
|
|
|
#.END
|
|
|
|
|
2005-06-23 09:28:46 +00:00
|
|
|
#.FN_HDR ReturnError
|
2004-11-14 05:12:49 +00:00
|
|
|
opcode_type=OPCODE_RETURN_ERROR;
|
2007-05-13 20:58:29 +00:00
|
|
|
if(check_col(actx->pinfo->cinfo, COL_INFO)){
|
|
|
|
col_prepend_fstr(actx->pinfo->cinfo, COL_INFO, "ReturnError ");
|
2004-11-14 05:12:49 +00:00
|
|
|
}
|
|
|
|
#.END
|
|
|
|
|
2005-06-23 09:28:46 +00:00
|
|
|
#.FN_HDR Reject
|
2004-11-14 05:12:49 +00:00
|
|
|
opcode_type=OPCODE_REJECT;
|
2007-05-13 20:58:29 +00:00
|
|
|
if(check_col(actx->pinfo->cinfo, COL_INFO)){
|
|
|
|
col_prepend_fstr(actx->pinfo->cinfo, COL_INFO, "Reject ");
|
2004-11-14 05:12:49 +00:00
|
|
|
}
|
|
|
|
#.END
|
|
|
|
|
2005-11-14 10:02:31 +00:00
|
|
|
#.FN_BODY AttributeId/globalForm FN_VARIANT = _str VAL_PTR = &attribute_identifier_id
|
2004-11-14 05:12:49 +00:00
|
|
|
attributeform = ATTRIBUTE_GLOBAL_FORM;
|
2005-08-28 15:01:49 +00:00
|
|
|
%(DEFAULT_BODY)s
|
2004-11-14 05:12:49 +00:00
|
|
|
|
|
|
|
#.FN_BODY AttributeId/localForm
|
|
|
|
attributeform = ATTRIBUTE_LOCAL_FORM;
|
2007-05-13 20:58:29 +00:00
|
|
|
offset = dissect_ber_integer(implicit_tag, actx->pinfo, tree, tvb, offset, hf_cmip_localForm, NULL);
|
2004-11-14 05:12:49 +00:00
|
|
|
|
|
|
|
#.FN_BODY Attribute/value
|
|
|
|
/*XXX handle local form here */
|
|
|
|
if(attributeform==ATTRIBUTE_GLOBAL_FORM){
|
2007-05-13 20:58:29 +00:00
|
|
|
offset=call_ber_oid_callback(attribute_identifier_id, tvb, offset, actx->pinfo, tree);
|
2004-11-14 05:12:49 +00:00
|
|
|
}
|
2005-08-28 15:01:49 +00:00
|
|
|
#.FN_PARS AttributeValueAssertion/id
|
2005-11-14 10:02:31 +00:00
|
|
|
FN_VARIANT = _str VAL_PTR = &attributevalueassertion_id
|
2005-08-28 15:01:49 +00:00
|
|
|
|
|
|
|
#.FN_BODY AttributeValueAssertion/value
|
2007-05-13 20:58:29 +00:00
|
|
|
offset=call_ber_oid_callback(attributevalueassertion_id, tvb, offset, actx->pinfo, tree);
|
2004-11-14 05:12:49 +00:00
|
|
|
|
|
|
|
#.FN_BODY Argument
|
|
|
|
switch(opcode_type){
|
|
|
|
case OPCODE_INVOKE:
|
|
|
|
switch(opcode){
|
2004-11-21 23:25:04 +00:00
|
|
|
case 0: /* M-eventreport */
|
2007-05-13 20:58:29 +00:00
|
|
|
offset = dissect_cmip_EventReportArgument(FALSE, tvb, offset, actx, tree, -1);
|
2004-11-21 23:25:04 +00:00
|
|
|
break;
|
|
|
|
case 1: /* M-eventreport-confirmed */
|
2007-05-13 20:58:29 +00:00
|
|
|
offset = dissect_cmip_EventReportArgument(FALSE, tvb, offset, actx, tree, -1);
|
2004-11-21 23:25:04 +00:00
|
|
|
break;
|
|
|
|
case 2: /* M-linkedreply */
|
2007-05-13 20:58:29 +00:00
|
|
|
offset = dissect_cmip_LinkedReplyArgument(FALSE, tvb, offset, actx, tree, -1);
|
2004-11-21 23:25:04 +00:00
|
|
|
break;
|
2004-11-14 05:12:49 +00:00
|
|
|
case 3: /* M-get */
|
2007-05-13 20:58:29 +00:00
|
|
|
offset = dissect_cmip_GetArgument(FALSE, tvb, offset,actx, tree, -1);
|
2004-11-14 05:12:49 +00:00
|
|
|
break;
|
2004-11-21 23:25:04 +00:00
|
|
|
case 4: /* M-set */
|
2007-05-13 20:58:29 +00:00
|
|
|
offset = dissect_cmip_SetArgument(FALSE, tvb, offset,actx, tree, -1);
|
2004-11-21 23:25:04 +00:00
|
|
|
break;
|
|
|
|
case 5: /* M-set-confirmed */
|
2007-05-13 20:58:29 +00:00
|
|
|
offset = dissect_cmip_SetArgument(FALSE, tvb, offset,actx, tree, -1);
|
2004-11-21 23:25:04 +00:00
|
|
|
break;
|
2004-11-21 21:29:10 +00:00
|
|
|
case 6: /* M-action*/
|
2007-05-13 20:58:29 +00:00
|
|
|
offset = dissect_cmip_ActionArgument(FALSE, tvb, offset, actx, tree, -1);
|
2004-11-21 21:29:10 +00:00
|
|
|
break;
|
|
|
|
case 7: /* M-action-confirmed*/
|
2007-05-13 20:58:29 +00:00
|
|
|
offset = dissect_cmip_ActionArgument(FALSE, tvb, offset, actx, tree, -1);
|
2004-11-21 21:29:10 +00:00
|
|
|
break;
|
2004-11-21 23:25:04 +00:00
|
|
|
case 8: /* M-create*/
|
2007-05-13 20:58:29 +00:00
|
|
|
offset = dissect_cmip_CreateArgument(FALSE, tvb, offset, actx, tree, -1);
|
2004-11-21 23:25:04 +00:00
|
|
|
break;
|
|
|
|
case 9: /* M-delete*/
|
2007-05-13 20:58:29 +00:00
|
|
|
offset = dissect_cmip_DeleteArgument(FALSE, tvb, offset, actx, tree, -1);
|
2004-11-21 23:25:04 +00:00
|
|
|
break;
|
|
|
|
case 10: /* M-cancelget */
|
2007-05-13 20:58:29 +00:00
|
|
|
offset = dissect_cmip_InvokeIDType(FALSE, tvb, offset, actx, tree, -1);
|
2004-11-21 23:25:04 +00:00
|
|
|
break;
|
2004-11-14 05:12:49 +00:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case OPCODE_RETURN_RESULT:
|
|
|
|
switch(opcode){
|
2004-11-21 23:25:04 +00:00
|
|
|
case 0: /* M-eventreport*/
|
|
|
|
break; /* No return data */
|
|
|
|
case 1: /* M-eventreport-confirmed */
|
2007-05-13 20:58:29 +00:00
|
|
|
offset = dissect_cmip_EventReportResult(FALSE, tvb, offset, actx, tree, -1);
|
2004-11-21 23:25:04 +00:00
|
|
|
break;
|
|
|
|
case 2: /* M-linkedreply*/
|
|
|
|
break; /* No return data */
|
2004-11-14 05:12:49 +00:00
|
|
|
case 3: /* M-get */
|
2007-05-13 20:58:29 +00:00
|
|
|
offset = dissect_cmip_GetResult(FALSE, tvb, offset, actx, tree, -1);
|
2004-11-14 05:12:49 +00:00
|
|
|
break;
|
2004-11-21 23:25:04 +00:00
|
|
|
case 4: /* M-set */
|
|
|
|
break; /* No return data */
|
|
|
|
case 5: /* M-set-confirmed*/
|
2007-05-13 20:58:29 +00:00
|
|
|
offset = dissect_cmip_SetResult(FALSE, tvb, offset, actx, tree, -1);
|
2004-11-21 23:25:04 +00:00
|
|
|
break;
|
2004-11-21 21:29:10 +00:00
|
|
|
case 6: /* M-action*/
|
|
|
|
break; /* No return data */
|
|
|
|
case 7: /* M-action-confirmed*/
|
2007-05-13 20:58:29 +00:00
|
|
|
offset = dissect_cmip_ActionResult(FALSE, tvb, offset, actx, tree, -1);
|
2004-11-21 21:29:10 +00:00
|
|
|
break;
|
2004-11-21 23:25:04 +00:00
|
|
|
case 8: /* M-create*/
|
2007-05-13 20:58:29 +00:00
|
|
|
offset = dissect_cmip_CreateResult(FALSE, tvb, offset, actx, tree, -1);
|
2004-11-21 23:25:04 +00:00
|
|
|
break;
|
|
|
|
case 9: /* M-delete*/
|
2007-05-13 20:58:29 +00:00
|
|
|
offset = dissect_cmip_DeleteResult(FALSE, tvb, offset, actx, tree, -1);
|
2004-11-21 23:25:04 +00:00
|
|
|
break;
|
|
|
|
case 10: /* M-cancelget */
|
|
|
|
break; /* doe this one return any data? */
|
2004-11-14 05:12:49 +00:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
/*XXX add more types here */
|
|
|
|
}
|
|
|
|
|
2005-11-14 10:02:31 +00:00
|
|
|
#.FN_HDR ObjectClass/ocglobalForm
|
2004-11-14 05:12:49 +00:00
|
|
|
objectclassform = OBJECTCLASS_GLOBAL_FORM;
|
2005-11-14 10:02:31 +00:00
|
|
|
#.FN_PARS ObjectClass/ocglobalForm
|
|
|
|
FN_VARIANT = _str VAL_PTR = &objectclass_identifier_id
|
2004-11-14 05:12:49 +00:00
|
|
|
|
2005-11-14 10:02:31 +00:00
|
|
|
#.FN_HDR ObjectClass/oclocalForm
|
2004-11-14 05:12:49 +00:00
|
|
|
objectclassform = OBJECTCLASS_LOCAL_FORM;
|
|
|
|
|
2005-11-14 10:02:31 +00:00
|
|
|
#.FN_PARS ActionInfo/actionType
|
|
|
|
FN_VARIANT = _str HF_INDEX = hf_cmip_actionType_OID VAL_PTR = &object_identifier_id
|
2004-11-21 21:29:10 +00:00
|
|
|
|
|
|
|
#.FN_BODY ActionInfo/actionInfoArg
|
2007-05-13 20:58:29 +00:00
|
|
|
offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree);
|
2004-11-21 21:29:10 +00:00
|
|
|
|
2005-11-14 10:02:31 +00:00
|
|
|
#.FN_PARS ActionReply/actionType
|
|
|
|
FN_VARIANT = _str HF_INDEX = hf_cmip_actionType_OID VAL_PTR = &object_identifier_id
|
2004-11-21 21:29:10 +00:00
|
|
|
|
|
|
|
#.FN_BODY ActionReply/actionReplyInfo
|
2007-05-13 20:58:29 +00:00
|
|
|
offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree);
|
2004-11-21 21:29:10 +00:00
|
|
|
|
2005-11-14 10:02:31 +00:00
|
|
|
#.FN_PARS EventReportArgument/eventType
|
|
|
|
FN_VARIANT = _str HF_INDEX = hf_cmip_eventType_OID VAL_PTR = &object_identifier_id
|
2004-11-21 23:25:04 +00:00
|
|
|
|
|
|
|
#.FN_BODY EventReportArgument/eventInfo
|
2007-05-13 20:58:29 +00:00
|
|
|
offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree);
|
2004-11-21 23:25:04 +00:00
|
|
|
|
2005-11-14 10:02:31 +00:00
|
|
|
#.FN_PARS EventReply/eventType
|
|
|
|
FN_VARIANT = _str HF_INDEX = hf_cmip_eventType_OID VAL_PTR = &object_identifier_id
|
2004-11-21 23:25:04 +00:00
|
|
|
|
|
|
|
#.FN_BODY EventReply/eventReplyInfo
|
2007-05-13 20:58:29 +00:00
|
|
|
offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree);
|
2004-11-21 23:25:04 +00:00
|
|
|
|
2005-11-14 10:02:31 +00:00
|
|
|
#.FN_PARS ModificationItem/attributeId
|
|
|
|
FN_VARIANT = _str HF_INDEX = hf_cmip_attributeId_OID VAL_PTR = &object_identifier_id
|
2004-11-21 23:25:04 +00:00
|
|
|
|
|
|
|
#.FN_BODY ModificationItem/attributeValue
|
2007-05-13 20:58:29 +00:00
|
|
|
offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree);
|
2004-11-21 23:25:04 +00:00
|
|
|
|
2005-11-14 10:02:31 +00:00
|
|
|
#.FN_PARS SpecificErrorInfo/errorId
|
|
|
|
FN_VARIANT = _str HF_INDEX = hf_cmip_errorId_OID VAL_PTR = &object_identifier_id
|
2004-11-21 23:25:04 +00:00
|
|
|
|
|
|
|
#.FN_BODY SpecificErrorInfo/errorInfo
|
2007-05-13 20:58:29 +00:00
|
|
|
offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree);
|
2004-11-21 23:25:04 +00:00
|
|
|
|
2005-11-14 10:02:31 +00:00
|
|
|
#.FN_PARS AttributeError/attributeId
|
|
|
|
FN_VARIANT = _str HF_INDEX = hf_cmip_attributeId_OID VAL_PTR = &object_identifier_id
|
2004-11-21 23:25:04 +00:00
|
|
|
|
|
|
|
#.FN_BODY AttributeError/attributeValue
|
2007-05-13 20:58:29 +00:00
|
|
|
offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree);
|
2004-11-21 23:25:04 +00:00
|
|
|
|
2005-11-14 10:02:31 +00:00
|
|
|
#.FN_PARS ErrorInfo/actionType
|
|
|
|
FN_VARIANT = _str HF_INDEX = hf_cmip_actionType_OID VAL_PTR = &object_identifier_id
|
2004-11-21 23:25:04 +00:00
|
|
|
|
2005-11-14 10:02:31 +00:00
|
|
|
#.FN_PARS NoSuchArgumentAction/actionType
|
|
|
|
FN_VARIANT = _str HF_INDEX = hf_cmip_actionType_OID VAL_PTR = &object_identifier_id
|
2004-11-21 23:25:04 +00:00
|
|
|
|
2005-11-14 10:02:31 +00:00
|
|
|
#.FN_PARS NoSuchArgumentEvent/eventType
|
|
|
|
FN_VARIANT = _str HF_INDEX = hf_cmip_eventType_OID VAL_PTR = &object_identifier_id
|
2004-11-21 23:25:04 +00:00
|
|
|
|
2005-11-14 10:02:31 +00:00
|
|
|
#.FN_PARS InvalidArgumentValueEventValue/eventType
|
|
|
|
FN_VARIANT = _str HF_INDEX = hf_cmip_eventType_OID VAL_PTR = &object_identifier_id
|
2004-11-21 23:25:04 +00:00
|
|
|
|
|
|
|
#.FN_BODY InvalidArgumentValueEventValue/eventInfo
|
2007-05-13 20:58:29 +00:00
|
|
|
offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree);
|
2004-11-21 23:25:04 +00:00
|
|
|
|
2004-11-14 05:12:49 +00:00
|
|
|
#.END
|
|
|
|
|
|
|
|
|