base-files: ipcalc.sh: correctly set limit for prefix > 30
authorLeon M. Busch-George <leon@georgemail.eu>
Fri, 16 Jun 2023 12:56:39 +0000 (14:56 +0200)
committerLeon M. Busch-George <leon@georgemail.eu>
Mon, 25 Sep 2023 13:02:49 +0000 (15:02 +0200)
commit9b2f8a33b6b247d4232d48a1d18aea3769590083
tree1d3a3ded1de21f5f934ef1f7962c5d5e8ba8fccd
parent9e8bbd4265271612732c0804065ce8bf4939e8c0
base-files: ipcalc.sh: correctly set limit for prefix > 30

For /31 and /32 prefixes, there are only host addresses - no network and
broadcast address with all-zero and all-one bits.
Reflect this when setting the limit.

Signed-off-by: Leon M. Busch-George <leon@georgemail.eu>
package/base-files/files/bin/ipcalc.sh