aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/cmip
diff options
context:
space:
mode:
authorTomas Kukosa <tomas.kukosa@siemens.com>2005-11-14 10:02:31 +0000
committerTomas Kukosa <tomas.kukosa@siemens.com>2005-11-14 10:02:31 +0000
commit3b770d5c7c9aa12a455d6307b762b3fca875fbf7 (patch)
treee8f6231cfc7a837d8fc9901a7a676180dce93bd1 /asn1/cmip
parent0496eb5dcabb32c36084b2efb620fe6fe9a50b12 (diff)
- dissect_ber_object_identifier() returns value as tvb
- new dissect_ber_object_identifier_str() function - BER dissectors adapted and regenerated svn path=/trunk/; revision=16501
Diffstat (limited to 'asn1/cmip')
-rw-r--r--asn1/cmip/cmip.cnf85
-rw-r--r--asn1/cmip/packet-cmip-template.c8
2 files changed, 34 insertions, 59 deletions
diff --git a/asn1/cmip/cmip.cnf b/asn1/cmip/cmip.cnf
index f601cd77b8..c1c0a6a000 100644
--- a/asn1/cmip/cmip.cnf
+++ b/asn1/cmip/cmip.cnf
@@ -38,11 +38,7 @@ RDNSequence
}
#.END
-#.FN_PARS CMIPAbortSource
-
-VAL_PTR = &value
-
-#.FN_BODY CMIPAbortSource
+#.FN_BODY CMIPAbortSource VAL_PTR = &value
guint32 value;
%(DEFAULT_BODY)s
@@ -50,10 +46,8 @@ VAL_PTR = &value
col_append_fstr(pinfo->cinfo, COL_INFO, " AbortSource:%%s", val_to_str(value, cmip_CMIPAbortSource_vals, " Unknown AbortSource:%%d"));
}
#.END
-#.FN_PARS Opcode
- VAL_PTR = &opcode
-#.FN_BODY Opcode
+#.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"));
@@ -88,10 +82,7 @@ VAL_PTR = &value
}
#.END
-#.FN_PARS AttributeId/globalForm
- VAL_PTR = attribute_identifier_id
-
-#.FN_BODY AttributeId/globalForm
+#.FN_BODY AttributeId/globalForm FN_VARIANT = _str VAL_PTR = &attribute_identifier_id
attributeform = ATTRIBUTE_GLOBAL_FORM;
%(DEFAULT_BODY)s
@@ -105,7 +96,7 @@ VAL_PTR = &value
offset=call_ber_oid_callback(attribute_identifier_id, tvb, offset, pinfo, tree);
}
#.FN_PARS AttributeValueAssertion/id
- VAL_PTR = attributevalueassertion_id
+ FN_VARIANT = _str VAL_PTR = &attributevalueassertion_id
#.FN_BODY AttributeValueAssertion/value
offset=call_ber_oid_callback(attributevalueassertion_id, tvb, offset, pinfo, tree);
@@ -184,87 +175,71 @@ VAL_PTR = &value
/*XXX add more types here */
}
-#.FN_BODY ObjectClass/ocglobalForm
+#.FN_HDR ObjectClass/ocglobalForm
objectclassform = OBJECTCLASS_GLOBAL_FORM;
- offset = dissect_ber_object_identifier(implicit_tag, pinfo, tree, tvb, offset,
- hf_cmip_ocglobalForm, objectclass_identifier_id);
+#.FN_PARS ObjectClass/ocglobalForm
+ FN_VARIANT = _str VAL_PTR = &objectclass_identifier_id
-#.FN_BODY ObjectClass/oclocalForm
+#.FN_HDR ObjectClass/oclocalForm
objectclassform = OBJECTCLASS_LOCAL_FORM;
- offset = dissect_ber_integer(implicit_tag, pinfo, tree, tvb, offset, hf_cmip_oclocalForm, NULL);
-#.FN_BODY ActionInfo/actionType
- offset = dissect_ber_object_identifier(FALSE, pinfo, tree, tvb, offset,
- hf_cmip_actionType_OID, object_identifier_id);
+#.FN_PARS ActionInfo/actionType
+ 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);
-#.FN_BODY ActionReply/actionType
- offset = dissect_ber_object_identifier(FALSE, pinfo, tree, tvb, offset,
- hf_cmip_actionType_OID, object_identifier_id);
+#.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);
-#.FN_BODY EventReportArgument/eventType
- offset = dissect_ber_object_identifier(FALSE, pinfo, tree, tvb, offset,
- hf_cmip_eventType_OID, object_identifier_id);
+#.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);
-
-#.FN_BODY EventReply/eventType
- offset = dissect_ber_object_identifier(FALSE, pinfo, tree, tvb, offset,
- hf_cmip_eventType_OID, object_identifier_id);
+#.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);
-#.FN_BODY ModificationItem/attributeId
- offset = dissect_ber_object_identifier(FALSE, pinfo, tree, tvb, offset,
- hf_cmip_attributeId_OID, object_identifier_id);
+#.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);
-
-#.FN_BODY SpecificErrorInfo/errorId
- offset = dissect_ber_object_identifier(FALSE, pinfo, tree, tvb, offset,
- hf_cmip_errorId_OID, object_identifier_id);
+#.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);
-#.FN_BODY AttributeError/attributeId
- offset = dissect_ber_object_identifier(FALSE, pinfo, tree, tvb, offset,
- hf_cmip_attributeId_OID, object_identifier_id);
+#.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);
+#.FN_PARS ErrorInfo/actionType
+ FN_VARIANT = _str HF_INDEX = hf_cmip_actionType_OID VAL_PTR = &object_identifier_id
-#.FN_BODY ErrorInfo/actionType
- offset = dissect_ber_object_identifier(FALSE, pinfo, tree, tvb, offset,
- hf_cmip_actionType_OID, object_identifier_id);
-
-#.FN_BODY NoSuchArgumentAction/actionType
- offset = dissect_ber_object_identifier(FALSE, pinfo, tree, tvb, offset,
- hf_cmip_actionType_OID, object_identifier_id);
+#.FN_PARS NoSuchArgumentAction/actionType
+ FN_VARIANT = _str HF_INDEX = hf_cmip_actionType_OID VAL_PTR = &object_identifier_id
-#.FN_BODY NoSuchArgumentEvent/eventType
- offset = dissect_ber_object_identifier(FALSE, pinfo, tree, tvb, offset,
- hf_cmip_eventType_OID, object_identifier_id);
+#.FN_PARS NoSuchArgumentEvent/eventType
+ FN_VARIANT = _str HF_INDEX = hf_cmip_eventType_OID VAL_PTR = &object_identifier_id
-#.FN_BODY InvalidArgumentValueEventValue/eventType
- offset = dissect_ber_object_identifier(FALSE, pinfo, tree, tvb, offset,
- hf_cmip_eventType_OID, object_identifier_id);
+#.FN_PARS InvalidArgumentValueEventValue/eventType
+ 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);
-
#.END
diff --git a/asn1/cmip/packet-cmip-template.c b/asn1/cmip/packet-cmip-template.c
index 20453fb28b..4799c55980 100644
--- a/asn1/cmip/packet-cmip-template.c
+++ b/asn1/cmip/packet-cmip-template.c
@@ -75,16 +75,16 @@ static int opcode_type;
static int attributeform;
#define ATTRIBUTE_LOCAL_FORM 0
#define ATTRIBUTE_GLOBAL_FORM 1
-static char attribute_identifier_id[BER_MAX_OID_STR_LEN];
+static const char *attribute_identifier_id;
-static char attributevalueassertion_id[BER_MAX_OID_STR_LEN];
+static const char *attributevalueassertion_id;
-static char object_identifier_id[BER_MAX_OID_STR_LEN];
+static const char *object_identifier_id;
static int objectclassform;
#define OBJECTCLASS_LOCAL_FORM 0
#define OBJECTCLASS_GLOBAL_FORM 1
-static char objectclass_identifier_id[BER_MAX_OID_STR_LEN];
+static const char *objectclass_identifier_id;
#include "packet-cmip-fn.c"