diff options
author | Seth Mos <seth.mos@dds.nl> | 2011-05-24 18:34:07 +0200 |
---|---|---|
committer | Seth Mos <seth.mos@dds.nl> | 2011-05-24 18:34:07 +0200 |
commit | 5aa28c8679ccd3fdfbb82bedee04ad4180d259cc (patch) | |
tree | c5760d295199ca00adc02314164929a070e21aff /etc/inc | |
parent | e2b6e6042a43a5beb6de3dd12d4f8a811a8f4dc9 (diff) | |
download | pfsense-5aa28c8679ccd3fdfbb82bedee04ad4180d259cc.zip pfsense-5aa28c8679ccd3fdfbb82bedee04ad4180d259cc.tar.gz |
Apply fix from wallabybob on the forum http://forum.pfsense.org/index.php/topic,37079.0.html
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 41bf690..572333a 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -2214,7 +2214,7 @@ function generate_ipv6_from_mac($mac) { return false; $i = 0; - $ipv6 = ""; + $ipv6 = "fe80::"; foreach($elements as $byte) { if($i == 0) { $hexadecimal = substr($byte, 1, 2); @@ -2230,12 +2230,8 @@ function generate_ipv6_from_mac($mac) { if($i == 3) { $ipv6 .= ":"; } - if($i == 5) { - $ipv6 .= ":"; - } if($i == 2) { $ipv6 .= "ff:fe"; - $i++; } $i++; |