summaryrefslogtreecommitdiff
path: root/interface/vsomeip/defines.hpp
blob: e10c453530096f8ab199ac4a15e8181d7020d15c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Copyright (C) 2014-2017 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.

#ifndef VSOMEIP_V3_DEFINES_HPP_
#define VSOMEIP_V3_DEFINES_HPP_

#define VSOMEIP_PROTOCOL_VERSION                0x1

// 0 = unlimited, if not specified otherwise via configuration file
#define VSOMEIP_MAX_LOCAL_MESSAGE_SIZE          0
// 0 = unlimited, if not specified otherwise via configuration file
#define VSOMEIP_MAX_TCP_MESSAGE_SIZE            0
#define VSOMEIP_MAX_UDP_MESSAGE_SIZE            1416

#define VSOMEIP_PACKET_SIZE                     VSOMEIP_MAX_UDP_MESSAGE_SIZE

#define VSOMEIP_SOMEIP_HEADER_SIZE              8
#define VSOMEIP_SOMEIP_MAGIC_COOKIE_SIZE        8
#define VSOMEIP_FULL_HEADER_SIZE                16

#define VSOMEIP_SERVICE_POS_MIN                 0
#define VSOMEIP_SERVICE_POS_MAX                 1
#define VSOMEIP_METHOD_POS_MIN                  2
#define VSOMEIP_METHOD_POS_MAX                  3
#define VSOMEIP_EVENT_POS_MIN                   2
#define VSOMEIP_EVENT_POS_MAX                   3
#define VSOMEIP_LENGTH_POS_MIN                  4
#define VSOMEIP_LENGTH_POS_MAX                  7
#define VSOMEIP_CLIENT_POS_MIN                  8
#define VSOMEIP_CLIENT_POS_MAX                  9
#define VSOMEIP_SESSION_POS_MIN                 10
#define VSOMEIP_SESSION_POS_MAX                 11
#define VSOMEIP_PROTOCOL_VERSION_POS            12
#define VSOMEIP_INTERFACE_VERSION_POS           13
#define VSOMEIP_MESSAGE_TYPE_POS                14
#define VSOMEIP_RETURN_CODE_POS                 15
#define VSOMEIP_PAYLOAD_POS                     16

#endif // VSOMEIP_V3_DEFINES_HPP_