Project

General

Profile

« Previous | Next » 

Revision d7bccf3c

Added by Seth Mos over 14 years ago

Generate a address from the bridge mac and configure a v6 address

View differences:

etc/inc/services.inc
732 732
		if($config['dhcpdv6'][$dhcpv6if]['mode'] <> "unmanaged") {
733 733
			$realif = escapeshellcmd(get_real_interface($dhcpv6if));
734 734
			$dhcpdv6ifs[] = $realif;
735
			exec("/sbin/ifconfig {$realif} |awk  '/ether/ {print $2}'", $mac);
736
			$v6address = generate_ipv6_from_mac($mac[0]);
735 737
			/* Create link local address for bridges */
736 738
			if(stristr("$realif", "bridge")) {
737
				mwexec("$ifconfig {$realif} inet6 fe80::/64 eui64");
739
				mwexec("/sbin/ifconfig {$realif} inet6 {$v6address}");
738 740
			}
739 741
		}
740 742
	}

Also available in: Unified diff