roagen: updated to be compliant with current DN42 filtering rules
This commit is contained in:
parent
3cd8ba21a5
commit
4ccbe9fbfa
|
@ -91,7 +91,7 @@ foreach ($raw_array as $sub_array)
|
||||||
$_maxlength = (isset ($maxlength[0]) ? $maxlength[0] : "");
|
$_maxlength = (isset ($maxlength[0]) ? $maxlength[0] : "");
|
||||||
else
|
else
|
||||||
// Do fallback to default prefix size if max-length was not set.
|
// 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];
|
$_mnt = $mnt[0];
|
||||||
|
|
||||||
|
@ -190,7 +190,7 @@ foreach ($raw_array as $sub_array)
|
||||||
$_maxlength = (isset ($maxlength[0]) ? $maxlength[0] : "");
|
$_maxlength = (isset ($maxlength[0]) ? $maxlength[0] : "");
|
||||||
else
|
else
|
||||||
// Do fallback to default prefix size if max-length was not set.
|
// 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];
|
$_mnt = $mnt[0];
|
||||||
|
|
||||||
|
|
|
@ -77,7 +77,7 @@ foreach ($raw_array as $sub_array)
|
||||||
$_maxlength = (isset ($maxlength[0]) ? $maxlength[0] : "");
|
$_maxlength = (isset ($maxlength[0]) ? $maxlength[0] : "");
|
||||||
else
|
else
|
||||||
// Do fallback to default prefix size if max-length was not set.
|
// 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
|
// Loop through each asn in single route6 object and assign
|
||||||
// other values accordingly.
|
// other values accordingly.
|
||||||
|
@ -167,7 +167,7 @@ foreach ($raw_array as $sub_array)
|
||||||
$_maxlength = (isset ($maxlength[0]) ? $maxlength[0] : "");
|
$_maxlength = (isset ($maxlength[0]) ? $maxlength[0] : "");
|
||||||
else
|
else
|
||||||
// Do fallback to default prefix size if max-length was not set.
|
// 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
|
// Loop through each asn in single route6 object and assign
|
||||||
// other values accordingly.
|
// other values accordingly.
|
||||||
|
|
Loading…
Reference in a new issue