Kea  2.1.7-git
docsis3_option_defs.h
Go to the documentation of this file.
1 // Copyright (C) 2013-2021 Internet Systems Consortium, Inc. ("ISC")
2 //
3 // This Source Code Form is subject to the terms of the Mozilla Public
4 // License, v. 2.0. If a copy of the MPL was not distributed with this
5 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 
7 #ifndef DOCSIS3_OPTION_DEFS_H
8 #define DOCSIS3_OPTION_DEFS_H
9 
10 #include <dhcp/std_option_defs.h>
11 #include <dhcp/option_data_types.h>
12 
14 #define DOCSIS3_V4_OPTION_SPACE "docsis3-v4"
15 #define DOCSIS3_V6_OPTION_SPACE "docsis3-v6"
16 
17 namespace isc {
18 namespace dhcp {
19 
20 #define VENDOR_ID_CABLE_LABS 4491
21 
22 #define DOCSIS3_V4_ORO 1
23 #define DOCSIS3_V4_TFTP_SERVERS 2
24 
27  { "oro", DOCSIS3_V4_ORO,
29  { "tftp-servers", DOCSIS3_V4_TFTP_SERVERS,
31 };
32 
36  sizeof(DOCSIS3_V4_OPTION_DEFINITIONS[0]);
37 
39 #define DOCSIS3_V6_ORO 1
40 #define DOCSIS3_V6_DEVICE_TYPE 2
41 #define DOCSIS3_V6_VENDOR_NAME 10
42 #define DOCSIS3_V6_TFTP_SERVERS 32
43 #define DOCSIS3_V6_CONFIG_FILE 33
44 #define DOCSIS3_V6_SYSLOG_SERVERS 34
45 #define DOCSIS3_V6_DEVICE_ID 36
46 #define DOCSIS3_V6_TIME_SERVERS 37
47 #define DOCSIS3_V6_TIME_OFFSET 38
48 
49 // The following DOCSIS3 options are inserted by the CMTS (which acts as
50 // a relay agent)
51 #define DOCSIS3_V6_CMTS_CM_MAC 1026
52 
55  { "oro", DOCSIS3_V6_ORO,
57  { "device-type", DOCSIS3_V6_DEVICE_TYPE,
59  { "vendor-type", DOCSIS3_V6_VENDOR_NAME,
61  { "tftp-servers", DOCSIS3_V6_TFTP_SERVERS,
63  { "time-servers", DOCSIS3_V6_TIME_SERVERS,
65  { "config-file", DOCSIS3_V6_CONFIG_FILE,
67  { "syslog-servers", DOCSIS3_V6_SYSLOG_SERVERS,
69  { "device-id", DOCSIS3_V6_DEVICE_ID,
71  { "time-offset", DOCSIS3_V6_TIME_OFFSET,
73  { "cmts-cm-mac", DOCSIS3_V6_CMTS_CM_MAC,
75  // @todo add definitions for all remaining options.
76 };
77 
81  sizeof(DOCSIS3_V6_OPTION_DEFINITIONS[0]);
82 
84 extern const char* DOCSIS3_CLASS_EROUTER;
85 extern const char* DOCSIS3_CLASS_MODEM;
86 
87 } // namespace dhcp
88 } // namespace isc
89 
90 #endif // DOCSIS3_OPTION_DEFS_H
#define DOCSIS3_V6_CMTS_CM_MAC
#define DOCSIS3_V6_VENDOR_NAME
#define DOCSIS3_V6_ORO
#define DOCSIS3_V6_DEVICE_ID
Parameters being used to make up an option definition.
#define DOCSIS3_V4_OPTION_SPACE
global docsis3 option spaces
#define DOCSIS3_V6_SYSLOG_SERVERS
const OptionDefParams DOCSIS3_V6_OPTION_DEFINITIONS[]
Definitions of standard DHCPv6 options.
#define DOCSIS3_V4_ORO
const char * DOCSIS3_CLASS_MODEM
DOCSIS3.0 compatible cable modem.
Definition: libdhcp++.cc:81
#define DOCSIS3_V6_CONFIG_FILE
const char * DOCSIS3_CLASS_EROUTER
The class as specified in vendor-class option by the devices.
Definition: libdhcp++.cc:84
#define DOCSIS3_V6_TIME_OFFSET
const OptionDefParams DOCSIS3_V4_OPTION_DEFINITIONS[]
Definitions of standard DHCPv4 options.
Defines the logger used by the top-level component of kea-lfc.
const int DOCSIS3_V6_OPTION_DEFINITIONS_SIZE
Number of option definitions defined.
#define NO_RECORD_DEF
#define DOCSIS3_V4_TFTP_SERVERS
#define DOCSIS3_V6_TFTP_SERVERS
#define DOCSIS3_V6_TIME_SERVERS
#define DOCSIS3_V6_OPTION_SPACE
#define DOCSIS3_V6_DEVICE_TYPE
const int DOCSIS3_V4_OPTION_DEFINITIONS_SIZE
Number of option definitions defined.