From 9c783336e6c96b7a52e3b2d82a147b1d2e19181f Mon Sep 17 00:00:00 2001 From: Christoffer Date: Sat, 5 Jan 2019 22:55:25 +0000 Subject: [PATCH] lib: add constants.php to hold ALL constants. Instead of stuffing contants into define.php --- lib/constants.php | 13 +++++++++++++ lib/define.php | 3 --- rfc8416.php | 5 +++-- roagen.php | 6 ++++-- 4 files changed, 20 insertions(+), 7 deletions(-) create mode 100644 lib/constants.php diff --git a/lib/constants.php b/lib/constants.php new file mode 100644 index 0000000..8707981 --- /dev/null +++ b/lib/constants.php @@ -0,0 +1,13 @@ + diff --git a/lib/define.php b/lib/define.php index 8c71b21..0db6ddb 100644 --- a/lib/define.php +++ b/lib/define.php @@ -9,8 +9,5 @@ $files4 = scandir ("../registry/data/route/"); // Define array() we are gonna store data inside. $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 47bbc93..f11c447 100755 --- a/rfc8416.php +++ b/rfc8416.php @@ -1,6 +1,7 @@