summaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-someip.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:34:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:34:10 +0000
commite4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc (patch)
tree68cb5ef9081156392f1dd62a00c6ccc1451b93df /epan/dissectors/packet-someip.h
parentInitial commit. (diff)
downloadwireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.tar.xz
wireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.zip
Adding upstream version 4.2.2.upstream/4.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'epan/dissectors/packet-someip.h')
-rw-r--r--epan/dissectors/packet-someip.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/epan/dissectors/packet-someip.h b/epan/dissectors/packet-someip.h
new file mode 100644
index 00000000..c425239a
--- /dev/null
+++ b/epan/dissectors/packet-someip.h
@@ -0,0 +1,54 @@
+/* packet-someip.h
+ * Definitions for SOME/IP packet disassembly structures and routines
+ * By Dr. Lars Voelker <lars.voelker@technica-engineering.de> / <lars.voelker@bmw.de>
+ * Copyright 2012-2023 Dr. Lars Voelker
+ *
+ * Wireshark - Network traffic analyzer
+ * By Gerald Combs <gerald@wireshark.org>
+ * Copyright 1998 Gerald Combs
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
+#ifndef __PACKET_SOMEIP_H__
+#define __PACKET_SOMEIP_H__
+
+/* used for SD to add ports dynamically */
+void register_someip_port_udp(guint32 portnumber);
+void register_someip_port_tcp(guint32 portnumber);
+
+/* look up names for SD */
+char *someip_lookup_service_name(guint16 serviceid);
+char *someip_lookup_eventgroup_name(guint16 serviceid, guint16 eventgroupid);
+
+typedef struct _someip_info {
+ guint16 service_id;
+ guint16 method_id;
+ guint16 client_id;
+ guint16 session_id;
+ guint8 message_type;
+ guint8 major_version;
+} someip_info_t;
+#define SOMEIP_INFO_T_INIT { 0, 0, 0, 0, 0, 0 }
+
+typedef struct _someip_messages_tap {
+ guint16 service_id;
+ guint16 method_id;
+ guint8 interface_version;
+ guint8 message_type;
+} someip_messages_tap_t;
+
+#endif /* __PACKET_SOMEIP_H__ */
+
+/*
+ * Editor modelines
+ *
+ * Local Variables:
+ * c-basic-offset: 4
+ * tab-width: 8
+ * indent-tabs-mode: nil
+ * End:
+ *
+ * ex: set shiftwidth=4 tabstop=8 expandtab:
+ * :indentSize=4:tabSize=8:noTabs=true:
+ */