Project

General

Profile

Bug #2010 » interfaces.patch

Andre Keller, 11/16/2011 02:01 PM

View differences:

/etc/inc/interfaces.inc 2011-11-16 19:03:59.000000000 +0000
2734 2734
	if (!empty($wancfg['mtu']))
2735 2735
		pfSense_interface_mtu($realhwif, $wancfg['mtu']);
2736 2736
	else {
2737
		$mtu = get_interface_default_mtu(remove_numbers($realhwif));
2737
		$mtu = get_interface_default_mtu(remove_ifindex($realhwif));
2738 2738
		if ($mtu != get_interface_mtu($realhwif))
2739 2739
			pfSense_interface_mtu($realhwif, $mtu);
2740 2740
	}
......
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;
(3-3/3)