From: Michael Tremer Date: Sun, 23 Sep 2018 15:29:41 +0000 (+0200) Subject: ipv4: Fix ipv4_range_explicit function X-Git-Tag: 010~22 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=80f8f73bc3881a0e9e63ada48aa9189616c7baa5;p=network.git ipv4: Fix ipv4_range_explicit function Inputs where not converted correctly and therefore the function returned an invalid output. Signed-off-by: Michael Tremer --- diff --git a/src/functions/functions.ipv4 b/src/functions/functions.ipv4 index d19be518..eafbe227 100644 --- a/src/functions/functions.ipv4 +++ b/src/functions/functions.ipv4 @@ -380,9 +380,9 @@ ipv4_range_explicit() { ;; *.*.*.*/*) first=$(ipv4_get_network ${range}) - first="$(ip_split_prefix "${range}")" + first="$(ip_split_prefix "${first}")" last=$(ipv4_get_broadcast ${range}) - last="$(ip_split_prefix "${range}")" + last="$(ip_split_prefix "${last}")" ;; esac