roagen: updated to be compliant with current DN42 filtering rules

This commit is contained in:
netravnen 2018-12-23 20:51:58 +00:00
parent 3cd8ba21a5
commit 4ccbe9fbfa
2 changed files with 4 additions and 4 deletions

View file

@ -91,7 +91,7 @@ foreach ($raw_array as $sub_array)
$_maxlength = (isset ($maxlength[0]) ? $maxlength[0] : "");
else
// Do fallback to default prefix size if max-length was not set.
$_maxlength = $prefix[2];
$_maxlength = ($prefix[2] < 64 ? 64 : $prefix[2]);
$_mnt = $mnt[0];
@ -190,7 +190,7 @@ foreach ($raw_array as $sub_array)
$_maxlength = (isset ($maxlength[0]) ? $maxlength[0] : "");
else
// Do fallback to default prefix size if max-length was not set.
$_maxlength = $prefix[2];
$_maxlength = ($prefix[2] < 29 ? 29 : $prefix[2]);
$_mnt = $mnt[0];

View file

@ -77,7 +77,7 @@ foreach ($raw_array as $sub_array)
$_maxlength = (isset ($maxlength[0]) ? $maxlength[0] : "");
else
// Do fallback to default prefix size if max-length was not set.
$_maxlength = $prefix[2];
$_maxlength = ($prefix[2] < 64 ? 64 : $prefix[2]);
// Loop through each asn in single route6 object and assign
// other values accordingly.
@ -167,7 +167,7 @@ foreach ($raw_array as $sub_array)
$_maxlength = (isset ($maxlength[0]) ? $maxlength[0] : "");
else
// Do fallback to default prefix size if max-length was not set.
$_maxlength = $prefix[2];
$_maxlength = ($prefix[2] < 29 ? 29 : $prefix[2]);
// Loop through each asn in single route6 object and assign
// other values accordingly.