diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-07-18 16:15:48 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-07-18 16:15:48 +0000 |
commit | e8dd289e564af99a0a8390a386149333fc5bd306 (patch) | |
tree | 696ca5fcf6ca905aebf518616d21d9cfd2f8c333 /etc | |
parent | f2dd118d54436ec9eb42a2c0c168dc446635c332 (diff) | |
download | pfsense-e8dd289e564af99a0a8390a386149333fc5bd306.zip pfsense-e8dd289e564af99a0a8390a386149333fc5bd306.tar.gz |
Start random mac generation with 00:a0:8e
Submitted-by: Greg Hennessy <Greg.Hennessy_AT_nviz.net>
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 05c1c37..484b864 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -981,8 +981,8 @@ function display_topbar($text = "", $bg_color="#990000", $replace_color="#FFFFFF * $mac - a random mac address ******/ function generate_random_mac() { - $mac = "00:00"; - for($x=0; $x<4; $x++) + $mac = "00:a0:8e"; + for($x=0; $x<3; $x++) $mac .= ":" . dechex(rand(16, 255)); return $mac; |