From 9e8bbd4265271612732c0804065ce8bf4939e8c0 Mon Sep 17 00:00:00 2001 From: "Leon M. Busch-George" Date: Fri, 16 Jun 2023 14:53:09 +0200 Subject: [PATCH] base-files: ipcalc.sh: correctly interpret num parameter The start and end addresses are inclusive. Thus, adding num without substracting one results in num + 1 addresses. Add the substraction and to implement the documented behaviour. Signed-off-by: Leon M. Busch-George --- package/base-files/files/bin/ipcalc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/base-files/files/bin/ipcalc.sh b/package/base-files/files/bin/ipcalc.sh index 56854b4104..21f84bcaf2 100755 --- a/package/base-files/files/bin/ipcalc.sh +++ b/package/base-files/files/bin/ipcalc.sh @@ -69,7 +69,7 @@ BEGIN { if (startlimit) end=limit if (end==ipaddr) end=ipaddr-1 -- 2.30.2