Project

General

Profile

« Previous | Next » 

Revision 3e662cb0

Added by Ermal LUÇI about 13 years ago

Get rid of carpdev, it will never be

View differences:

usr/local/www/interfaces.php
192 192
	case "dhcp":
193 193
		$pconfig['type'] = "dhcp";
194 194
		break;
195
	case "carpdev-dhcp":
196
		$pconfig['ipaddr'] = "";
197
		break;
198 195
	case "pppoe":
199 196
	case "pptp":
200 197
	case "l2tp":
......
739 736
					$a_gateways[] = $gateway_item;
740 737
				}
741 738
				break;
742
			case "carpdev-dhcp":
743
				$wancfg['ipaddr'] = "carpdev-dhcp";
744
				$wancfg['dhcphostname'] = $_POST['dhcphostname'];
745
				$wancfg['alias-address'] = $_POST['alias-address'];
746
				$wancfg['alias-subnet'] = $_POST['alias-subnet'];
747
				if($gateway_item) {
748
					$a_gateways[] = $gateway_item;
749
				}
750
				break;
751 739
			case "ppp":
752 740
				$a_ppps[$pppid]['ptpid'] = $_POST['ptpid'];
753 741
				$a_ppps[$pppid]['type'] = $_POST['type'];
......
1115 1103

  
1116 1104
$closehead = false;
1117 1105
include("head.inc");
1118
$types4 = array("none" => gettext("None"), "staticv4" => gettext("Static IPv4"), "dhcp" => gettext("DHCP"), "ppp" => gettext("PPP"), "pppoe" => gettext("PPPoE"), "pptp" => gettext("PPTP"), "l2tp" => gettext("L2TP") /* , "carpdev-dhcp" => "CarpDev"*/);
1106
$types4 = array("none" => gettext("None"), "staticv4" => gettext("Static IPv4"), "dhcp" => gettext("DHCP"), "ppp" => gettext("PPP"), "pppoe" => gettext("PPPoE"), "pptp" => gettext("PPTP"), "l2tp" => gettext("L2TP"));
1119 1107
$types6 = array("none" => gettext("None"), "staticv6" => gettext("Static IPv6"), "dhcp6" => gettext("DHCP6"), "slaac" => gettext("SLAAC"), "6rd" => gettext("6rd Tunnel"), "6to4" => gettext("6to4 Tunnel"), "track6" => gettext("Track Interface"));
1120 1108

  
1121 1109
?>

Also available in: Unified diff