Wireshark 2.9.0-477-g68ec514b The Wireshark network protocol analyzer

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

packet-ros.h
1 /* Do not modify this file. Changes will be overwritten. */
2 /* Generated automatically by the ASN.1 to Wireshark dissector compiler */
3 /* packet-ros.h */
4 /* asn2wrs.py -b -p ros -c ./ros.cnf -s ./packet-ros-template -D . -O ../.. ros.asn Remote-Operations-Information-Objects.asn */
5
6 /* Input file: packet-ros-template.h */
7
8 #line 1 "./asn1/ros/packet-ros-template.h"
9 /* packet-ros.h
10 * Routines for ROS packet dissection
11 * Graeme Lunt 2005
12 *
13 * Wireshark - Network traffic analyzer
14 * By Gerald Combs <gerald@wireshark.org>
15 * Copyright 1998 Gerald Combs
16 *
17 * SPDX-License-Identifier: GPL-2.0-or-later
18 */
19
20 #ifndef PACKET_ROS_H
21 #define PACKET_ROS_H
22
23
24 /*--- Included file: packet-ros-exp.h ---*/
25 #line 1 "./asn1/ros/packet-ros-exp.h"
26 extern const value_string ros_ROS_vals[];
27 extern const value_string ros_InvokeId_vals[];
28 extern const value_string ros_Code_vals[];
29 int dissect_ros_ROS(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_);
30 int dissect_ros_InvokeId(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_);
31 int dissect_ros_Code(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_);
32
33 /*--- End of included file: packet-ros-exp.h ---*/
34 #line 16 "./asn1/ros/packet-ros-template.h"
35
36 # include "packet-ses.h"
37
38 /* for use in the SESSION_DATA_STRUCTURE ros_op argument
39 top byte indicates ROS invocation
40 bottom three bytes indicate operation code */
41
42 # define ROS_OP_MASK 0xff000000
43
44 # define ROS_OP_PDU_MASK 0xf0000000
45 # define ROS_OP_ARGUMENT 0x10000000
46 # define ROS_OP_RESULT 0x20000000
47 # define ROS_OP_ERROR 0x30000000
48 # define ROS_OP_REJECT 0x40000000
49
50 # define ROS_OP_TYPE_MASK 0x0f000000
51 # define ROS_OP_BIND 0x01000000
52 # define ROS_OP_UNBIND 0x02000000
53 # define ROS_OP_INVOKE 0x03000000
54
55 # define ROS_OP_OPCODE_MASK (~ROS_OP_MASK)
56
57 # define op_ros_bind (-1) /* pseudo operation code for asn2wrs generated binds */
58 # define err_ros_bind (-2) /* pseudo error code for asn2wrs generated binds */
59
60 typedef struct _ros_opr_t {
61 gint32 opcode;
62 dissector_t arg_pdu;
63 dissector_t res_pdu;
64 } ros_opr_t;
65
66 typedef struct _ros_err_t {
67 gint32 errcode;
68 dissector_t err_pdu;
69 } ros_err_t;
70
71 typedef struct _ros_info_t {
72 const gchar *name;
73 int *proto;
74 gint *ett_proto;
75 const value_string *opr_code_strings;
76 const ros_opr_t *opr_code_dissectors;
77 const value_string *err_code_strings;
78 const ros_err_t *err_code_dissectors;
79 } ros_info_t;
80
81 void register_ros_oid_dissector_handle(const char *oid, dissector_handle_t dissector, int proto _U_, const char *name, gboolean uses_rtse);
82 void register_ros_protocol_info(const char *oid, const ros_info_t *rinfo, int proto _U_, const char *name, gboolean uses_rtse);
83 int call_ros_oid_callback(const char *oid, tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, struct SESSION_DATA_STRUCTURE* session);
84
85 #endif /* PACKET_ROS_H */
_packet_info
Definition: packet_info.h:44
_ros_info_t
Definition: packet-ros-template.h:52
tvbuff
Definition: tvbuff-int.h:35
dissector_handle
Definition: packet.c:659
SESSION_DATA_STRUCTURE
Definition: packet-ses.h:187
_ros_err_t
Definition: packet-ros-template.h:47
_ros_opr_t
Definition: packet-ros-template.h:41
_asn1_ctx_t
Definition: asn1.h:63
_value_string
Definition: value_string.h:24
_proto_node
Definition: proto.h:759