Project

General

Profile

Bug #3074 ยป dhcprelay-fix-test.patch

Jim Pingle, 07/05/2013 09:54 AM

View differences:

etc/inc/filter.inc
2743 2743
		}
2744 2744
			break;
2745 2745
		default:
2746
			if ((is_array($config['dhcpdv6'][$on]) && isset($config['dhcpdv6'][$on]['enable'])) || isset($oc['track6-interface'])) {
2746
			if ((is_array($config['dhcpdv6'][$on]) && isset($config['dhcpdv6'][$on]['enable'])) || isset($oc['track6-interface']) 
2747
				|| (is_array($config['dhcrelay6']) && !empty($config['dhcrelay6']['interface']) && in_array($on, explode(',', $config['dhcrelay6']['interface'])))) {
2747 2748
				$ipfrules .= <<<EOD
2748 2749
# allow access to DHCPv6 server on {$oc['descr']}
2749 2750
# We need inet6 icmp for stateless autoconfig and dhcpv6
    (1-1/1)