Project

General

Profile

« Previous | Next » 

Revision dbb4e089

Added by Ermal LUÇI about 12 years ago

Implement an option to allow using the IPv4 connectivity interface for sending the dhcpv6 information. Usually useful for ppp[oe] type links and some ISP

View differences:

etc/inc/interfaces.inc
4216 4216
				case 'ppp':
4217 4217
				case 'l2tp':
4218 4218
				case 'pptp':
4219
					$parents = get_parent_interface($interface);
4220
					if (!empty($parents[0]))
4221
						$wanif = $parents[0];
4222
					else
4219
					if (isset($cfg['dhcp6usev4iface']))
4223 4220
						$wanif = $cfg['if'];
4221
					else {
4222
						$parents = get_parent_interface($interface);
4223
						if (!empty($parents[0]))
4224
							$wanif = $parents[0];
4225
						else
4226
							$wanif = $cfg['if'];
4227
					}
4224 4228
					break;
4225 4229
				default:
4226 4230
					if( is_array($cfg['wireless']) || preg_match($g['wireless_regex'], $cfg['if']))

Also available in: Unified diff