2005-09-04 16:22:12 +00:00
|
|
|
#.EXPORTS
|
2007-11-24 17:39:31 +00:00
|
|
|
OPERATION
|
|
|
|
ERROR
|
|
|
|
OPERATION-PACKAGE
|
|
|
|
CONTRACT
|
2005-09-04 16:22:12 +00:00
|
|
|
InvokeId
|
|
|
|
Code
|
2008-04-13 16:11:15 +00:00
|
|
|
ROS
|
2005-09-04 16:22:12 +00:00
|
|
|
|
2008-07-23 21:55:56 +00:00
|
|
|
#.OMIT_ASSIGNMENT
|
|
|
|
Priority
|
2009-06-02 09:50:09 +00:00
|
|
|
#.END
|
2008-07-23 21:55:56 +00:00
|
|
|
|
2005-10-24 21:42:19 +00:00
|
|
|
#.TYPE_RENAME
|
|
|
|
ReturnResult/result/result OperationResult
|
|
|
|
|
|
|
|
#.FIELD_RENAME
|
|
|
|
Reject/problem/invoke invokeProblem
|
|
|
|
ReturnResult/result/result operationResult
|
|
|
|
Reject/problem/returnError rejectError
|
|
|
|
Reject/problem/returnResult rejectResult
|
|
|
|
|
2006-05-01 10:17:59 +00:00
|
|
|
#.FN_PARS OperationCode VAL_PTR = &opcode
|
2005-10-24 21:42:19 +00:00
|
|
|
|
2006-05-01 10:17:59 +00:00
|
|
|
#.FN_PARS ErrorCode VAL_PTR = &opcode
|
2005-09-04 16:22:12 +00:00
|
|
|
|
2007-06-06 08:12:27 +00:00
|
|
|
#.FN_PARS InvokeId/present VAL_PTR = &invokeid
|
2005-09-04 16:22:12 +00:00
|
|
|
|
2007-06-06 08:12:27 +00:00
|
|
|
#.FN_BODY Invoke/argument
|
2005-09-04 16:22:12 +00:00
|
|
|
char *oid;
|
|
|
|
/* not sure what the length should be - -1 for now */
|
|
|
|
proto_tree_add_text(tree, tvb, offset,-1, "invoke argument");
|
2006-05-01 10:17:59 +00:00
|
|
|
|
2007-05-13 20:58:29 +00:00
|
|
|
ros_match_call_response(tvb, actx->pinfo, tree, invokeid, TRUE);
|
2005-09-04 16:22:12 +00:00
|
|
|
|
2007-05-13 20:58:29 +00:00
|
|
|
if(session && session->pres_ctx_id && (oid = find_oid_by_pres_ctx_id(actx->pinfo, session->pres_ctx_id))) {
|
2005-09-04 16:22:12 +00:00
|
|
|
/* this should be ROS! */
|
|
|
|
session->ros_op = (ROS_OP_INVOKE | ROS_OP_ARGUMENT);
|
|
|
|
/* now add the opcode */
|
|
|
|
session->ros_op |= opcode;
|
2007-05-13 20:58:29 +00:00
|
|
|
offset = call_ros_oid_callback(oid, tvb, offset, actx->pinfo, top_tree);
|
2005-09-04 16:22:12 +00:00
|
|
|
}
|
|
|
|
|
2007-06-06 08:12:27 +00:00
|
|
|
#.FN_BODY ReturnResult/result/result
|
2005-09-04 16:22:12 +00:00
|
|
|
char *oid;
|
|
|
|
/* not sure what the length should be - -1 for now */
|
|
|
|
proto_tree_add_text(tree, tvb, offset,-1, "return result");
|
2006-05-01 10:17:59 +00:00
|
|
|
|
2007-05-13 20:58:29 +00:00
|
|
|
ros_match_call_response(tvb, actx->pinfo, tree, invokeid, FALSE);
|
2005-09-04 16:22:12 +00:00
|
|
|
|
2007-05-13 20:58:29 +00:00
|
|
|
if(session && session->pres_ctx_id && (oid = find_oid_by_pres_ctx_id(actx->pinfo, session->pres_ctx_id))) {
|
2005-09-04 16:22:12 +00:00
|
|
|
/* this should be ROS! */
|
|
|
|
session->ros_op = (ROS_OP_INVOKE | ROS_OP_RESULT);
|
|
|
|
/* now add the opcode */
|
|
|
|
session->ros_op |= opcode;
|
2007-05-13 20:58:29 +00:00
|
|
|
offset = call_ros_oid_callback(oid, tvb, offset, actx->pinfo, top_tree);
|
2005-09-04 16:22:12 +00:00
|
|
|
}
|
|
|
|
|
2007-06-06 08:12:27 +00:00
|
|
|
#.FN_BODY ReturnError/parameter
|
2005-09-04 16:22:12 +00:00
|
|
|
char *oid;
|
|
|
|
/* not sure what the length should be - -1 for now */
|
|
|
|
proto_tree_add_text(tree, tvb, offset,-1, "return result");
|
2006-05-01 10:17:59 +00:00
|
|
|
|
2007-05-13 20:58:29 +00:00
|
|
|
ros_match_call_response(tvb, actx->pinfo, tree, invokeid, FALSE);
|
2005-09-04 16:22:12 +00:00
|
|
|
|
2007-05-13 20:58:29 +00:00
|
|
|
if(session && session->pres_ctx_id && (oid = find_oid_by_pres_ctx_id(actx->pinfo, session->pres_ctx_id))) {
|
2005-09-04 16:22:12 +00:00
|
|
|
/* this should be ROS! */
|
|
|
|
session->ros_op = (ROS_OP_INVOKE | ROS_OP_ERROR);
|
2007-12-03 19:29:24 +00:00
|
|
|
/* now add the opcode (really the error code) */
|
2005-09-04 16:22:12 +00:00
|
|
|
session->ros_op |= opcode;
|
2007-05-13 20:58:29 +00:00
|
|
|
offset = call_ros_oid_callback(oid, tvb, offset, actx->pinfo, top_tree);
|
2005-09-04 16:22:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2007-06-06 08:12:27 +00:00
|
|
|
#.FN_BODY ROS/bind-invoke
|
2005-09-04 16:22:12 +00:00
|
|
|
char *oid;
|
|
|
|
/* not sure what the length should be - -1 for now */
|
|
|
|
proto_tree_add_text(tree, tvb, offset,-1, "bind-invoke");
|
|
|
|
|
2007-05-13 20:58:29 +00:00
|
|
|
if(session && session->pres_ctx_id && (oid = find_oid_by_pres_ctx_id(actx->pinfo, session->pres_ctx_id))) {
|
2005-09-04 16:22:12 +00:00
|
|
|
/* this should be ROS! */
|
|
|
|
session->ros_op = (ROS_OP_BIND | ROS_OP_ARGUMENT);
|
2007-05-13 20:58:29 +00:00
|
|
|
offset = call_ros_oid_callback(oid, tvb, offset, actx->pinfo, top_tree);
|
2005-09-04 16:22:12 +00:00
|
|
|
}
|
|
|
|
|
2007-06-06 08:12:27 +00:00
|
|
|
#.FN_BODY ROS/bind-result
|
2005-09-04 16:22:12 +00:00
|
|
|
char *oid;
|
|
|
|
/* not sure what the length should be - -1 for now */
|
|
|
|
proto_tree_add_text(tree, tvb, offset,-1, "bind-result");
|
|
|
|
|
2007-05-13 20:58:29 +00:00
|
|
|
if(session && session->pres_ctx_id && (oid = find_oid_by_pres_ctx_id(actx->pinfo, session->pres_ctx_id))) {
|
2005-09-04 16:22:12 +00:00
|
|
|
/* this should be ROS! */
|
|
|
|
session->ros_op = (ROS_OP_BIND | ROS_OP_RESULT);
|
2007-05-13 20:58:29 +00:00
|
|
|
offset = call_ros_oid_callback(oid, tvb, offset, actx->pinfo, top_tree);
|
2005-09-04 16:22:12 +00:00
|
|
|
}
|
|
|
|
|
2007-06-06 08:12:27 +00:00
|
|
|
#.FN_BODY ROS/bind-error
|
2005-09-04 16:22:12 +00:00
|
|
|
char *oid;
|
|
|
|
/* not sure what the length should be - -1 for now */
|
|
|
|
proto_tree_add_text(tree, tvb, offset,-1, "bind-error");
|
|
|
|
|
2007-05-13 20:58:29 +00:00
|
|
|
if(session && session->pres_ctx_id && (oid = find_oid_by_pres_ctx_id(actx->pinfo, session->pres_ctx_id))) {
|
2005-09-04 16:22:12 +00:00
|
|
|
/* this should be ROS! */
|
|
|
|
session->ros_op = (ROS_OP_BIND | ROS_OP_ERROR);
|
2007-05-13 20:58:29 +00:00
|
|
|
offset = call_ros_oid_callback(oid, tvb, offset, actx->pinfo, top_tree);
|
2005-09-04 16:22:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2007-06-06 08:12:27 +00:00
|
|
|
#.FN_BODY ROS/unbind-invoke
|
2005-09-04 16:22:12 +00:00
|
|
|
char *oid;
|
|
|
|
/* not sure what the length should be - -1 for now */
|
|
|
|
proto_tree_add_text(tree, tvb, offset,-1, "unbind-invoke");
|
|
|
|
|
2007-05-13 20:58:29 +00:00
|
|
|
if(session && session->pres_ctx_id && (oid = find_oid_by_pres_ctx_id(actx->pinfo, session->pres_ctx_id))) {
|
2005-09-04 16:22:12 +00:00
|
|
|
/* this should be ROS! */
|
|
|
|
session->ros_op = (ROS_OP_UNBIND | ROS_OP_ARGUMENT);
|
2007-05-13 20:58:29 +00:00
|
|
|
offset = call_ros_oid_callback(oid, tvb, offset, actx->pinfo, top_tree);
|
2005-09-04 16:22:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2007-06-06 08:12:27 +00:00
|
|
|
#.FN_BODY ROS/unbind-result
|
2005-09-04 16:22:12 +00:00
|
|
|
char *oid;
|
|
|
|
/* not sure what the length should be - -1 for now */
|
|
|
|
proto_tree_add_text(tree, tvb, offset,-1, "unbind-result");
|
|
|
|
|
2007-05-13 20:58:29 +00:00
|
|
|
if(session && session->pres_ctx_id && (oid = find_oid_by_pres_ctx_id(actx->pinfo, session->pres_ctx_id))) {
|
2005-09-04 16:22:12 +00:00
|
|
|
/* this should be ROS! */
|
|
|
|
session->ros_op = (ROS_OP_UNBIND | ROS_OP_RESULT);
|
2007-05-13 20:58:29 +00:00
|
|
|
offset = call_ros_oid_callback(oid, tvb, offset, actx->pinfo, top_tree);
|
2005-09-04 16:22:12 +00:00
|
|
|
}
|
|
|
|
|
2007-06-06 08:12:27 +00:00
|
|
|
#.FN_BODY ROS/unbind-error
|
2005-09-04 16:22:12 +00:00
|
|
|
char *oid;
|
|
|
|
/* not sure what the length should be - -1 for now */
|
|
|
|
proto_tree_add_text(tree, tvb, offset,-1, "unbind-error");
|
|
|
|
|
2007-05-13 20:58:29 +00:00
|
|
|
if(session && session->pres_ctx_id && (oid = find_oid_by_pres_ctx_id(actx->pinfo, session->pres_ctx_id))) {
|
2005-09-04 16:22:12 +00:00
|
|
|
/* this should be ROS! */
|
|
|
|
session->ros_op = (ROS_OP_UNBIND | ROS_OP_ERROR);
|
2007-05-13 20:58:29 +00:00
|
|
|
offset = call_ros_oid_callback(oid, tvb, offset, actx->pinfo, top_tree);
|
2005-09-04 16:22:12 +00:00
|
|
|
}
|
2008-04-13 16:11:15 +00:00
|
|
|
|
|
|
|
#.FN_BODY ROS/reject
|
|
|
|
if(check_col(actx->pinfo->cinfo, COL_INFO))
|
|
|
|
col_set_str(actx->pinfo->cinfo, COL_INFO, "Reject");
|
|
|
|
%(DEFAULT_BODY)s
|
|
|
|
|
|
|
|
#.FN_PARS GeneralProblem
|
|
|
|
VAL_PTR = &problem
|
|
|
|
|
|
|
|
#.FN_BODY GeneralProblem
|
|
|
|
guint32 problem;
|
|
|
|
|
|
|
|
%(DEFAULT_BODY)s
|
|
|
|
|
|
|
|
if (check_col(actx->pinfo->cinfo, COL_INFO)) {
|
|
|
|
col_append_fstr(actx->pinfo->cinfo, COL_INFO, " %%s", val_to_str(problem, ros_GeneralProblem_vals, "GeneralProblem(%%d)"));
|
|
|
|
}
|
|
|
|
|
|
|
|
#.FN_PARS InvokeProblem
|
|
|
|
VAL_PTR = &problem
|
|
|
|
|
|
|
|
#.FN_BODY InvokeProblem
|
|
|
|
guint32 problem;
|
|
|
|
|
|
|
|
%(DEFAULT_BODY)s
|
|
|
|
|
|
|
|
if (check_col(actx->pinfo->cinfo, COL_INFO)) {
|
|
|
|
col_append_fstr(actx->pinfo->cinfo, COL_INFO, " %%s", val_to_str(problem, ros_InvokeProblem_vals, "InvokeProblem(%%d)"));
|
|
|
|
}
|
|
|
|
|
|
|
|
#.FN_PARS ReturnResultProblem
|
|
|
|
VAL_PTR = &problem
|
|
|
|
|
|
|
|
#.FN_BODY ReturnResultProblem
|
|
|
|
guint32 problem;
|
|
|
|
|
|
|
|
%(DEFAULT_BODY)s
|
|
|
|
|
|
|
|
if (check_col(actx->pinfo->cinfo, COL_INFO)) {
|
|
|
|
col_append_fstr(actx->pinfo->cinfo, COL_INFO, " %%s", val_to_str(problem, ros_ReturnResultProblem_vals, "ReturnResultProblem(%%d)"));
|
|
|
|
}
|
|
|
|
|
|
|
|
#.FN_PARS ReturnErrorProblem
|
|
|
|
VAL_PTR = &problem
|
|
|
|
|
|
|
|
#.FN_BODY ReturnErrorProblem
|
|
|
|
guint32 problem;
|
|
|
|
|
|
|
|
%(DEFAULT_BODY)s
|
|
|
|
|
|
|
|
if (check_col(actx->pinfo->cinfo, COL_INFO)) {
|
|
|
|
col_append_fstr(actx->pinfo->cinfo, COL_INFO, " %%s", val_to_str(problem, ros_ReturnErrorProblem_vals, "ReturnErrorProblem(%%d)"));
|
|
|
|
}
|
|
|
|
|
2005-09-04 16:22:12 +00:00
|
|
|
#.END
|