Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Utorok, 20. október 2026

Rozdiely pre scripts/shell/firewall/firewall.d/subnets/simplify-subnets.sh medzi verziami 1.3 a 1.4

verzia 1.3, 2018/05/07 23:52:34 verzia 1.4, 2018/05/08 00:00:30
Riadok 12 
Riadok 12 
 # 2018-05-07 - created  # 2018-05-07 - created
 #  #
   
 # $Platon: scripts/shell/firewall/firewall.d/subnets/simplify-subnets.sh,v 1.2 2018/05/07 22:20:40 nepto Exp $  # $Platon: scripts/shell/firewall/firewall.d/subnets/simplify-subnets.sh,v 1.3 2018/05/07 23:52:34 nepto Exp $
   
   # Minimum amount of C-classes to be merged into one B-class
   MIN_C_CLASS_MERGE=120;
 SUBNET_FILE="$1";  SUBNET_FILE="$1";
   
 if [ -z "$SUBNET_FILE" ]; then  if [ -z "$SUBNET_FILE" ]; then
Riadok 57  while IFS='' read -r line; do
Riadok 59  while IFS='' read -r line; do
                 continue;                  continue;
         fi          fi
   
         if [ "$cnt_CinB" -gt 128 ]; then          if [ "$cnt_CinB" -gt "$MIN_C_CLASS_MERGE" ]; then
                 echo "# Merged $cnt_CinB C-classes to one B-class";                  echo "# Merged $cnt_CinB C-classes into one B-class";
                 echo "$prev_B/16";                  echo "$prev_B/16";
         else if [ "$cnt_CinB" -eq 1 ]; then          else if [ "$cnt_CinB" -eq 1 ]; then
                 if [[ "$to_write" = */24 ]]; then                  if [[ "$to_write" = */24 ]]; then

Legend:
Odstranené z verzie1.3  
zmenené riadky
  Pridané vo verzii1.4

Platon Group <platon@platon.sk> http://platon.sk/
Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok