Commit 20eb94d
config: allow minimum PD len up to 64
The current limit of [1,62] doesn't really seem to be justified. With
things like RFC9762 (DHCPv6-PD preferred), it isn't unlikely that we'll
see more DHCPv6-PD requests in the future, and not just from actual
routers.
The smallest realistic PD that can be allocated is a /64, so make that
the minimum.
Also, fix a bug in the logic (note that the PD_MIN_LEN_MAX actually
isn't enforced).
Closes: openwrt#352
(cherry picked from commit 62113d0)
Signed-off-by: David Härdeman <david@hardeman.nu>
Link: openwrt#357
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>1 parent 7ebd960 commit 20eb94d
2 files changed
+9
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
1456 | 1456 | | |
1457 | 1457 | | |
1458 | 1458 | | |
1459 | | - | |
1460 | | - | |
1461 | | - | |
1462 | | - | |
| 1459 | + | |
| 1460 | + | |
| 1461 | + | |
1463 | 1462 | | |
1464 | | - | |
| 1463 | + | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
1465 | 1467 | | |
1466 | 1468 | | |
1467 | 1469 | | |
| |||
0 commit comments