Revert "TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags"
[wireshark-sm.git] / epan / dissectors / asn1 / q932-ros / q932-ros.cnf
blobad90299de0bf4f252fece9398a88286a6ce61801
1 #.PDU
3 ROS
5 #.OMIT_ASSIGNMENT
7 Priority
8 RejectProblem
9 Components
10 GFPInvokeIDSet
12 #.TYPE_RENAME
14 Invoke/argument             InvokeArgument
15 ReturnResult/result/result  ResultArgument
17 #.FIELD_RENAME
19 Invoke/linkedId/present     linkedIdPresent
21 Reject/problem/invoke       invokeProblem
22 Reject/problem/returnError  returnErrorProblem
23 Reject/problem/returnResult returnResultProblem
25 ReturnResult/result/result  resultArgument
27 #--- ROS ---
29 #.FN_HDR ROS
30   /* will be moved to ROS_PDU when PDU function can be alternated from conformance file */
31   actx->rose_ctx = rose_ctx_tmp;
32   rose_ctx_clean_data(actx->rose_ctx);
33 #.END
35 #--- Code ---
37 #.FN_PARS
38 Code         VAL_PTR = &%(ACTX)s->rose_ctx->d.code
39 Code/local   VAL_PTR = &%(ACTX)s->rose_ctx->d.code_local
40 Code/global  FN_VARIANT = _str  VAL_PTR = &%(ACTX)s->rose_ctx->d.code_global
41 #.FN_FTR Code
42   actx->rose_ctx->d.code_item = actx->created_item;
43 #.END
45 #--- Problem ---
47 #.FN_PARS
48 GeneralProblem       VAL_PTR = &problem_val
49 InvokeProblem        VAL_PTR = &problem_val
50 ReturnResultProblem  VAL_PTR = &problem_val
51 ReturnErrorProblem   VAL_PTR = &problem_val
52 #.FN_FTR GeneralProblem
53   (void) g_strlcpy(problem_str, val_to_str_const(problem_val, VALS(q932_ros_GeneralProblem_vals), ""), 64);
54 #.FN_FTR InvokeProblem
55   (void) g_strlcpy(problem_str, val_to_str_const(problem_val, VALS(q932_ros_InvokeProblem_vals), ""), 64);
56 #.FN_FTR ReturnResultProblem
57   (void) g_strlcpy(problem_str, val_to_str_const(problem_val, VALS(q932_ros_ReturnResultProblem_vals), ""), 64);
58 #.FN_FTR ReturnErrorProblem
59   (void) g_strlcpy(problem_str, val_to_str_const(problem_val, VALS(q932_ros_ReturnErrorProblem_vals), ""), 64);
60 #.END
62 #--- INVOKE ---
64 #.FIELD_ATTR
65 Invoke/argument  TYPE = FT_BYTES  DISPLAY = BASE_NONE
67 #.FN_BODY Invoke/argument
68   int len;
70   len = tvb_reported_length_remaining(tvb, offset);
71   if (len)
72     proto_tree_add_item(tree, hf_index, tvb, offset, len, ENC_NA);
73   arg_next_tvb = tvb_new_subset_remaining(tvb, offset);
75   offset += tvb_reported_length_remaining(tvb, offset);
76 #.END
78 #.INCLUDE ../ros/ros-inv.cnf
80 #--- RETURN RESULT ---
82 #.FIELD_ATTR
83 ReturnResult/result/result  TYPE = FT_BYTES  DISPLAY = BASE_NONE
85 #.FN_BODY ReturnResult/result/result
86   int len;
88   len = tvb_reported_length_remaining(tvb, offset);
89   if (len)
90     proto_tree_add_item(tree, hf_index, tvb, offset, len, ENC_NA);
91   res_next_tvb = tvb_new_subset_remaining(tvb, offset);
93   offset += tvb_reported_length_remaining(tvb, offset);
95 #.END
97 #.INCLUDE ../ros/ros-res.cnf
99 #--- RETURN ERROR ---
101 #.FIELD_ATTR
102 ReturnError/parameter  TYPE = FT_BYTES  DISPLAY = BASE_NONE
104 #.FN_BODY ReturnError/parameter
106   int len;
108   len = tvb_reported_length_remaining(tvb, offset);
109   if (len)
110     proto_tree_add_item(tree, hf_index, tvb, offset, len, ENC_NA);
111   err_next_tvb = tvb_new_subset_remaining(tvb, offset);
113   offset += tvb_reported_length_remaining(tvb, offset);
114 #.END
116 #.INCLUDE ../ros/ros-err.cnf
118 #--- REJECT ---
120 #.INCLUDE ../ros/ros-rej.cnf