Revision c6555b1d
Added by Luiz Souza over 9 years ago
src/etc/inc/interfaces.inc | ||
---|---|---|
4769 | 4769 |
break; |
4770 | 4770 |
} else if (substr($interface, 0, 5) == '_lloc') { |
4771 | 4771 |
$interface = substr($interface, 5); |
4772 |
} else if (does_interface_exist($interface, $flush)) { |
|
4772 |
} else if (strstr($interface, "_vlan") || |
|
4773 |
does_interface_exist($interface, $flush)) { |
|
4773 | 4774 |
/* |
4774 | 4775 |
* If a real interface was already passed simply |
4775 | 4776 |
* pass the real interface back. This encourages |
Also available in: Unified diff
Makes get_real_interface() work with VLAN too.
This makes get_parent_interface() safe to use with VLANs.