ACIItem B "2.5.24.5" "id-aca-entryACI"
ACIItem B "2.5.24.6" "id-aca-subentryACI"
-#.FN_PARS OBJECT_IDENTIFIER
- FN_VARIANT = _str VAL_PTR = &binding_type
-
-#.FN_BODY OBJECT_IDENTIFIER
- const char *name;
-
- %(DEFAULT_BODY)s
-
- if(check_col(actx->pinfo->cinfo, COL_INFO)) {
- name = get_oid_str_name(binding_type);
- col_append_fstr(actx->pinfo->cinfo, COL_INFO, " %%s", name ? name : binding_type);
- }
+#.VIRTUAL_ASSGN
+BindingType EstablishOperationalBindingArgumentData/bindingType
+#.SET_TYPE
+EstablishOperationalBindingArgumentData/bindingType BindingType
+EstablishOperationalBindingResult/bindingType BindingType
+ModifyOperationalBindingArgumentData/bindingType BindingType
+ModifyOperationalBindingResultData/bindingType BindingType
+TerminateOperationalBindingArgumentData/bindingType BindingType
+TerminateOperationalBindingResultData/bindingType BindingType
+OpBindingErrorParam/bindingType BindingType
+#.END
+
+#.FN_PARS BindingType FN_VARIANT = _str VAL_PTR = &binding_type
+#.FN_FTR BindingType
+ append_oid(actx->pinfo, binding_type);
+#.END
#.FN_BODY EstablishSymmetric
offset = call_dop_oid_callback("dop.terminate.roleb", tvb, offset, actx->pinfo, tree, "roleB");
-#.FN_BODY T_agreement
+#.FN_BODY EstablishOperationalBindingArgumentData/agreement
offset = call_dop_oid_callback("dop.agreement", tvb, offset, actx->pinfo, tree, NULL);
-#.FN_BODY T_symmetric
+#.FN_BODY EstablishOperationalBindingResult/initiator/symmetric
offset = call_dop_oid_callback("dop.establish.symmetric", tvb, offset, actx->pinfo, tree, "symmetric");
-#.FN_BODY T_roleA_replies
+#.FN_BODY EstablishOperationalBindingResult/initiator/roleA-replies
offset = call_dop_oid_callback("dop.establish.rolea", tvb, offset, actx->pinfo, tree, "roleA");
-#.FN_BODY T_roleB_replies
+#.FN_BODY EstablishOperationalBindingResult/initiator/roleB-replies
offset = call_dop_oid_callback("dop.establish.roleb", tvb, offset, actx->pinfo, tree, "roleB");
-#.FN_BODY T_agreementProposal
+#.FN_BODY OpBindingErrorParam/agreementProposal
offset = call_dop_oid_callback("dop.agreement", tvb, offset, actx->pinfo, tree, NULL);
offset = call_dop_oid_callback("dop.agreement", tvb, offset, actx->pinfo, tree, NULL);
-#.FN_PARS INTEGER
- VAL_PTR = &value
+#.FN_BODY OperationalBindingID/identifier VAL_PTR = &value
+ guint32 value;
+
+ %(DEFAULT_BODY)s
+
+ if (check_col(actx->pinfo->cinfo, COL_INFO)) {
+ col_append_fstr(actx->pinfo->cinfo, COL_INFO, " id=%%d", value);
+ }
+
+
-#.FN_BODY INTEGER
+#.FN_BODY OperationalBindingID/version VAL_PTR = &value
guint32 value;
%(DEFAULT_BODY)s
if (check_col(actx->pinfo->cinfo, COL_INFO)) {
- if(hf_index == hf_dop_identifier) {
col_append_fstr(actx->pinfo->cinfo, COL_INFO, " id=%%d", value);
- } else if (hf_index == hf_dop_version) {
- col_append_fstr(actx->pinfo->cinfo, COL_INFO, ",%%d", value);
- }
}
#.FN_PARS Precedence VAL_PTR = &precedence
static int hf_dop_non_supplying_master = -1; /* AccessPoint */
static int hf_dop_consumers = -1; /* SET_OF_AccessPoint */
static int hf_dop_consumers_item = -1; /* AccessPoint */
-static int hf_dop_bindingType = -1; /* OBJECT_IDENTIFIER */
+static int hf_dop_bindingType = -1; /* BindingType */
static int hf_dop_bindingID = -1; /* OperationalBindingID */
static int hf_dop_accessPoint = -1; /* AccessPoint */
static int hf_dop_establishInitiator = -1; /* EstablishArgumentInitiator */
static int hf_dop_establishOperationalBindingArgument = -1; /* EstablishOperationalBindingArgumentData */
static int hf_dop_algorithmIdentifier = -1; /* AlgorithmIdentifier */
static int hf_dop_encrypted = -1; /* BIT_STRING */
-static int hf_dop_identifier = -1; /* INTEGER */
-static int hf_dop_version = -1; /* INTEGER */
+static int hf_dop_identifier = -1; /* T_identifier */
+static int hf_dop_version = -1; /* T_version */
static int hf_dop_validFrom = -1; /* T_validFrom */
static int hf_dop_now = -1; /* NULL */
static int hf_dop_time = -1; /* Time */
/*--- End of included file: packet-dop-ett.c ---*/
#line 76 "packet-dop-template.c"
+static void append_oid(packet_info *pinfo, const char *oid)
+{
+ const char *name = NULL;
+
+ if(check_col(pinfo->cinfo, COL_INFO)) {
+ name = get_oid_str_name(oid);
+ col_append_fstr(pinfo->cinfo, COL_INFO, " %%s", name ? name : oid);
+ }
+}
+
/*--- Included file: packet-dop-fn.c ---*/
#line 1 "packet-dop-fn.c"
static int
-dissect_dop_INTEGER(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
-#line 172 "dop.cnf"
+dissect_dop_T_identifier(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+#line 173 "dop.cnf"
guint32 value;
offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
if (check_col(actx->pinfo->cinfo, COL_INFO)) {
- if(hf_index == hf_dop_identifier) {
col_append_fstr(actx->pinfo->cinfo, COL_INFO, " id=%d", value);
- } else if (hf_index == hf_dop_version) {
- col_append_fstr(actx->pinfo->cinfo, COL_INFO, ",%d", value);
- }
}
+
+
return offset;
}
static int dissect_identifier(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_dop_INTEGER(FALSE, tvb, offset, actx, tree, hf_dop_identifier);
-}
-static int dissect_version(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_dop_INTEGER(FALSE, tvb, offset, actx, tree, hf_dop_version);
-}
-static int dissect_maxImmSub(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_dop_INTEGER(FALSE, tvb, offset, actx, tree, hf_dop_maxImmSub);
+ return dissect_dop_T_identifier(FALSE, tvb, offset, actx, tree, hf_dop_identifier);
}
-static int dissect_maxCount(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_dop_INTEGER(FALSE, tvb, offset, actx, tree, hf_dop_maxCount);
+
+
+
+static int
+dissect_dop_T_version(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+#line 184 "dop.cnf"
+ guint32 value;
+
+ offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
+ &value);
+
+
+ if (check_col(actx->pinfo->cinfo, COL_INFO)) {
+ col_append_fstr(actx->pinfo->cinfo, COL_INFO, " id=%d", value);
+ }
+
+
+
+ return offset;
}
-static int dissect_localQualifier(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_dop_INTEGER(FALSE, tvb, offset, actx, tree, hf_dop_localQualifier);
+static int dissect_version(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
+ return dissect_dop_T_version(FALSE, tvb, offset, actx, tree, hf_dop_version);
}
static int
-dissect_dop_OBJECT_IDENTIFIER(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
-#line 94 "dop.cnf"
- const char *name;
-
- offset = dissect_ber_object_identifier_str(implicit_tag, actx, tree, tvb, offset, hf_index, &binding_type);
-
-
- if(check_col(actx->pinfo->cinfo, COL_INFO)) {
- name = get_oid_str_name(binding_type);
- col_append_fstr(actx->pinfo->cinfo, COL_INFO, " %s", name ? name : binding_type);
- }
-
+dissect_dop_BindingType(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ offset = dissect_ber_object_identifier_str(implicit_tag, actx, tree, tvb, offset, hf_index, &binding_type);
+#line 104 "dop.cnf"
+ append_oid(actx->pinfo, binding_type);
return offset;
}
static int dissect_bindingType(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_dop_OBJECT_IDENTIFIER(FALSE, tvb, offset, actx, tree, hf_dop_bindingType);
+ return dissect_dop_BindingType(FALSE, tvb, offset, actx, tree, hf_dop_bindingType);
}
static int
dissect_dop_EstablishSymmetric(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
-#line 104 "dop.cnf"
+#line 108 "dop.cnf"
offset = call_dop_oid_callback("dop.establish.symmetric", tvb, offset, actx->pinfo, tree, "symmetric");
static int
dissect_dop_EstablishRoleAInitiates(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
-#line 108 "dop.cnf"
+#line 112 "dop.cnf"
offset = call_dop_oid_callback("dop.establish.rolea", tvb, offset, actx->pinfo, tree, "roleA");
static int
dissect_dop_EstablishRoleBInitiates(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
-#line 112 "dop.cnf"
+#line 116 "dop.cnf"
offset = call_dop_oid_callback("dop.establish.roleb", tvb, offset, actx->pinfo, tree, "roleB");
static int
dissect_dop_T_agreement(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
-#line 140 "dop.cnf"
+#line 144 "dop.cnf"
offset = call_dop_oid_callback("dop.agreement", tvb, offset, actx->pinfo, tree, NULL);
static int
dissect_dop_T_symmetric(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
-#line 144 "dop.cnf"
+#line 148 "dop.cnf"
offset = call_dop_oid_callback("dop.establish.symmetric", tvb, offset, actx->pinfo, tree, "symmetric");
static int
dissect_dop_T_roleA_replies(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
-#line 148 "dop.cnf"
+#line 152 "dop.cnf"
offset = call_dop_oid_callback("dop.establish.rolea", tvb, offset, actx->pinfo, tree, "roleA");
static int
dissect_dop_T_roleB_replies(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
-#line 152 "dop.cnf"
+#line 156 "dop.cnf"
offset = call_dop_oid_callback("dop.establish.roleb", tvb, offset, actx->pinfo, tree, "roleB");
static int
dissect_dop_ModifySymmetric(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
-#line 116 "dop.cnf"
+#line 120 "dop.cnf"
offset = call_dop_oid_callback("dop.modify.symmetric", tvb, offset, actx->pinfo, tree, "symmetric");
static int
dissect_dop_ModifyRoleAInitiates(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
-#line 120 "dop.cnf"
+#line 124 "dop.cnf"
offset = call_dop_oid_callback("dop.modify.rolea", tvb, offset, actx->pinfo, tree, "roleA");
static int
dissect_dop_ModifyRoleBInitiates(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
-#line 124 "dop.cnf"
+#line 128 "dop.cnf"
offset = call_dop_oid_callback("dop.modify.roleb", tvb, offset, actx->pinfo, tree, "roleB");
static int
dissect_dop_ArgumentNewAgreement(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
-#line 164 "dop.cnf"
+#line 168 "dop.cnf"
offset = call_dop_oid_callback("dop.agreement", tvb, offset, actx->pinfo, tree, NULL);
static int
dissect_dop_ResultNewAgreement(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
-#line 160 "dop.cnf"
+#line 164 "dop.cnf"
offset = call_dop_oid_callback("dop.agreement", tvb, offset, actx->pinfo, tree, NULL);
static int
dissect_dop_TerminateSymmetric(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
-#line 128 "dop.cnf"
+#line 132 "dop.cnf"
offset = call_dop_oid_callback("dop.terminate.symmetric", tvb, offset, actx->pinfo, tree, "symmetric");
static int
dissect_dop_TerminateRoleAInitiates(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
-#line 132 "dop.cnf"
+#line 136 "dop.cnf"
offset = call_dop_oid_callback("dop.terminate.rolea", tvb, offset, actx->pinfo, tree, "roleA");
static int
dissect_dop_TerminateRoleBInitiates(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
-#line 136 "dop.cnf"
+#line 140 "dop.cnf"
offset = call_dop_oid_callback("dop.terminate.roleb", tvb, offset, actx->pinfo, tree, "roleB");
static int
dissect_dop_T_agreementProposal(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
-#line 156 "dop.cnf"
+#line 160 "dop.cnf"
offset = call_dop_oid_callback("dop.agreement", tvb, offset, actx->pinfo, tree, NULL);
static int
dissect_dop_Precedence(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
-#line 187 "dop.cnf"
+#line 195 "dop.cnf"
guint32 precedence = 0;
offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
}
+
+static int
+dissect_dop_INTEGER(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
+ NULL);
+
+ return offset;
+}
+static int dissect_maxImmSub(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
+ return dissect_dop_INTEGER(FALSE, tvb, offset, actx, tree, hf_dop_maxImmSub);
+}
+static int dissect_maxCount(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
+ return dissect_dop_INTEGER(FALSE, tvb, offset, actx, tree, hf_dop_maxCount);
+}
+static int dissect_localQualifier(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
+ return dissect_dop_INTEGER(FALSE, tvb, offset, actx, tree, hf_dop_localQualifier);
+}
+
+
static const ber_old_sequence_t T_basicLevels_sequence[] = {
{ BER_CLASS_UNI, BER_UNI_TAG_ENUMERATED, BER_FLAGS_NOOWNTAG, dissect_level },
{ BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_localQualifier },
/*--- End of included file: packet-dop-fn.c ---*/
-#line 78 "packet-dop-template.c"
+#line 88 "packet-dop-template.c"
static int
call_dop_oid_callback(char *base_oid, tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, char *col_info)
{ &hf_dop_bindingType,
{ "bindingType", "dop.bindingType",
FT_OID, BASE_NONE, NULL, 0,
- "dop.OBJECT_IDENTIFIER", HFILL }},
+ "dop.BindingType", HFILL }},
{ &hf_dop_bindingID,
{ "bindingID", "dop.bindingID",
FT_NONE, BASE_NONE, NULL, 0,
{ &hf_dop_identifier,
{ "identifier", "dop.identifier",
FT_INT32, BASE_DEC, NULL, 0,
- "dop.INTEGER", HFILL }},
+ "dop.T_identifier", HFILL }},
{ &hf_dop_version,
{ "version", "dop.version",
FT_INT32, BASE_DEC, NULL, 0,
- "dop.INTEGER", HFILL }},
+ "dop.T_version", HFILL }},
{ &hf_dop_validFrom,
{ "validFrom", "dop.validFrom",
FT_UINT32, BASE_DEC, VALS(dop_T_validFrom_vals), 0,
"", HFILL }},
/*--- End of included file: packet-dop-hfarr.c ---*/
-#line 224 "packet-dop-template.c"
+#line 234 "packet-dop-template.c"
};
/* List of subtrees */
&ett_dop_GrantsAndDenials,
/*--- End of included file: packet-dop-ettarr.c ---*/
-#line 230 "packet-dop-template.c"
+#line 240 "packet-dop-template.c"
};
module_t *dop_module;
/*--- End of included file: packet-dop-dis-tab.c ---*/
-#line 265 "packet-dop-template.c"
+#line 275 "packet-dop-template.c"
/* APPLICATION CONTEXT */
add_oid_str_name("2.5.3.3", "id-ac-directory-operational-binding-management");