base-files: ipcalc.sh: fail when network is too small
authorLeon M. George <leon@georgemail.eu>
Thu, 5 May 2022 22:02:52 +0000 (00:02 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Tue, 7 Feb 2023 20:05:56 +0000 (21:05 +0100)
commita40a96e54b0d047d14d99bb715ee2dd94458acb6
treea907a71bb18f40b6e485f21f3af9a38849220288
parent4fe106afd1870cfeb6a45d40f1dbb69e890f1756
base-files: ipcalc.sh: fail when network is too small

It's possible to move range boundaries in a way that the start address
lies behind the end address.
Detect this condition and exit with an error message.

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