From 8a29a0d920cda3366e3fe84f8cedb0dac14eb8d8 Mon Sep 17 00:00:00 2001 From: Eduardo Ramos Testillano Date: Fri, 29 Jan 2016 17:11:30 +0100 Subject: [PATCH] Checkings and warning (SEQ8 overflow) --- example/diameter/launcher/resources/scripts/clone.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/example/diameter/launcher/resources/scripts/clone.sh b/example/diameter/launcher/resources/scripts/clone.sh index 747e8b0..84a9479 100755 --- a/example/diameter/launcher/resources/scripts/clone.sh +++ b/example/diameter/launcher/resources/scripts/clone.sh @@ -181,6 +181,9 @@ then fi N_ITEMS=$((CLONE_SEQ_END - CLONE_SEQ_BEGIN + 1)) +[ "$N_ITEMS" -lt 1 ] && _exit "Initial sequence ($CLONE_SEQ_BEGIN) provided must be under final sequence value ($CLONE_SEQ_END) !!" +[ "$CLONE_SEQ_END" -gt "99999999" ] && echo "Warning: some sequence value in range provided overflows __SEQ8__ and derived variables (__IPV4__ and __IPV4HEX__). Be care about using them ..." + if [ -z "$N_GROUPS" ] then N_GROUPS=$((N_ITEMS/25)) -- 2.20.1