base-files: ipcalc.sh: don't print broadcast addr for prefix > 30
authorLeon M. Busch-George <leon@georgemail.eu>
Fri, 16 Jun 2023 12:58:48 +0000 (14:58 +0200)
committerLeon M. Busch-George <leon@georgemail.eu>
Mon, 25 Sep 2023 13:02:49 +0000 (15:02 +0200)
commit59e681eea1fbf969ff6f2da315f18142b70424bd
treeaf993b5520ec23f4037aa3cbac9cccb3abb13650
parent9b2f8a33b6b247d4232d48a1d18aea3769590083
base-files: ipcalc.sh: don't print broadcast addr for prefix > 30

Printing a broadcast address doesn't make any sense for /31 and /32
prefixes.
Strictly speaking, the same goes for the network address but it is useful
to get the first address in the prefix, e.g. to create a canonical
CIDR notation "$NETWORK/$PREFIX".

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