summaryrefslogtreecommitdiffstats
path: root/doc/examples/kea4/all-options.json
blob: 49dbbf9fad93137f93b3daa3713b136b30904bf3 (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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
// This example configuration file for DHCPv4 server in Kea contains:
//
// - data for all the standard options
// - custom option definitions at global level along with some associated
// option data
// - custom option data with standardized option spaces other than "dhcp4"
// - custom option spaces
// - option embedding examples
//
// The reader is strongly encouraged to take a look at the option formats
// documented in the Kea ARM:
// https://kea.readthedocs.io/en/latest/arm/dhcp4-srv.html?highlight=list%20of%20standard%20dhcpv4#id2

{
  "Dhcp4": {
    /*                Data for all standard option definitions                */
    // Option data defined globally
    "option-data": [
      /*
       Code   Len        Time Offset
      +-----+-----+-----+-----+-----+-----+
      |  2  |  4  |  n1 |  n2 |  n3 |  n4 |
      +-----+-----+-----+-----+-----+-----+
      */
      // Type: int32
      {
        "code": 2,
        "data": "-25200",
        "name": "time-offset"
      },

      /*
       Code   Len         Address 1               Address 2
      +-----+-----+-----+-----+-----+-----+-----+-----+--
      |  3  |  n  |  a1 |  a2 |  a3 |  a4 |  a1 |  a2 |  ...
      +-----+-----+-----+-----+-----+-----+-----+-----+--
      */
      // Type: array of {IPv4 address}
      {
        "code": 3,
        "data": "192.0.2.2, 192.0.2.3",
        "name": "routers"
      },

      /*
       Code   Len         Address 1               Address 2
      +-----+-----+-----+-----+-----+-----+-----+-----+--
      |  4  |  n  |  a1 |  a2 |  a3 |  a4 |  a1 |  a2 |  ...
      +-----+-----+-----+-----+-----+-----+-----+-----+--
      */
      // Type: array of {IPv4 address}
      {
        "code": 4,
        "data": "192.0.2.4, 192.0.2.5",
        "name": "time-servers"
      },

      /*
       Code   Len         Address 1               Address 2
      +-----+-----+-----+-----+-----+-----+-----+-----+--
      |  5  |  n  |  a1 |  a2 |  a3 |  a4 |  a1 |  a2 |  ...
      +-----+-----+-----+-----+-----+-----+-----+-----+--
      */
      // Type: array of {IPv4 address}
      {
        "code": 5,
        "data": "192.0.2.6, 192.0.2.7",
        "name": "name-servers"
      },

      /*
       Code   Len         Address 1               Address 2
      +-----+-----+-----+-----+-----+-----+-----+-----+--
      |  6  |  n  |  a1 |  a2 |  a3 |  a4 |  a1 |  a2 |  ...
      +-----+-----+-----+-----+-----+-----+-----+-----+--
      */
      // Type: array of {IPv4 address}
      {
        "code": 6,
        "data": "192.0.2.8, 192.0.2.9",
        "name": "domain-name-servers"
      },

      /*
       Code   Len         Address 1               Address 2
      +-----+-----+-----+-----+-----+-----+-----+-----+--
      |  7  |  n  |  a1 |  a2 |  a3 |  a4 |  a1 |  a2 |  ...
      +-----+-----+-----+-----+-----+-----+-----+-----+--
      */
      // Type: array of {IPv4 address}
      {
        "code": 7,
        "data": "192.0.2.10, 192.0.2.11",
        "name": "log-servers"
      },

      /*
       Code   Len         Address 1               Address 2
      +-----+-----+-----+-----+-----+-----+-----+-----+--
      |  8  |  n  |  a1 |  a2 |  a3 |  a4 |  a1 |  a2 |  ...
      +-----+-----+-----+-----+-----+-----+-----+-----+--
      */
      // Type: array of {IPv4 address}
      {
        "code": 8,
        "data": "192.0.2.12, 192.0.2.13",
        "name": "cookie-servers"
      },

      /*
       Code   Len         Address 1               Address 2
      +-----+-----+-----+-----+-----+-----+-----+-----+--
      |  9  |  n  |  a1 |  a2 |  a3 |  a4 |  a1 |  a2 |  ...
      +-----+-----+-----+-----+-----+-----+-----+-----+--
      */
      // Type: array of {IPv4 address}
      {
        "code": 9,
        "data": "192.0.2.14, 192.0.2.15",
        "name": "lpr-servers"
      },

      /*
       Code   Len         Address 1               Address 2
      +-----+-----+-----+-----+-----+-----+-----+-----+--
      |  10 |  n  |  a1 |  a2 |  a3 |  a4 |  a1 |  a2 |  ...
      +-----+-----+-----+-----+-----+-----+-----+-----+--
      */
      // Type: array of {IPv4 address}
      {
        "code": 10,
        "data": "192.0.2.16, 192.0.2.17",
        "name": "impress-servers"
      },

      /*
       Code   Len         Address 1               Address 2
      +-----+-----+-----+-----+-----+-----+-----+-----+--
      |  11 |  n  |  a1 |  a2 |  a3 |  a4 |  a1 |  a2 |  ...
      +-----+-----+-----+-----+-----+-----+-----+-----+--
      */
      // Type: array of {IPv4 address}
      {
        "code": 11,
        "data": "192.0.2.18, 192.0.2.19",
        "name": "resource-location-servers"
      },

      /*
       Code   Len   File Size
      +-----+-----+-----+-----+
      |  13 |  2  |  l1 |  l2 |
      +-----+-----+-----+-----+
      */
      // Type: uint16
      {
        "code": 13,
        "data": "1024",
        "name": "boot-size"
      },

      /*
       Code   Len      Dump File Pathname
      +-----+-----+-----+-----+-----+-----+---
      |  14 |  n  |  n1 |  n2 |  n3 |  n4 | ...
      +-----+-----+-----+-----+-----+-----+---
      */
      // Type: string
      {
        "code": 14,
        "data": "/etc/crash-dump.img",
        "name": "merit-dump"
      },

      /*
       Code   Len        Domain Name
      +-----+-----+-----+-----+-----+-----+--
      |  15 |  n  |  d1 |  d2 |  d3 |  d4 |  ...
      +-----+-----+-----+-----+-----+-----+--
      */
      // Type: FQDN
      {
        "code": 15,
        "data": "my.example.org",
        "name": "domain-name"
      },

      /*
       Code   Len    Swap Server Address
      +-----+-----+-----+-----+-----+-----+
      |  16 |  n  |  a1 |  a2 |  a3 |  a4 |
      +-----+-----+-----+-----+-----+-----+
      */
      // Type: IPv4 address
      {
        "code": 16,
        "data": "192.0.2.20",
        "name": "swap-server"
      },

      /*
       Code   Len      Root Disk Pathname
      +-----+-----+-----+-----+-----+-----+---
      |  17 |  n  |  n1 |  n2 |  n3 |  n4 | ...
      +-----+-----+-----+-----+-----+-----+---
      */
      // Type: string
      {
        "code": 17,
        "data": "/path/to/root",
        "name": "root-path"
      },

      /*
       Code   Len      Extensions Pathname
      +-----+-----+-----+-----+-----+-----+---
      |  18 |  n  |  n1 |  n2 |  n3 |  n4 | ...
      +-----+-----+-----+-----+-----+-----+---
      */
      // Type: string
      {
        "code": 18,
        "data": "/path/to/extensions",
        "name": "extensions-path"
      },

      /*
       Code   Len  Value
      +-----+-----+-----+
      |  19 |  1  | 0/1 |
      +-----+-----+-----+
      */
      // Type: boolean
      {
        "code": 19,
        "data": "true",
        "name": "ip-forwarding"
      },

      /*
       Code   Len  Value
      +-----+-----+-----+
      |  20 |  1  | 0/1 |
      +-----+-----+-----+
      */
      // Type: boolean
      {
        "code": 20,
        "data": "true",
        "name": "non-local-source-routing"
      },

      /*
       Code   Len         Address 1                  Mask 1
      +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
      |  21 |  n  |  a1 |  a2 |  a3 |  a4 |  m1 |  m2 |  m3 |  m4 |
      +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
              Address 2                  Mask 2
      +-----+-----+-----+-----+-----+-----+-----+-----+---
      |  a1 |  a2 |  a3 |  a4 |  m1 |  m2 |  m3 |  m4 | ...
      +-----+-----+-----+-----+-----+-----+-----+-----+---
      */
      // Type: array of {IPv4 address}
      {
        "code": 21,
        "data": "192.0.2.21, 192.0.2.22",
        "name": "policy-filter"
      },

      /*
       Code   Len      Size
      +-----+-----+-----+-----+
      |  22 |  2  |  s1 |  s2 |
      +-----+-----+-----+-----+
      */
      // Type: uint16
      {
        "code": 22,
        "data": "2048",
        "name": "max-dgram-reassembly"
      },

      /*
       Code   Len   TTL
      +-----+-----+-----+
      |  23 |  1  | ttl |
      +-----+-----+-----+
      */
      // Type: uint8
      {
        "code": 23,
        "data": "248",
        "name": "default-ip-ttl"
      },

      /*
       Code   Len           Timeout
      +-----+-----+-----+-----+-----+-----+
      |  24 |  4  |  t1 |  t2 |  t3 |  t4 |
      +-----+-----+-----+-----+-----+-----+
      */
      // Type: uint32
      {
        "code": 24,
        "data": "131072",
        "name": "path-mtu-aging-timeout"
      },

      /*
       Code   Len     Size 1      Size 2
      +-----+-----+-----+-----+-----+-----+---
      |  25 |  n  |  s1 |  s2 |  s1 |  s2 | ...
      +-----+-----+-----+-----+-----+-----+---
      */
      // Type: array of {uint16}
      {
        "code": 25,
        "data": "3072, 4096",
        "name": "path-mtu-plateau-table"
      },

      /*
       Code   Len      MTU
      +-----+-----+-----+-----+
      |  26 |  2  |  m1 |  m2 |
      +-----+-----+-----+-----+
      */
      // Type: uint16
      {
        "code": 26,
        "data": "5120",
        "name": "interface-mtu"
      },

      /*
       Code   Len  Value
      +-----+-----+-----+
      |  27 |  1  | 0/1 |
      +-----+-----+-----+
      */
      // Type: boolean
      {
        "code": 27,
        "data": "true",
        "name": "all-subnets-local"
      },

      /*
       Code   Len     Broadcast Address
      +-----+-----+-----+-----+-----+-----+
      |  28 |  4  |  b1 |  b2 |  b3 |  b4 |
      +-----+-----+-----+-----+-----+-----+
      */
      // Type: IPv4 address
      {
        "code": 28,
        "data": "192.0.2.255",
        "name": "broadcast-address"
      },

      /*
       Code   Len  Value
      +-----+-----+-----+
      |  29 |  1  | 0/1 |
      +-----+-----+-----+
      */
      // Type: boolean
      {
        "code": 29,
        "data": "true",
        "name": "perform-mask-discovery"
      },

      /*
       Code   Len  Value
      +-----+-----+-----+
      |  30 |  1  | 0/1 |
      +-----+-----+-----+
      */
      // Type: boolean
      {
        "code": 30,
        "data": "true",
        "name": "mask-supplier"
      },

      /*
       Code   Len  Value
      +-----+-----+-----+
      |  31 |  1  | 0/1 |
      +-----+-----+-----+
      */
      // Type: boolean
      {
        "code": 31,
        "data": "true",
        "name": "router-discovery"
      },

      /*
       Code   Len            Address
      +-----+-----+-----+-----+-----+-----+
      |  32 |  4  |  a1 |  a2 |  a3 |  a4 |
      +-----+-----+-----+-----+-----+-----+
      */
      // Type: IPv4 address
      {
        "code": 32,
        "data": "192.0.2.23",
        "name": "router-solicitation-address"
      },

      /*
       Code   Len         Destination 1           Router 1
      +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
      |  33 |  n  |  d1 |  d2 |  d3 |  d4 |  r1 |  r2 |  r3 |  r4 |
      +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
              Destination 2           Router 2
      +-----+-----+-----+-----+-----+-----+-----+-----+---
      |  d1 |  d2 |  d3 |  d4 |  r1 |  r2 |  r3 |  r4 | ...
      +-----+-----+-----+-----+-----+-----+-----+-----+---
      */
      // Type: array of {IPv4 address}
      {
        "code": 33,
        "data": "192.0.2.24, 192.0.2.25",
        "name": "static-routes"
      },

      /*
       Code   Len  Value
      +-----+-----+-----+
      |  34 |  1  | 0/1 |
      +-----+-----+-----+
      */
      // Type: boolean
      {
        "code": 34,
        "data": "true",
        "name": "trailer-encapsulation"
      },

      /*
       Code   Len           Time
      +-----+-----+-----+-----+-----+-----+
      |  35 |  4  |  t1 |  t2 |  t3 |  t4 |
      +-----+-----+-----+-----+-----+-----+
      */
      // Type: uint32
      {
        "code": 35,
        "data": "196608",
        "name": "arp-cache-timeout"
      },

      /*
       Code   Len  Value
      +-----+-----+-----+
      |  36 |  1  | 0/1 |
      +-----+-----+-----+
      */
      // Type: boolean
      {
        "code": 36,
        "data": "true",
        "name": "ieee802-3-encapsulation"
      },

      /*
       Code   Len   TTL
      +-----+-----+-----+
      |  37 |  1  |  n  |
      +-----+-----+-----+
      */
      // Type: uint8
      {
        "code": 37,
        "data": "124",
        "name": "default-tcp-ttl"
      },

      /*
       Code   Len           Time
      +-----+-----+-----+-----+-----+-----+
      |  38 |  4  |  t1 |  t2 |  t3 |  t4 |
      +-----+-----+-----+-----+-----+-----+
      */
      // Type: uint32
      {
        "code": 38,
        "data": "262144",
        "name": "tcp-keepalive-interval"
      },

      /*
       Code   Len  Value
      +-----+-----+-----+
      |  39 |  1  | 0/1 |
      +-----+-----+-----+
      */
      // Type: boolean
      {
        "code": 39,
        "data": "true",
        "name": "tcp-keepalive-garbage"
      },

      /*
       Code   Len      NIS Domain Name
      +-----+-----+-----+-----+-----+-----+---
      |  40 |  n  |  n1 |  n2 |  n3 |  n4 | ...
      +-----+-----+-----+-----+-----+-----+---
      */
      // Type: string
      {
        "code": 40,
        "data": "nis.example.org",
        "name": "nis-domain"
      },

      /*
       Code   Len         Address 1               Address 2
      +-----+-----+-----+-----+-----+-----+-----+-----+--
      |  41 |  n  |  a1 |  a2 |  a3 |  a4 |  a1 |  a2 |  ...
      +-----+-----+-----+-----+-----+-----+-----+-----+--
      */
      // Type: array of {IPv4 address}
      {
        "code": 41,
        "data": "192.0.2.26, 192.0.2.27",
        "name": "nis-servers"
      },

      /*
       Code   Len         Address 1               Address 2
      +-----+-----+-----+-----+-----+-----+-----+-----+--
      |  42 |  n  |  a1 |  a2 |  a3 |  a4 |  a1 |  a2 |  ...
      +-----+-----+-----+-----+-----+-----+-----+-----+--
      */
      // Type: array of {IPv4 address}
      {
        "code": 42,
        "data": "192.0.2.28, 192.0.2.29",
        "name": "ntp-servers"
      },

      /*
       Code   Len   Vendor-specific information
      +-----+-----+-----+-----+---
      |  43 |  n  |  i1 |  i2 | ...
      +-----+-----+-----+-----+---

       Code   Len   Data item        Code   Len   Data item       Code
      +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
      |  T1 |  n  |  d1 |  d2 | ... |  T2 |  n  |  D1 |  D2 | ... | ... |
      +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+
      */
      // Type: empty
      {
        "code": 43,
        "name": "vendor-encapsulated-options"
      },

      /*
       Code   Len           Address 1              Address 2
      +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+----
      |  44 |  n  |  a1 |  a2 |  a3 |  a4 |  b1 |  b2 |  b3 |  b4 | ...
      +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+----
      */
      // Type: array of {IPv4 address}
      {
        "code": 44,
        "data": "192.0.2.30, 192.0.2.31",
        "name": "netbios-name-servers"
      },

      /*
       Code   Len           Address 1              Address 2
      +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+----
      |  45 |  n  |  a1 |  a2 |  a3 |  a4 |  b1 |  b2 |  b3 |  b4 | ...
      +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+----
      */
      // Type: array of {IPv4 address}
      {
        "code": 45,
        "data": "192.0.2.32, 192.0.2.33",
        "name": "netbios-dd-server"
      },

      /*
      Value         Node Type
      -----         ---------
      0x1           B-node
      0x2           P-node
      0x4           M-node
      0x8           H-node

       Code   Len  Node Type
      +-----+-----+-----------+
      |  46 |  1  | see above |
      +-----+-----+-----------+
      */
      // Type: uint8
      {
        "code": 46,
        "data": "0x1",
        "name": "netbios-node-type"
      },

      /*
       Code   Len       NetBIOS Scope
      +-----+-----+-----+-----+-----+-----+----
      |  47 |  n  |  s1 |  s2 |  s3 |  s4 | ...
      +-----+-----+-----+-----+-----+-----+----
      */
      // Type: string
      {
        "code": 47,
        "data": "scope42",
        "name": "netbios-scope"
      },

      /*
       Code   Len         Address 1               Address 2
      +-----+-----+-----+-----+-----+-----+-----+-----+---
      |  48 |  n  |  a1 |  a2 |  a3 |  a4 |  a1 |  a2 |   ...
      +-----+-----+-----+-----+-----+-----+-----+-----+---
      */
      // Type: array of {IPv4 address}
      {
        "code": 48,
        "data": "192.0.2.34, 192.0.2.35",
        "name": "font-servers"
      },

      /*
       Code   Len         Address 1               Address 2
      +-----+-----+-----+-----+-----+-----+-----+-----+---
      |  49 |  n  |  a1 |  a2 |  a3 |  a4 |  a1 |  a2 |   ...
      +-----+-----+-----+-----+-----+-----+-----+-----+---
      */
      // Type: array of {IPv4 address}
      {
        "code": 49,
        "data": "192.0.2.36, 192.0.2.37",
        "name": "x-display-manager"
      },

      /*
      Value   Meaning
      -----   --------
        1     the 'file' field is used to hold options
        2     the 'sname' field is used to hold options
        3     both fields are used to hold options

       Code   Len  Value
      +-----+-----+-----+
      |  52 |  1  |1/2/3|
      +-----+-----+-----+
      */
      // Type: uint8
      {
        "code": 52,
        "data": "3",
        "name": "dhcp-option-overload"
      },

      /*
       Code   Len            Address
      +-----+-----+-----+-----+-----+-----+
      |  54 |  4  |  a1 |  a2 |  a3 |  a4 |
      +-----+-----+-----+-----+-----+-----+
      */
      // Type: IPv4 address
      {
        "code": 54,
        "data": "192.0.2.39",
        "name": "dhcp-server-identifier"
      },

      /*
       Code   Len     Text
      +-----+-----+-----+-----+---
      |  56 |  n  |  c1 |  c2 | ...
      +-----+-----+-----+-----+---
      */
      // Type: string
      {
        "code": 56,
        "data": "Error: here's a DHCPNAK!",
        "name": "dhcp-message"
      },

      /*
       Code   Len     Length
      +-----+-----+-----+-----+
      |  57 |  2  |  l1 |  l2 |
      +-----+-----+-----+-----+
      */
      // Type: uint16
      {
        "code": 57,
        "data": "1536",
        "name": "dhcp-max-message-size"
      },

      /*
       Code   Len   Vendor class Identifier
      +-----+-----+-----+-----+---
      |  60 |  n  |  i1 |  i2 | ...
      +-----+-----+-----+-----+---
      */
      // Type: string
      {
        "code": 60,
        "data": "ISC",
        "name": "vendor-class-identifier"
      },

      /*
       Code  Len    NetWare/IP Domain Name
      +-----+-----+------+------+------+-----
      |  62 |  n  |  c1  |  c2  |  c3  |  ...
      +-----+-----+------+------+------+-----
      */
      // Type: string
      {
        "code": 62,
        "data": "nwip.example.org",
        "name": "nwip-domain-name"
      },

      /*
       Code   Len  NetWare/IP General Info
      +-----+-----+----+----+
      | 63  | 11  | 2  |  0 |
      +-----+-----+----+----+
                   NWIP_EXIST_IN_OPTIONS_AREA (length 0)

                  +----+----+----+
                  |  5 |  1 |  1 |
                  +----+----+----+
                   NSQ_BROADCAST_SERVER (length 1)
                   value is YES

                  +----+----+------------+
                  |  7 |  4 | IP address |
                  +----+----+------------+
                   NEAREST_NWIP_SERVER (length 4)
                   value is IP address of server
      */
      // Type: binary
      {
        "code": 63,
        "data": "1A BB AD AB BA D0 00 00 00 00 00 00 00 00 CA FE",
        "name": "nwip-suboptions"
      },

      /*
       Code   Len      NIS Client Domain Name
      +-----+-----+-----+-----+-----+-----+---
      |  64 |  n  |  n1 |  n2 |  n3 |  n4 | ...
      +-----+-----+-----+-----+-----+-----+---
      */
      // Type: string
      {
        "code": 64,
        "data": "nisplus.example.org",
        "name": "nisplus-domain-name"
      },

      /*
       Code   Len         Address 1               Address 2
      +-----+-----+-----+-----+-----+-----+-----+-----+--
      |  65 |  n  |  a1 |  a2 |  a3 |  a4 |  a1 |  a2 |  ...
      +-----+-----+-----+-----+-----+-----+-----+-----+--
      */
      // Type: IPv4 address
      {
        "code": 65,
        "data": "192.0.2.40",
        "name": "nisplus-servers"
      },

      /*
       Code  Len   TFTP server
      +-----+-----+-----+-----+-----+---
      | 66  |  n  |  c1 |  c2 |  c3 | ...
      +-----+-----+-----+-----+-----+---
      */
      // Type: string
      {
        "code": 66,
        "data": "tftp.example.org",
        "name": "tftp-server-name"
      },

      /*
       Code  Len   Bootfile name
      +-----+-----+-----+-----+-----+---
      | 67  |  n  |  c1 |  c2 |  c3 | ...
      +-----+-----+-----+-----+-----+---
      */
      // Type: string
      {
        "code": 67,
        "data": "boot-file.img",
        "name": "boot-file-name"
      },

      /*
       Code Len    Home Agent Addresses (zero or more)
      +-----+-----+-----+-----+-----+-----+--
      | 68  |  n  | a1  | a2  | a3  | a4  | ...
      +-----+-----+-----+-----+-----+-----+--
      */
      // Type: array of {IPv4 address}
      {
        "code": 68,
        "data": "192.0.2.41, 192.0.2.42",
        "name": "mobile-ip-home-agent"
      },

      /*
       Code   Len         Address 1               Address 2
      +-----+-----+-----+-----+-----+-----+-----+-----+--
      | 69  |  n  |  a1 |  a2 |  a3 |  a4 |  a1 |  a2 |  ...
      +-----+-----+-----+-----+-----+-----+-----+-----+--
      */
      // Type: array of {IPv4 address}
      {
        "code": 69,
        "data": "192.0.2.43, 192.0.2.44",
        "name": "smtp-server"
      },

      /*
       Code   Len         Address 1               Address 2
      +-----+-----+-----+-----+-----+-----+-----+-----+--
      | 70  |  n  |  a1 |  a2 |  a3 |  a4 |  a1 |  a2 |  ...
      +-----+-----+-----+-----+-----+-----+-----+-----+--
      */
      // Type: array of {IPv4 address}
      {
        "code": 70,
        "data": "192.0.2.45, 192.0.2.46",
        "name": "pop-server"
      },

      /*
       Code   Len         Address 1               Address 2
      +-----+-----+-----+-----+-----+-----+-----+-----+--
      | 71  |  n  |  a1 |  a2 |  a3 |  a4 |  a1 |  a2 |  ...
      +-----+-----+-----+-----+-----+-----+-----+-----+--
      */
      // Type: array of {IPv4 address}
      {
        "code": 71,
        "data": "192.0.2.47, 192.0.2.48",
        "name": "nntp-server"
      },

      /*
       Code   Len         Address 1               Address 2
      +-----+-----+-----+-----+-----+-----+-----+-----+--
      | 72  |  n  |  a1 |  a2 |  a3 |  a4 |  a1 |  a2 |  ...
      +-----+-----+-----+-----+-----+-----+-----+-----+--
      */
      // Type: array of {IPv4 address}
      {
        "code": 72,
        "data": "192.0.2.49, 192.0.2.50",
        "name": "www-server"
      },

      /*
       Code   Len         Address 1               Address 2
      +-----+-----+-----+-----+-----+-----+-----+-----+--
      | 73  |  n  |  a1 |  a2 |  a3 |  a4 |  a1 |  a2 |  ...
      +-----+-----+-----+-----+-----+-----+-----+-----+--
      */
      // Type: array of {IPv4 address}
      {
        "code": 73,
        "data": "192.0.2.51, 192.0.2.52",
        "name": "finger-server"
      },

      /*
       Code   Len         Address 1               Address 2
      +-----+-----+-----+-----+-----+-----+-----+-----+--
      | 74  |  n  |  a1 |  a2 |  a3 |  a4 |  a1 |  a2 |  ...
      +-----+-----+-----+-----+-----+-----+-----+-----+--
      */
      // Type: array of {IPv4 address}
      {
        "code": 74,
        "data": "192.0.2.53, 192.0.2.54",
        "name": "irc-server"
      },

      /*
       Code   Len         Address 1               Address 2
      +-----+-----+-----+-----+-----+-----+-----+-----+--
      | 75  |  n  |  a1 |  a2 |  a3 |  a4 |  a1 |  a2 |  ...
      +-----+-----+-----+-----+-----+-----+-----+-----+--
      */
      // Type: array of {IPv4 address}
      {
        "code": 75,
        "data": "192.0.2.55, 192.0.2.56",
        "name": "streettalk-server"
      },

      /*
       Code   Len         Address 1               Address 2
      +-----+-----+-----+-----+-----+-----+-----+-----+--
      | 76  |  n  |  a1 |  a2 |  a3 |  a4 |  a1 |  a2 |  ...
      +-----+-----+-----+-----+-----+-----+-----+-----+--
      */
      // Type: array of {IPv4 address}
      {
        "code": 76,
        "data": "192.0.2.57, 192.0.2.58",
        "name": "streettalk-directory-assistance-server"
      },

      /*
       Code   Len   Value
      +-----+-----+---------------------  . . .  --+
      | 77  |  N  | User Class Data ('Len' octets) |
      +-----+-----+---------------------  . . .  --+
      */
      // Type: binary
      {
        "code": 77,
        "data": "1A BB AD AB BA D0 00 00 00 00 00 00 00 00 CA FE",
        "name": "user-class"
      },

      /*
       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 = 78   |    Length     |   Mandatory   |      a1       |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |      a2       |       a3      |       a4      |      ...
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      */
      // Type: boolean, array of {IPv4 address}
      {
        "code": 78,
        "data": "true, 192.0.2.59, 192.0.2.60",
        "name": "slp-directory-agent"
      },

      /*
       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 = 79   |     Length    |   Mandatory   | <Scope List>...
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      */
      // Type: boolean, string
      {
        "code": 79,
        "data": "true, slp-scope",
        "name": "slp-service-scope"
      },

      // Option code 80 is not defined in Kea.
      // Option code 83 is not defined in Kea.
      // Option code 84 is unassigned.

      /*
       Code   Len        Address 1               Address 2
      +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+--
      | 85  |  n  |  a1 |  a2 | a3  |  a4 |  a1 |  a2 |  a3 |  a4 |  ...
      +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+--
      */
      // Type: array of IPv4 address
      {
        "code": 85,
        "data": "192.0.2.61, 192.0.2.62",
        "name": "nds-servers"
      },

      /*
       Code Len  NDS Tree Name
      +----+----+----+----+----+----+--
      | 86 | n  | c1 | c2 | c3 | c4 |  ...
      +----+----+----+----+----+----+--
      */
      // Type: string
      {
        "code": 86,
        "data": "my-tree",
        "name": "nds-tree-name"
      },

      /*
       Code Len  Initial NDS Context
      +----+----+----+----+----+----+--
      | 87 | n  | c1 | c2 | c3 | c4 |  ...
      +----+----+----+----+----+----+--
      */
      // Type: string
      {
        "code": 87,
        "data": "context",
        "name": "nds-context"
      },

      /*
       Code   Len  FQDN(s) of BCMCS Controller
      +-----+-----+-----+-----+-----+-----+-----+--
      | 88  |  n  |  s1 |  s2 |  s3 |  s4 | s5  |  ...
      +-----+-----+-----+-----+-----+-----+-----+--
      */
      // Type: FQDN
      {
        "code": 88,
        "data": "bcms-controller.example.org",
        "name": "bcms-controller-names"
      },

      /*
       Code   Len  Address 1               Address 2
      +-----+-----+-----+-----+-----+-----+-----+--
      | 89  |  n  | a1  | a2  | a3  | a4  | a1  |  ...
      +-----+-----+-----+-----+-----+-----+-----+--
      */
      // Type: array of {IPv4 address}
      {
        "code": 89,
        "data": "192.0.2.63",
        "name": "bcms-controller-address"
      },

      /*
       Code  Len  16-bit Type
      +----+-----+-----+-----+
      | 93 |  n  | n1  | n2  |
      +----+-----+-----+-----+
      */
      // Type: array of uint16
      {
        "code": 93,
        "data": "6144, 7168",
        "name": "client-system"
      },

      /*
       Code  Len  Type Major Minor
      +----+-----+----+-----+-----+
      | 94 |  3  |  t |  M  |  m  |
      +----+-----+----+-----+-----+
      */
      // Type: uint8, uint8, uint8
      {
        "code": 94,
        "data": "0, 1, 0",
        "name": "client-ndi"
      },

      // Option code 95 is unsupported.
      // Option code 96 is unassigned.

      /*
       Code  Len  Type  Machine Identifier
      +----+-----+----+-----+ . . . +-----+
      | 97 |  n  |  t |     | . . . |     |
      +----+-----+----+-----+ . . . +-----+
      */
      // Type: uint8, binary
      {
        "code": 97,
        "data": "0, 1A BB AD AB BA D0 00 00 00 00 00 00 00 00 CA FE",
        "name": "uuid-guid"
      },

      /*
      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     |   URL list
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

         Code            98

         Length          The length of the data field (i.e., URL list) in
                         bytes.

         URL list        A list of one or more URLs separated by the ASCII
                         space character (0x20).
      */
      // Type: string
      {
        "code": 98,
        "data": "uap1.example.org uap2.example.org",
        "name": "uap-servers"
      },

      /*
      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
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      | GEOCONF_CIVIC |       N       |      what     |    country    |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |    code       |        civic address elements                ...
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

      Code GEOCONF_CIVIC:  The code for this DHCP option is 99.

      N:  The length of this option is variable.  The minimum length is 3
         octets.

      what:  The 'what' element describes to which location the DHCP entry
         refers.  Currently, three options are defined: the location of the
         DHCP server (a value of 0), the location of the network element
         believed to be closest to the client (a value of 1), or the
         location of the client (a value of 2).  Option (2) SHOULD be used,
         but may not be known.  Options (0) and (1) SHOULD NOT be used
         unless it is known that the DHCP client is in close physical
         proximity to the server or network element.

      country code:  The two-letter ISO 3166 country code in capital ASCII
         letters, e.g., DE or US.  (Civic addresses always contain country
         designations, suggesting the use of a fixed-format field to save
         space.)

      civic address elements:  Zero or more elements comprising the civic
         and/or postal address, with the format described below
         (Section 3.3).
      */
      // Type: binary
      {
        "code": 99,
        "data": "1A BB AD AB BA D0 00 00 00 00 00 00 00 00 CA FE",
        "name": "geoconf-civic"
      },

      /*
       PCode  Len   TZ-POSIX String
      +-----+-----+------------------------------+
      | 100 |  N  | IEEE 1003.1 String           |
      +-----+-----+------------------------------+
      */
      // Type: string
      {
        "code": 100,
        // String options that have a comma in their values need to have
        // it escaped (i.e. each comma is preceded by two backslashes).
        // That's because commas are reserved for separating fields in
        // compound options. At the same time, we need to be conformant
        // with JSON spec, that does not allow "\,". Therefore the
        // slightly uncommon double backslashes notation is needed.
        // The value sent over the wire is:
        // EST5EDT4,M3.2.0/02:00,M11.1.0/02:00
        "data": "EST5EDT4\\,M3.2.0/02:00\\,M11.1.0/02:00",
        "name": "pcode"
      },

      /*
       TCode  Len   TZ-Database String
      +-----+-----+------------------------------+
      | 101 |  N  | Reference to the TZ Database |
      +-----+-----+------------------------------+
      */
      // Type: string
      {
        "code": 101,
        "data": "Europe/Zurich",
        "name": "tcode"
      },

      // Option codes 102-107 are 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
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |     Code      |   Length      |           Value               |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |         Value (cont.)         |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

      Code:  8-bit identifier of the IPv6-Only Preferred option code as
         assigned by IANA: 108.  The client includes the Code in the
         Parameter Request List in DHCPDISCOVER and DHCPREQUEST messages as
         described in Section 3.2.

      Length:  8-bit unsigned integer.  The length of the option, excluding
         the Code and Length Fields.  The server MUST set the length field
         to 4.  The client MUST ignore the IPv6-Only Preferred option if
         the length field value is not 4.

      Value:  32-bit unsigned integer.  The number of seconds for which the
         client should disable DHCPv4 (V6ONLY_WAIT configuration variable).
         If the server pool is explicitly configured with a V6ONLY_WAIT
         timer, the server MUST set the field to that configured value.
         Otherwise, the server MUST set it to zero.  The client MUST
         process that field as described in Section 3.2.
      */
      // Type: uint32
      {
        "code": 108,
        "data": "3600",
        "name": "v6-only-preferred"
      },

      // Option codes 109-111 are unassigned.

      // Type: array of {IPv4 address}
      {
        "code": 112,
        "data": "192.0.2.63, 192.0.2.64",
        "name": "netinfo-server-address"
      },

      // Type: string
      {
        "code": 113,
        "data": "server1",
        "name": "netinfo-server-tag"
      },

      // Type: string
      {
        "code": 114,
        "data": "https://default.example.org",
        "name": "v4-captive-portal"
      },

      // Option code 115 is unassigned.

      /*
       Code   Len   Value
      +-----+-----+-----+
      | 116 |  1  |  a  |
      +-----+-----+-----+
      */
      // Type: uint8
      {
        "code": 116,
        "data": "1",
        "name": "auto-config"
      },

      /*
           Code            Length      Name Service Search Order in Sequence
       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
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |     117       |     Len       |             ns1               |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |             ns2               |             ...               |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      */
      // Type: array of {uint16}
      {
        "code": 117,
        "data": "6, 41, 44, 65",
        "name": "name-service-search"
      },

      /*
       Code   Len        IPv4 Address
      +-----+-----+-----+-----+-----+-----+
      | 118 |  4  | A1  | A2  | A3  | A4  |
      +-----+-----+-----+-----+-----+-----+
      */
      // Type: IPv4 address
      {
        "code": 118,
        "data": "192.0.2.65",
        "name": "subnet-selection"
      },

      /*
       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
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |     119       |     Len       |         Searchstring...
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                     Searchstring...
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      */
      // Type: array of {FQDN}
      {
        "code": 119,
        "data": "example.com, example.org",
        "name": "domain-search"
      },

      // Option codes 120-123 are not defined in Kea.

      /*
                           1 1 1 1 1 1
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |  option-code  |  option-len   |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |      enterprise-number1       |
      |                               |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |   data-len1   |               |
      +-+-+-+-+-+-+-+-+               |
      /      vendor-class-data1       /
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ----
      |      enterprise-number2       |   ^
      |                               |   |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+   |
      |   data-len2   |               | optional
      +-+-+-+-+-+-+-+-+               |   |
      /      vendor-class-data2       /   |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+   |
      ~            ...                ~   V
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ----

      option-code         OPTION_V-I_VENDOR_CLASS (124)

      option-len          total length of all following option data in
                          octets

      enterprise-numberN  The vendor's 32-bit Enterprise Number as
                          registered with IANA [3]

      data-lenN           Length of vendor-class-data field

      vendor-class-dataN  Details of the hardware configuration of the
                          host on which the client is running, or of
                          industry consortium compliance
      */
      // Type: uint32, binary
      {
        "code": 124,
        "data": "4491, 0f BA AD AB BA D0 00 00 00 00 00 00 00 00 CA FE",
        "name": "vivco-suboptions"
      },

      /*
                           1 1 1 1 1 1
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |  option-code  |  option-len   |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |      enterprise-number1       |
      |                               |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |   data-len1   |               |
      +-+-+-+-+-+-+-+-+ option-data1  |
      /                               /
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ----
      |      enterprise-number2       |   ^
      |                               |   |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+   |
      |   data-len2   |               | optional
      +-+-+-+-+-+-+-+-+ option-data2  |   |
      /                               /   |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+   |
      ~            ...                ~   V
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ----

      option-code         OPTION_V-I_VENDOR_OPTS (125)

      option-len          total length of all following option data in
                          octets

      enterprise-numberN  The vendor's registered 32-bit Enterprise Number
                          as registered with IANA [3]

      data-lenN           Length of option-data field

      option-dataN        Vendor-specific options, described below
      */
      // Type: uint32
      {
        "code": 125,
        "data": "4491",
        "name": "vivso-suboptions"
      },

    // Option codes 126-127 are unassigned.
    // Option codes 128-135 are not defined in Kea.

      /*
      0                   1
      0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |  option-code  | option-length |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                               |
      +      PAA IPv4 Address         +
      |                               |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |             ...               |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
         Figure 1: PAA DHCPv4 option

      option-code:        OPTION_PANA_AGENT (136).

      option-length:      Length of the 'options' field in octets;
                          MUST be a multiple of four (4).

      PAA IPv4 Address:   IPv4 address of a PAA for the client to use.
                          The PAAs are listed in the order of preference
                          for use by the client.
      */
      // Type: array of {IPv4 address}
      {
        "code": 136,
        "data": "192.0.2.66, 192.0.2.67",
        "name": "pana-agent"
      },

      /*
      Code    Len   LoST Server Domain Name
      +-----+-----+-----+-----+-----+-----+-----+----
      | 137 |  n  |  s1 |  s2 |  s3 |  s4 | s5  |  ...
      +-----+-----+-----+-----+-----+-----+-----+----
      */
      // Type: FQDN
      {
        "code": 137,
        "data": "lost.example.org",
        "name": "v4-lost"
      },

      /*
      0                   1
      0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |  option-code  | option-length |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                               |
      +       AC IPv4 Address         +
      |                               |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |             ...               |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

      option-code:   OPTION_CAPWAP_AC_V4 (138)

      option-length:   Length of the 'options' field in octets; MUST be a
         multiple of four (4).

      AC IPv4 Address:  IPv4 address of a CAPWAP AC that the WTP may use.
         The ACs are listed in the order of preference for use by the WTP
      */
      // Type: array of {IPv4 address}
      {
        "code": 138,
        "data": "192.0.2.68, 192.0.2.69",
        "name": "capwap-ac-v4"
      },

      // Option codes 139-140 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
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |      141      |     Len       |         Searchstring...       |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                     Searchstring...                           |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      */
      // Type: array of {FQDN}
      {
        "code": 141,
        "data": "example.com, example.org",
        "name": "sip-ua-cs-domains"
      },

      // Option codes 142-145 are not defined in Kea.

      // Type: uint8, IPv4 address, IPv4 address, array of {FQDN}
      {
        "code": 146,
        "data": "1, 192.0.2.70, 192.0.2.71, example.com, example.org",
        "name": "rdnss-selection"
      },

      // Option codes 147-158 are not defined in Kea.

      // Type: uint8, PSID
      {
        "code": 159,
        "data": "2, 3/4",
        "name": "v4-portparams"
      },

      // Option codes 161-209 are 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_6RD   | option-length |  IPv4MaskLen  |  6rdPrefixLen |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                                                               |
      |                           6rdPrefix                           |
      |                          (16 octets)                          |
      |                                                               |
      |                                                               |
      |                                                               |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                     6rdBRIPv4Address(es)                      |
      .                                                               .
      .                                                               .
      .                                                               .
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

      option-code         OPTION_6RD (212)

      option-length       The length of the DHCP option in octets (22
                          octets with one BR IPv4 address).

      IPv4MaskLen         The number of high-order bits that are identical
                          across all CE IPv4 addresses within a given 6rd
                          domain.  This may be any value between 0 and 32.
                          Any value greater than 32 is invalid.

      6rdPrefixLen        The IPv6 prefix length of the SP's 6rd IPv6
                          prefix in number of bits.  For the purpose of
                          bounds checking by DHCP option processing, the
                          sum of (32 - IPv4MaskLen) + 6rdPrefixLen MUST be
                          less than or equal to 128.

      6rdBRIPv4Address    One or more IPv4 addresses of the 6rd Border
                          Relay(s) for a given 6rd domain.

      6rdPrefix           The service provider's 6rd IPv6 prefix
                          represented as a 16-octet IPv6 address.  The bits
                          in the prefix after the 6rdPrefixlen number of
                          bits are reserved and MUST be initialized to zero
                          by the sender and ignored by the receiver.
      */
      // Type: uint8, uint8, IPv6 address, array of {IPv4 address}
      {
        "code": 212,
        "data": "24, 96, 2001:db8::f001, 192.0.2.72, 192.0.2.73",
        "name": "option-6rd"
      },

      /*
       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      |  Access Network Domain Name   .
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      .            Access Network Domain Name (cont.)                 .
      .                              ...                              .
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

      option-code:  OPTION_V4_ACCESS_DOMAIN (213).

      option-length:  The length of the entire access network domain name
         option in octets.

      option-value:  The domain name associated with the access network,
         encoded as described in Section 3.1.
      */
      // Type: FQDN
      {
        "code": 213,
        "data": "example.org",
        "name": "v4-access-domain"
      },

      // Option codes 214-219 are unassigned.
      // Option codes 220-221 are not defined in Kea.
      // Option codes 222-254 are unassigned

      /*                         Custom option data                           */
      // See "option-def" below for the definitions.
      {
        "code": 1,
        "name": "my-empty-option",
        "space": "my-fancy-space"
      },
      {
        "code": 224,
        "data": "192.0.2.74, 3/4, 1, example.org, string",
        "name": "my-lengthy-option",
        "space": "my-fancy-space"
      },
      {
        "code": 254,
        "data": "127, 32767, 2147483647, 255, 65535, 4294967295, 192.0.2.75, 3/4, 1, example.org, string",
        "name": "my-fancy-option",
        "space": "my-fancy-space"
      },
      {
        "code": 232,
        "name": "my-encapsulating-option",
        "space": "my-encapsulating-space"
      }
    ],

    /*                       Custom option definitions                        */
    // For kea-dhcp4, custom option definitions can be global or in a client
    // class.
    "option-def": [
      // New option space allows for a new set of option codes.
      // An empty option requires no "data" in "option-data". It's
      // presence should be sufficient to trigger custom behavior.
      {
        "array": false,
        "code": 1,
        "encapsulate": "",
        "name": "my-empty-option",
        "record-types": "",
        "space": "my-fancy-space",
        "type": "empty"
      },

      // A custom type has "type" set to "record" and all data types (which need
      // to be more than 1, otherwise you're better off using the type directly)
      // are specified in "record-types". If "string" is part of them, it needs
      // to be last.
      {
        "array": false,
        "code": 224,
        "encapsulate": "",
        "name": "my-lengthy-option",
        "record-types": "ipv4-address, psid, tuple, fqdn, string",
        "space": "my-fancy-space",
        "type": "record"
      },

      // Contains arrays of all types except strings since an array of strings
      // is not a valid option definition.
      {
        "array": true,
        "code": 254,
        "encapsulate": "",
        "name": "my-fancy-option",
        "record-types": "int8, int16, int32, uint8, uint16, uint32, ipv4-address, psid, tuple, fqdn",
        "space": "my-fancy-space",
        "type": "record"
      },

      // A single encapsulating space can be used. An option containing any
      // option from said space will now be unpacked successfully by Kea.
      {
        "array": false,
        "code": 232,
        "encapsulate": "my-fancy-space",
        "name": "my-encapsulating-option",
        "record-types": "",
        "space": "my-encapsulating-space",
        "type": "empty"
      }
    ],

    "subnet4": [
      /*                         DOCSIS3 option data                          */
      // Headers are as defined in CL-SP-CANN-DHCP-Reg-I16-200715.
      // "space" is required to be explicitly defined as "docsis3-v4"
      {
        "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
          +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
          | CL_V4OPTION_ORO|  option-len  | req-opt-code-1| req-opt-code-2|
          +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
          |                              ...                              |
          +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

          option-code   CL_V4OPTION_ORO (1).

          option-len    number of requested options.

          req-opt-code-n The option code for an option requested by the client.

          */
          // Type: array of {uint8}
          {
            "code": 1,
            "data": "32, 42",
            "name": "oro",
            "space": "docsis3-v4"
          },

          /*
           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   | IPv4 address of TFTP server 1 |
          +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
          |  address of server 1 (cont.)  | IPv4 address of TFTP server 2 |
          +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
          |  address of server 2 (cont.)  |              ...
          +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
          .               ...             | IPv4 address of TFTP server n |
          +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
          |  address of server n (cont.)  |
          +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

          option code      CL_VV4OPTION_TFTP_SERVERS (2)

          option len       number of bytes for TFTP server IPv4 addresses (4*n for
                           n servers)
          */
          // Type: array of {IPv4 address}
          {
            "code": 2,
            "data": "192.0.2.76, 192.0.2.77",
            "name": "tftp-servers",
            "space": "docsis3-v4"
          }
        ],
        "subnet": "192.0.2.0/24"
      }
    ]
  }
}