Project

General

Profile

« Previous | Next » 

Revision c909609c

Added by Renato Botelho over 4 years ago

Disable accept_rtadv flag when remove IPv6 from interface

View differences:

src/etc/inc/interfaces.inc
2076 2076
			unlink_if_exists("{$g['varetc_path']}/dhcp6c_{$interface}_dhcp6withoutra_script.sh");
2077 2077
			unlink_if_exists("{$g['varetc_path']}/rtsold_{$realifv6}_script.sh");
2078 2078
			if (does_interface_exist($realifv6)) {
2079
				mwexec("/sbin/ifconfig " . escapeshellarg($realifv6) . " inet6 -accept_rtadv");
2079 2080
				$ip6 = find_interface_ipv6($realifv6);
2080 2081
				if (is_ipaddrv6($ip6) && $ip6 != "::") {
2081 2082
					mwexec("/sbin/ifconfig " . escapeshellarg($realifv6) . " inet6 {$ip6} delete", true);

Also available in: Unified diff