Bug #2010 » int_family.patch
etc/inc/interfaces.inc 2011-11-16 18:46:37.000000000 +0000 | ||
---|---|---|
3990 | 3990 |
"ndis", "tun", "ovpns", "ovpnc", "vlan", "pppoe", "pptp", "ng", |
3991 | 3991 |
"l2tp", "ppp"); |
3992 | 3992 | |
3993 |
$int_family = preg_split("/[0-9]+/", $int); |
|
3993 |
$int_family = preg_split("/[0-9]+$/", $int);
|
|
3994 | 3994 | |
3995 | 3995 |
if (in_array($int_family[0], $capable)) |
3996 | 3996 |
return true; |
... | ... | |
4136 | 4136 |
function is_jumbo_capable($int) { |
4137 | 4137 |
global $g; |
4138 | 4138 | |
4139 |
$int_family = preg_split("/[0-9]+/", $int); |
|
4139 |
$int_family = preg_split("/[0-9]+$/", $int);
|
|
4140 | 4140 | |
4141 | 4141 |
if (in_array($int_family[0], $g['vlan_long_frame'])) |
4142 | 4142 |
return true; |