summaryrefslogtreecommitdiffstats
path: root/src/etc/inc
diff options
context:
space:
mode:
authorSteve Beaver <sbeaver@netgate.com>2016-12-20 11:31:11 -0500
committerSteve Beaver <sbeaver@netgate.com>2016-12-20 11:35:33 -0500
commit0f026668ee80287e48993cf0ff5c919b9936ba0c (patch)
tree2b9560136b72bb1d2dadef6b77d4a2958ca714a7 /src/etc/inc
parent0ecbaa0ebd082fe0ca3d9373423c144f1f75d8c0 (diff)
downloadpfsense-0f026668ee80287e48993cf0ff5c919b9936ba0c.zip
pfsense-0f026668ee80287e48993cf0ff5c919b9936ba0c.tar.gz
Revise define values for address types to allow an easier transition in validateipaddr()
Diffstat (limited to 'src/etc/inc')
-rw-r--r--src/etc/inc/globals.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/etc/inc/globals.inc b/src/etc/inc/globals.inc
index 3c7bb45..7c53e2f 100644
--- a/src/etc/inc/globals.inc
+++ b/src/etc/inc/globals.inc
@@ -58,6 +58,12 @@ define('COLLAPSIBLE', 0x08);
define('SEC_CLOSED', 0x04);
define('SEC_OPEN', 0x00);
+// IP address types
+define("IPV4", 4);
+define("IPV6", 6);
+define("IPV4V6", 2);
+define("ALIAS", 1);
+
// AddPassword method defines
define('DMYPWD', "********");
OpenPOWER on IntegriCloud