Wireshark  4.3.0
The Wireshark network protocol analyzer
packet-rtps.h
1 /* packet-rtps.h
2  * Header file for the Real-Time Publish-Subscribe (RTPS) and related (RTPS
3  * Virtual Transport and Processed) protocols.
4  *
5  * (c) 2020 Copyright, Real-Time Innovations, Inc.
6  * Real-Time Innovations, Inc.
7  * 232 East Java Drive
8  * Sunnyvale, CA 94089
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 _TYPEDEFS_DEFINES_RTPS_H
18 #define _TYPEDEFS_DEFINES_RTPS_H
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
24 /* Vendor specific - rti */
25 #define NDDS_TRANSPORT_CLASSID_ANY (0)
26 #define NDDS_TRANSPORT_CLASSID_UDPv4 (1)
27 #define NDDS_TRANSPORT_CLASSID_UDPv6 (2)
28 #define NDDS_TRANSPORT_CLASSID_INTRA (3)
29 #define NDDS_TRANSPORT_CLASSID_DTLS (6)
30 #define NDDS_TRANSPORT_CLASSID_WAN (7)
31 #define NDDS_TRANSPORT_CLASSID_TCPV4_LAN (8)
32 #define NDDS_TRANSPORT_CLASSID_TCPV4_WAN (9)
33 #define NDDS_TRANSPORT_CLASSID_TLSV4_LAN (10)
34 #define NDDS_TRANSPORT_CLASSID_TLSV4_WAN (11)
35 #define NDDS_TRANSPORT_CLASSID_PCIE (12)
36 #define NDDS_TRANSPORT_CLASSID_ITP (13)
37 #define NDDS_TRANSPORT_CLASSID_SHMEM (0x01000000)
38 #define NDDS_TRANSPORT_CLASSID_UDPv4_WAN (0x01000001)
39 
40 /*
41 * Flags indicating which fields have been filled in.
42 */
43 #define GUID_HAS_HOST_ID 0x00000001
44 #define GUID_HAS_APP_ID 0x00000002
45 #define GUID_HAS_INSTANCE_ID 0x00000004
46 #define GUID_HAS_ENTITY_ID 0x00000008
47 #define GUID_HAS_ALL 0x0000000F
48 
49 typedef struct _endpoint_guid {
50  guint fields_present;
51  guint32 host_id;
52  guint32 app_id;
53  guint32 instance_id;
54  guint32 entity_id;
56 
57 /* Process a submessage: used in packet-rtps-processed.c */
58 extern void dissect_rtps_submessages(
59  tvbuff_t *tvb,
60  int offset,
61  packet_info *pinfo,
62  proto_tree *rtps_tree,
63  guint16 version,
64  guint16 vendor_id,
65  endpoint_guid *guid,
66  bool dissecting_encrypted_submessage);
67 
68 /* Information that the RTPS-VT protocol passes to RTPS-PROC */
69 struct rtpsvt_data {
70  guint8 version_major;
71  guint8 version_minor;
72  guint8 direction;
73  guint16 rtps_length;
74 };
75 
76 #ifdef __cplusplus
77 } /* extern "C"*/
78 #endif
79 
80 #endif /* _TYPEDEFS_DEFINES_RTPS_H */
81 
82 /*
83  * Editor modelines
84  *
85  * Local Variables:
86  * c-basic-offset: 2
87  * tab-width: 8
88  * indent-tabs-mode: nil
89  * End:
90  *
91  * ex: set shiftwidth=2 tabstop=8 expandtab:
92  * :indentSize=2:tabSize=8:noTabs=true:
93  */
Definition: packet-rtps.h:49
Definition: packet_info.h:44
Definition: proto.h:904
Definition: packet-rtps.h:69
Definition: tvbuff-int.h:35