diff --git a/lib/define.php b/lib/define.php index 1729cf9..8c71b21 100644 --- a/lib/define.php +++ b/lib/define.php @@ -11,4 +11,6 @@ $roas = array(); define ("MAX_LEN_IPV4", 28); define ("MAX_LEN_IPV6", 64); + +$web_registry_url = 'https://git.dn42.us/dn42/registry/src/master'; ?> diff --git a/rfc8416.php b/rfc8416.php index ef0b763..fcd00a3 100755 --- a/rfc8416.php +++ b/rfc8416.php @@ -110,7 +110,9 @@ foreach ($raw_array as $sub_array) $roas["locallyAddedAssertions"]["prefixAssertions"][$k]["asn"] = trim ($_asn[0], "AS"); $roas["locallyAddedAssertions"]["prefixAssertions"][$k]["prefix"] = $_prefix; $roas["locallyAddedAssertions"]["prefixAssertions"][$k]["maxPrefixLength"] = $_maxlength; - $roas["locallyAddedAssertions"]["prefixAssertions"][$k]["comment"] = "$_ta - mnt-by $_mnt"; + $roas["locallyAddedAssertions"]["prefixAssertions"][$k]["comment"] = "$web_registry_url/data/inet6num/$prefix[1]_$prefix[2]"; + $roas["locallyAddedAssertions"]["prefixAssertions"][$k]["source"] = "$_ta"; + $roas["locallyAddedAssertions"]["prefixAssertions"][$k]["mnt-by"] = "$_mnt"; $k++; } @@ -209,7 +211,9 @@ foreach ($raw_array as $sub_array) $roas["locallyAddedAssertions"]["prefixAssertions"][$k]["asn"] = trim ($_asn[0], "AS"); $roas["locallyAddedAssertions"]["prefixAssertions"][$k]["prefix"] = $_prefix; $roas["locallyAddedAssertions"]["prefixAssertions"][$k]["maxPrefixLength"] = $_maxlength; - $roas["locallyAddedAssertions"]["prefixAssertions"][$k]["comment"] = "$_ta - mnt-by $_mnt"; + $roas["locallyAddedAssertions"]["prefixAssertions"][$k]["comment"] = "$web_registry_url/data/inetnum/$prefix[1]_$prefix[2]"; + $roas["locallyAddedAssertions"]["prefixAssertions"][$k]["source"] = "$_ta"; + $roas["locallyAddedAssertions"]["prefixAssertions"][$k]["mnt-by"] = "$_mnt"; $k++; }