| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
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 -q -L -p ros -c ./ros.cnf -s ./packet-ros-template -D . -O ../.. ros.asn Remote-Operations-Information-Objects.asn */
5
6/* packet-ros.h
7 * Routines for ROS packet dissection
8 * Graeme Lunt 2005
9 *
10 * Wireshark - Network traffic analyzer
11 * By Gerald Combs <gerald@wireshark.org>
12 * Copyright 1998 Gerald Combs
13 *
14 * SPDX-License-Identifier: GPL-2.0-or-later
15 */
16
17#ifndef PACKET_ROS_H
18#define PACKET_ROS_H
19
20#include <epan/asn1.h>
21
22 extern const value_string ros_ROS_vals[];
23 extern const value_string ros_InvokeId_vals[];
24 extern const value_string ros_Code_vals[];
25 unsigned dissect_ros_ROS(bool implicit_tag _U_, tvbuff_t *tvb _U_, unsigned offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_);
26 unsigned dissect_ros_InvokeId(bool implicit_tag _U_, tvbuff_t *tvb _U_, unsigned offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_);
27 unsigned dissect_ros_Code(bool implicit_tag _U_, tvbuff_t *tvb _U_, unsigned offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_);
28
29# include "packet-ses.h"
30
31/* for use in the SESSION_DATA_STRUCTURE ros_op argument
32 top byte indicates ROS invocation
33 bottom three bytes indicate operation code */
34
35# define ROS_OP_MASK 0xff000000
36
37# define ROS_OP_PDU_MASK 0xf0000000
38# define ROS_OP_ARGUMENT 0x10000000
39# define ROS_OP_RESULT 0x20000000
40# define ROS_OP_ERROR 0x30000000
41# define ROS_OP_REJECT 0x40000000
42
43# define ROS_OP_TYPE_MASK 0x0f000000
44# define ROS_OP_BIND 0x01000000
45# define ROS_OP_UNBIND 0x02000000
46# define ROS_OP_INVOKE 0x03000000
47
48# define ROS_OP_OPCODE_MASK (~ROS_OP_MASK)
49
50# define op_ros_bind (-1) /* pseudo operation code for asn2wrs generated binds */
51# define err_ros_bind (-2) /* pseudo error code for asn2wrs generated binds */
52
53 typedef struct _ros_opr_t {
54 int32_t opcode;
55 dissector_t arg_pdu;
56 dissector_t res_pdu;
57} ros_opr_t;
58
59 typedef struct _ros_err_t {
60 int32_t errcode;
61 dissector_t err_pdu;
62} ros_err_t;
63
64 typedef struct _ros_info_t {
65 const char *name;
66 int *proto;
67 int *ett_proto;
68 const value_string *opr_code_strings;
69 const ros_opr_t *opr_code_dissectors;
70 const value_string *err_code_strings;
71 const ros_err_t *err_code_dissectors;
72} ros_info_t;
73
74 void register_ros_oid_dissector_handle(const char *oid, dissector_handle_t dissector, int proto _U_, const char *name, bool uses_rtse);
75 void register_ros_protocol_info(const char *oid, const ros_info_t *rinfo, int proto _U_, const char *name, bool uses_rtse);
76 int call_ros_oid_callback(const char *oid, tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, struct SESSION_DATA_STRUCTURE* session);
77
78#endif /* PACKET_ROS_H */
asn1.h
_asn1_ctx_t
Definition asn1.h:66
_packet_info
Definition packet_info.h:43
_proto_node
Definition proto.h:907
_ros_err_t
Definition packet-ros.h:59
_ros_info_t
Definition packet-ros.h:64
_ros_opr_t
Definition packet-ros.h:53
_value_string
Mapping between a 32-bit integer value and its string representation.
Definition value_string.h:33
SESSION_DATA_STRUCTURE
Definition packet-ses.h:188
dissector_handle
Definition packet.c:852
tvbuff
Definition tvbuff-int.h:36