blob: b869a03128fd26ef23deb8f717825379505427f3 (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
// Copyright (C) 2018-2023 Internet Systems Consortium, Inc. ("ISC")
//
// 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 CONFIG_BACKEND_CONSTANTS_H
#define CONFIG_BACKEND_CONSTANTS_H
namespace isc {
namespace cb {
/// @name Constants specifying output buffer lengths.
///
/// Config backends create buffers of these sizes to store
/// fetched variable length data in them.
///
//@{
constexpr unsigned long SUBNET4_PREFIX_BUF_LENGTH = 32;
constexpr unsigned long SUBNET6_PREFIX_BUF_LENGTH = 64;
constexpr unsigned long POOL_ADDRESS6_BUF_LENGTH = 45;
constexpr unsigned long DHCP4O6_INTERFACE_BUF_LENGTH = 128;
constexpr unsigned long DHCP4O6_INTERFACE_ID_BUF_LENGTH = 128;
constexpr unsigned long DHCP4O6_SUBNET_BUF_LENGTH = 64;
constexpr unsigned long BOOT_FILE_NAME_BUF_LENGTH = 512;
constexpr unsigned long CLIENT_CLASS_BUF_LENGTH = 128;
constexpr unsigned long INTERFACE_BUF_LENGTH = 128;
constexpr unsigned long INTERFACE_ID_BUF_LENGTH = 128;
constexpr unsigned long RELAY_BUF_LENGTH = 65536;
constexpr unsigned long REQUIRE_CLIENT_CLASSES_BUF_LENGTH = 65536;
constexpr unsigned long SERVER_HOSTNAME_BUF_LENGTH = 512;
constexpr unsigned long SHARED_NETWORK_NAME_BUF_LENGTH = 128;
constexpr unsigned long USER_CONTEXT_BUF_LENGTH = 65536;
constexpr unsigned long OPTION_VALUE_BUF_LENGTH = 65536;
constexpr unsigned long FORMATTED_OPTION_VALUE_BUF_LENGTH = 8192;
constexpr unsigned long OPTION_SPACE_BUF_LENGTH = 128;
constexpr unsigned long OPTION_NAME_BUF_LENGTH = 128;
constexpr unsigned long OPTION_ENCAPSULATE_BUF_LENGTH = 128;
constexpr unsigned long OPTION_RECORD_TYPES_BUF_LENGTH = 512;
constexpr unsigned long GLOBAL_PARAMETER_NAME_BUF_LENGTH = 128;
constexpr unsigned long GLOBAL_PARAMETER_VALUE_BUF_LENGTH = 65536;
constexpr unsigned long CLIENT_CLASS_NAME_BUF_LENGTH = 128;
constexpr unsigned long CLIENT_CLASS_TEST_BUF_LENGTH = 2048;
constexpr unsigned long CLIENT_CLASS_SNAME_BUF_LENGTH = 128;
constexpr unsigned long CLIENT_CLASS_FILENAME_BUF_LENGTH = 512;
constexpr unsigned long AUDIT_ENTRY_OBJECT_TYPE_BUF_LENGTH = 256;
constexpr unsigned long AUDIT_ENTRY_LOG_MESSAGE_BUF_LENGTH = 65536;
constexpr unsigned long SERVER_TAG_BUF_LENGTH = 64;
constexpr unsigned long SERVER_DESCRIPTION_BUF_LENGTH = 65536;
constexpr unsigned long DNS_NAME_BUF_LENGTH = 255;
constexpr unsigned long ALLOCATOR_TYPE_BUF_LENGTH = 64;
//*}
} // end of namespace isc::cb
} // end of namespace isc
#endif
|