DHCPv4 option 21 policy-filter example may be misleading
Example of that Option that is currently in the source code (all-options.json
) may be misleading.
/*
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"
},
data
should be rather pairs of (IPv4, mask), e.g.
"data": "192.0.2.0, 255.255.255.0",
or
"data": "192.0.2.0, 255.255.255.0, 10.2.0.0, 255.255.0.0",