/* Data for all standard option definitions */
// Option data defined globally
"option-data": [
- /*
- Code Len Subnet Mask
- +-----+-----+-----+-----+-----+-----+
- | 1 | 4 | m1 | m2 | m3 | m4 |
- +-----+-----+-----+-----+-----+-----+
- */
- // Note: not commonly configured in Kea
- // Type: IPv4 address
- {
- "code": 1,
- "data": "192.0.2.1",
- "name": "subnet-mask"
- },
-
/*
Code Len Time Offset
+-----+-----+-----+-----+-----+-----+
"name": "resource-location-servers"
},
- /*
- Code Len Host Name
- +-----+-----+-----+-----+-----+-----+-----+-----+--
- | 12 | n | h1 | h2 | h3 | h4 | h5 | h6 | ...
- +-----+-----+-----+-----+-----+-----+-----+-----+--
- */
- // Note: not commonly configured in Kea
- // Type: string
- {
- "code": 12,
- "data": "my-hostname",
- "name": "host-name"
- },
-
/*
Code Len File Size
+-----+-----+-----+-----+
"name": "x-display-manager"
},
- /*
- Code Len Address
- +-----+-----+-----+-----+-----+-----+
- | 50 | 4 | a1 | a2 | a3 | a4 |
- +-----+-----+-----+-----+-----+-----+
- */
- // Note: not commonly configured in Kea
- // Type: IPv4 address
- {
- "code": 50,
- "data": "192.0.2.38",
- "name": "dhcp-requested-address"
- },
-
- /*
- Code Len Lease Time
- +-----+-----+-----+-----+-----+-----+
- | 51 | 4 | t1 | t2 | t3 | t4 |
- +-----+-----+-----+-----+-----+-----+
- */
- // Note: not commonly configured in Kea
- // Type: uint32
- {
- "code": 51,
- "data": "86400",
- "name": "dhcp-lease-time"
- },
-
/*
Value Meaning
----- --------
"name": "dhcp-option-overload"
},
- /*
- Value Message Type
- ----- ------------
- 1 DHCPDISCOVER
- 2 DHCPOFFER
- 3 DHCPREQUEST
- 4 DHCPDECLINE
- 5 DHCPACK
- 6 DHCPNAK
- 7 DHCPRELEASE
- 8 DHCPINFORM
-
- Code Len Type
- +-----+-----+-----+
- | 53 | 1 | 1-9 |
- +-----+-----+-----+
- */
- // Note: not commonly configured in Kea
- // Type: string
- {
- "code": 53,
- "data": "2",
- "name": "dhcp-message-type"
- },
-
/*
Code Len Address
+-----+-----+-----+-----+-----+-----+
"name": "dhcp-server-identifier"
},
- /*
- Code Len Option Codes
- +-----+-----+-----+-----+---
- | 55 | n | c1 | c2 | ...
- +-----+-----+-----+-----+---
- */
- // Note: not commonly configured in Kea
- // Type: array of {uint8}
- {
- "code": 55,
- "data": "32, 42",
- "name": "dhcp-parameter-request-list"
- },
-
/*
Code Len Text
+-----+-----+-----+-----+---
"name": "dhcp-max-message-size"
},
- /*
- Code Len T1 Interval
- +-----+-----+-----+-----+-----+-----+
- | 58 | 4 | t1 | t2 | t3 | t4 |
- +-----+-----+-----+-----+-----+-----+
- */
- // Note: not commonly configured in Kea
- // Type: uint32
- {
- "code": 58,
- "data": "7200",
- "name": "dhcp-renewal-time"
- },
-
- /*
- Code Len T2 Interval
- +-----+-----+-----+-----+-----+-----+
- | 59 | 4 | t1 | t2 | t3 | t4 |
- +-----+-----+-----+-----+-----+-----+
- */
- // Note: not commonly configured in Kea
- // Type: uint32
- {
- "code": 59,
- "data": "14400",
- "name": "dhcp-rebinding-time"
- },
-
/*
Code Len Vendor class Identifier
+-----+-----+-----+-----+---
"name": "vendor-class-identifier"
},
- /*
- Code Len Type IAID DUID
- +----+----+-----+----+----+----+----+----+----+---
- | 61 | n | 255 | i1 | i2 | i3 | i4 | d1 | d2 |...
- +----+----+-----+----+----+----+----+----+----+---
- */
- // Note: not commonly configured in Kea
- // Type: binary
- {
- "code": 61,
- "data": "1A BB AD AB BA D0 00 00 00 00 00 00 00 00 CA FE",
- "name": "dhcp-client-identifier"
- },
-
/*
Code Len NetWare/IP Domain Name
+-----+-----+------+------+------+-----
},
// Option code 80 is not defined in Kea.
-
- /*
- Code Len Flags RCODE1 RCODE2 Domain Name
- +------+------+------+------+------+------+--
- | 81 | n | | | | ...
- +------+------+------+------+------+------+--
- */
- // Note: not commonly configured in Kea
- // Type: uint8, uint8, uint8, FQDN
- {
- "code": 81,
- "data": "4, 5, 7, my.example.org",
- "name": "fqdn"
- },
-
- /*
- Code Len Agent Information Field
- +------+------+------+------+------+------+--...-+------+
- | 82 | N | i1 | i2 | i3 | i4 | | iN |
- +------+------+------+------+------+------+--...-+------+
-
- SubOpt Len Sub-option Value
- +------+------+------+------+------+------+--...-+------+
- | 1 | N | s1 | s2 | s3 | s4 | | sN |
- +------+------+------+------+------+------+--...-+------+
- SubOpt Len Sub-option Value
- +------+------+------+------+------+------+--...-+------+
- | 2 | N | i1 | i2 | i3 | i4 | | iN |
- +------+------+------+------+------+------+--...-+------+
- */
- // Note: not commonly configured in Kea
- // Type: empty
- {
- "code": 82,
- "name": "dhcp-agent-options"
- },
-
// Option code 83 is not defined in Kea.
// Option code 84 is unassigned.
"name": "bcms-controller-address"
},
- /*
- 0 1 2 3
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | Code | Length | Protocol | Algorithm |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | RDM | Replay Detection (64 bits) |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | Replay cont. |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | Replay cont. | |
- +-+-+-+-+-+-+-+-+ |
- | |
- | Authentication Information |
- | |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- */
- // Note: not commonly configured in Kea
- // Type: binary
- {
- "code": 90,
- "data": "1A BB AD AB BA D0 00 00 00 00 00 00 00 00 CA FE",
- "name": "authenticate"
- },
-
- /*
- Code Len Seconds in the past
- +-----+-----+-----+-----+-----+-----+
- | 91 | 4 | t1 | t2 | t3 | t4 |
- +-----+-----+-----+-----+-----+-----+
- */
- // Note: not commonly configured in Kea
- // Type: uint32
- {
- "code": 91,
- "data": "360",
- "name": "client-last-transaction-time"
- },
-
- /*
- Code Len Address 1 Address 2
- +-----+-----+-----+-----+-----+-----+-----+-----+--
- | 92 | n | a1 | a2 | a3 | a4 | a1 | a2 | ...
- +-----+-----+-----+-----+-----+-----+-----+-----+--
- */
- // Note: not commonly configured in Kea
- // Type: array of {IPv4 address}
- {
- "code": 92,
- "data": "192.0.2.64, 192.0.2.65",
- "name": "associated-ip"
- },
-
/*
Code Len 16-bit Type
+----+-----+-----+-----+
/* Data for all standard option definitions */
// Option data defined globally
"option-data": [
-
- /*
- 0 1 2 3
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | OPTION_CLIENTID | option-len |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- . .
- . DUID .
- . (variable length) .
- . .
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
- option-code OPTION_CLIENTID (1).
-
- option-len Length of DUID in octets.
-
- DUID The DUID for the client.
- */
- // Note: not commonly configured in Kea
- // Type: binary
- {
- "always-send": false, // default
- "csv-format": true, // default
- "code": 1,
- "data": "01 02 03 04 05 06",
- "name": "clientid",
- "space": "dhcp6" // default
- },
-
- /*
- 0 1 2 3
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | OPTION_SERVERID | option-len |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- . .
- . DUID .
- . (variable length) .
- . .
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
- option-code OPTION_SERVERID (2).
-
- option-len Length of DUID in octets.
-
- DUID The DUID for the server.
- */
- // Note: not commonly configured in Kea
- // Type: binary
- {
- "code": 2,
- "data": "0708090A0B0C",
- "name": "serverid"
- },
-
- /*
- 0 1 2 3
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | OPTION_IA_NA | option-len |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | IAID (4 octets) |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | T1 |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | T2 |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | |
- . IA_NA-options .
- . .
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
- option-code OPTION_IA_NA (3).
-
- option-len 12 + length of IA_NA-options field.
-
- IAID The unique identifier for this IA_NA; the
- IAID must be unique among the identifiers for
- all of this client's IA_NAs. The number
- space for IA_NA IAIDs is separate from the
- number space for IA_TA IAIDs.
-
- T1 The time at which the client contacts the
- server from which the addresses in the IA_NA
- were obtained to extend the lifetimes of the
- addresses assigned to the IA_NA; T1 is a
- time duration relative to the current time
- expressed in units of seconds.
-
- T2 The time at which the client contacts any
- available server to extend the lifetimes of
- the addresses assigned to the IA_NA; T2 is a
- time duration relative to the current time
- expressed in units of seconds.
- */
- // Note: not commonly configured in Kea
- // Type: uint32, uint32, uint32
- {
- "code": 3,
- "data": "1A1D, 3600, 7200",
- "name": "ia-na"
- },
-
- /*
- 0 1 2 3
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | OPTION_IA_TA | option-len |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | IAID (4 octets) |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | |
- . IA_TA-options .
- . .
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
- option-code OPTION_IA_TA (4).
-
- option-len 4 + length of IA_TA-options field.
-
- IAID The unique identifier for this IA_TA; the
- IAID must be unique among the identifiers
- for all of this client's IA_TAs. The number
- space for IA_TA IAIDs is separate from the
- number space for IA_NA IAIDs.
-
- IA_TA-options Options associated with this IA_TA.
- */
- // Note: not commonly configured in Kea
- // Type: uint32
- {
- "code": 4,
- "data": "1A1D",
- "name": "ia-ta"
- },
-
- /*
- 0 1 2 3
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | OPTION_IAADDR | option-len |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | |
- | IPv6 address |
- | |
- | |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | preferred-lifetime |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | valid-lifetime |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- . .
- . IAaddr-options .
- . .
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
- option-code OPTION_IAADDR (5).
-
- option-len 24 + length of IAaddr-options field.
-
- IPv6 address An IPv6 address.
-
- preferred-lifetime The preferred lifetime for the IPv6 address in
- the option, expressed in units of seconds.
-
- valid-lifetime The valid lifetime for the IPv6 address in the
- option, expressed in units of seconds.
-
- IAaddr-options Options associated with this address.
- */
- // Note: not commonly configured in Kea
- // Type: IPv6 address, uint32 uint32
- {
- "code": 5,
- "data": "2001:db8::1, 3600, 7200",
- "name": "iaaddr"
- },
-
- /*
- 0 1 2 3
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | OPTION_ORO | option-len |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | requested-option-code-1 | requested-option-code-2 |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | ... |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
- option-code OPTION_ORO (6).
-
- option-len 2 * number of requested options.
-
- requested-option-code-n The option code for an option requested by
- the client.
- */
- // Note: not commonly configured in Kea
- // Type: array of {uint16}
- {
- "code": 6,
- "data": "16, 32, 42",
- "name": "oro"
- },
-
/*
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
"name": "preference"
},
- /*
- 0 1 2 3
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | OPTION_ELAPSED_TIME | option-len |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | elapsed-time |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
- option-code OPTION_ELAPSED_TIME (8).
-
- option-len 2.
-
- elapsed-time The amount of time since the client began its
- current DHCP transaction. This time is expressed in
- hundredths of a second (10^-2 seconds).
- */
- // Note: not commonly configured in Kea
- // Type: uint16
- {
- "code": 8,
- "data": "2",
- "name": "elapsed-time"
- },
-
- /*
- 0 1 2 3
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | OPTION_RELAY_MSG | option-len |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | |
- . DHCP-relay-message .
- . .
- . .
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
- option-code OPTION_RELAY_MSG (9)
-
- option-len Length of DHCP-relay-message
-
- DHCP-relay-message In a Relay-forward message, the received
- message, relayed verbatim to the next relay agent
- or server; in a Relay-reply message, the message to
- be copied and relayed to the relay agent or client
- whose address is in the peer-address field of the
- Relay-reply message
- */
- // Note: not commonly configured in Kea
- // Type: binary
- {
- "code": 9,
- "data": "1A BB AD AB BA D0 00 00 00 00 00 00 00 00 CA FE",
- "name": "relay-msg"
- },
-
- // Option code 10 is unassigned.
-
- /*
- 0 1 2 3
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | OPTION_AUTH | option-len |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | protocol | algorithm | RDM | |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |
- | |
- | replay detection (64 bits) +-+-+-+-+-+-+-+-+
- | | auth-info |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |
- . authentication information .
- . (variable length) .
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
- option-code OPTION_AUTH (11)
-
- option-len 11 + length of authentication
- information field
-
- protocol The authentication protocol used in
- this authentication option
-
- algorithm The algorithm used in the
- authentication protocol
-
- RDM The replay detection method used in
- this authentication option
-
- Replay detection The replay detection information for
- the RDM
-
- authentication information The authentication information,
- as specified by the protocol and
- algorithm used in this authentication
- option
- */
- // Note: not commonly configured in Kea
- // Type: binary
- {
- "code": 11,
- "data": "CA FE DE CA FB AD 00 12 34 00 1A BB AD AB BA D0",
- "name": "auth"
- },
-
/*
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
"name": "unicast"
},
- /*
- 0 1 2 3
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | OPTION_STATUS_CODE | option-len |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | status-code | |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |
- . .
- . status-message .
- . .
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
- option-code OPTION_STATUS_CODE (13).
-
- option-len 2 + length of status-message.
-
- status-code The numeric code for the status encoded in
- this option. The status codes are defined in
- section 24.4.
-
- status-message A UTF-8 encoded text string suitable for
- display to an end user, which MUST NOT be
- null-terminated.
- */
- // Note: not commonly configured in Kea
- // Type: uint16, string
- {
- "code": 13,
- "data": "1, Succesfully failed!",
- "name": "status-code"
- },
-
- /*
- 0 1 2 3
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | OPTION_RAPID_COMMIT | 0 |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
- option-code OPTION_RAPID_COMMIT (14).
-
- option-len 0.
- */
- // Note: not commonly configured in Kea
- // Type: empty
- {
- "code": 14,
- "name": "rapid-commit"
- },
-
- /*
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | OPTION_USER_CLASS | option-len |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- . .
- . user-class-data .
- . .
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
- option-code OPTION_USER_CLASS (15).
-
- option-len Length of user class data field.
-
- user-class-data The user classes carried by the client.
- */
- // Note: not commonly configured in Kea
- // Type: binary
- {
- "code": 15,
- "data": "05 E4 C1 A5 50 00 01 02 03 04 05 06 07 08 09 0A",
- "name": "user-class"
- },
-
- /*
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | OPTION_VENDOR_CLASS | option-len |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | enterprise-number |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- . .
- . vendor-class-data .
- . . . . .
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
- option-code OPTION_VENDOR_CLASS (16).
-
- option-len 4 + length of vendor class data field.
-
- enterprise-number The vendor's registered Enterprise Number as
- registered with IANA [6].
-
- vendor-class-data The hardware configuration of the host on
- which the client is running.
- */
- // Note: not commonly configured in Kea
- // Type: uint32, binary
- {
- "code": 16,
- // The first two bytes in the vendor-class-data represent the length of
- // the rest of the buffer.
- "data": "256, 00 0E 05 E4 C1 A5 50 00 01 02 03 04 05 06 07 0A",
- "name": "vendor-class"
- },
-
/*
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
"name": "vendor-opts"
},
- /*
- 0 1 2 3
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | OPTION_INTERFACE_ID | option-len |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- . .
- . interface-id .
- . .
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
- option-code OPTION_INTERFACE_ID (18).
-
- option-len Length of interface-id field.
-
- interface-id An opaque value of arbitrary length generated
- by the relay agent to identify one of the
- relay agent's interfaces.
- */
- // Note: not commonly configured in Kea
- // Type: binary
- {
- "code": 18,
- "data": "FE 01 BA 45 87 89",
- "name": "interface-id"
- },
-
- /*
- 0 1 2 3
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | OPTION_RECONF_MSG | option-len |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | msg-type |
- +-+-+-+-+-+-+-+-+
-
- option-code OPTION_RECONF_MSG (19).
-
- option-len 1.
-
- msg-type 5 for Renew message, 11 for
- Information-request message.
- */
- // Note: not commonly configured in Kea
- // Type: uint8
- {
- "code": 19,
- "data": "5",
- "name": "reconf-msg"
- },
-
/*
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
"name": "domain-search"
},
- /*
- 0 1 2 3
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | OPTION_IA_PD | option-len |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | IAID (4 octets) |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | T1 |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | T2 |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- . .
- . IA_PD-options .
- . .
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
- option-code OPTION_IA_PD (25).
-
- option-len 12 + length of IA_PD-options field.
-
- IAID The unique identifier for this IA_PD; the
- IAID must be unique among the identifiers for
- all of this client's IA_PDs. The number
- space for IA_PD IAIDs is separate from the
- number space for other IA option types (i.e.,
- IA_NA and IA_TA). A 4-octet field containing
- an unsigned integer.
-
- T1 The time interval after which the client
- should contact the server from which the
- prefixes in the IA_PD were obtained to extend
- the lifetimes of the prefixes delegated to
- the IA_PD; T1 is a time duration relative to
- the message reception time expressed in units
- of seconds. A 4-octet field containing an
- unsigned integer.
-
- T2 The time interval after which the client
- should contact any available server to extend
- the lifetimes of the prefixes assigned to the
- IA_PD; T2 is a time duration relative to the
- message reception time expressed in units of
- seconds. A 4-octet field containing an
- unsigned integer.
-
- IA_PD-options Options associated with this IA_PD. A
- variable-length field (12 octets less than
- the value in the option-len field).
- */
- // Note: not commonly configured in Kea
- // Type: uint32, uint32, uint32
- {
- "code": 25,
- "data": "1A1D, 3600, 7200",
- "name": "ia-pd"
- },
-
- /*
- 0 1 2 3
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | OPTION_IAPREFIX | option-len |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | preferred-lifetime |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | valid-lifetime |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | prefix-length | |
- +-+-+-+-+-+-+-+-+ IPv6-prefix |
- | (16 octets) |
- | |
- | |
- | |
- | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | | .
- +-+-+-+-+-+-+-+-+ .
- . IAprefix-options .
- . .
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
- option-code OPTION_IAPREFIX (26).
-
- option-len 25 + length of IAprefix-options field.
-
- preferred-lifetime The preferred lifetime for the prefix in the
- option, expressed in units of seconds. A
- value of 0xffffffff represents "infinity"
- (see Section 7.7). A 4-octet field
- containing an unsigned integer.
-
- valid-lifetime The valid lifetime for the prefix in the
- option, expressed in units of seconds. A
- value of 0xffffffff represents "infinity". A
- 4-octet field containing an unsigned integer.
-
- prefix-length Length for this prefix in bits. A 1-octet
- unsigned integer.
-
- IPv6-prefix An IPv6 prefix. A 16-octet field.
-
- IAprefix-options Options associated with this prefix. A
- variable-length field (25 octets less than
- the value in the option-len field).
- */
- // Note: not commonly configured in Kea
- // Type: uint32, uint32, uint8, IPv6 address
- {
- "code": 26,
- "data": "3600, 7200, 64, 2001:db8::",
- "name": "iaprefix"
- },
-
/*
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
"name": "remote-id"
},
- /*
- 0 1 2 3
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | OPTION_SUBSCRIBER_ID | option-len |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- . .
- . subscriber-id .
- . .
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
- option-code OPTION_SUBSCRIBER_ID (38)
-
- option-len length, in octets, of the subscriber-id field.
- The minimum length is 1 octet.
-
- subscriber-id The subscriber's identity.
- */
- // Note: not commonly configured in Kea
- // Type: binary
- {
- "code": 38,
- "data": "1A BB AD AB BA D0 00 00 00 00 00 00 00 00 CA FE",
- "name": "subscriber-id"
- },
-
/*
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
// Option codes 84-86 are not defined in Kea.
- /*
- 0 1 2 3
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | option-code | option-len |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | |
- . DHCPv4-message .
- . .
- . .
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
- option-code: OPTION_DHCPV4_MSG (87).
-
- option-len: Length of the DHCPv4 message.
-
- DHCPv4-message: The DHCPv4 message sent by the client or the server.
- In a DHCPv4-query message, it contains a DHCPv4 message sent by a
- client. In a DHCPv4-response message, it contains a DHCPv4
- message sent by a server in response to a client.
- */
- // Note: not commonly configured in Kea
- // Type: binary
- {
- "code": 87,
- "data": "1A BB AD AB BA D0 00 00 00 00 00 00 00 00 CA FE",
- "name": "dhcpv4-message"
- },
-
/*
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
// Option code 112 is unassigned.
// Option codes 113-134 are not defined in Kea.
- /*
- 0 1 2 3
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | OPTION_RELAY_PORT | Option-Len |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | Downstream Source Port |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
- Option-Code: OPTION_RELAY_PORT. 16-bit value, 135.
-
- Option-Len: 16-bit value to be set to 2.
-
- Downstream Source Port: 16-bit value. To be set by the IPv6 relay
- either to the downstream relay agent's UDP source port used for
- the UDP packet, or to zero if only the local relay agent uses the
- non-DHCP UDP port (not 547).
- */
- // Note: not commonly configured in Kea
- // Type: uint16
- {
- "code": 135,
- "data": "12345",
- "name": "relay-source-port"
- },
-
// Option codes 136-142 are unassigned.
/*
// "space" is required to be explicitly defined as "docsis3-v6"
{
"option-data": [
- /*
- 0 1 2 3
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | option-code | option-len |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | requested-option-code-1 | requested-option-code-2 |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
- option-code CL_OPTION_ORO (1)
-
- option-len 2 * number of requested options in bytes
-
- requested-option-code-n The option code for an option requested by the client.
- */
- // Note: not commonly configured in Kea
- // Type: array of {uint16}
- {
- "code": 1,
- "data": "32, 33",
- "name": "oro",
- "space": "docsis3-v6"
- },
-
/*
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
"data": "-25200",
"name": "time-offset",
"space": "docsis3-v6"
- },
-
- /*
- 0 1 2 3
- 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | option-code | option-len |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | CM-MAC-address |
- | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- | |
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
- option code: CL_CM_MAC_ADDR (1026)
-
- option len: MUST be 6 bytes.
-
- CM-MAC-address The MAC address of the CM.
- */
- // Note: not commonly configured in Kea
- // Type: binary
- {
- "code": 1026,
- "data": "1A BB AD AB BA D0",
- "name": "cmts-cm-mac",
- "space": "docsis3-v6"
}
],
"subnet": "2001:db8:D0C5:15::/64"