diff options
author | jim-p <jimp@pfsense.org> | 2016-07-11 11:42:10 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2016-07-11 11:42:10 -0400 |
commit | 43c40296fef87bd6472e9616102cea1c4e7f36e3 (patch) | |
tree | c045f122bc1d7021b02d8f0a6f7c1b6317aa4bb6 /src | |
parent | b1be0cdc0c9b0bc0403d388cd5b94b936d92cc94 (diff) | |
download | pfsense-43c40296fef87bd6472e9616102cea1c4e7f36e3.zip pfsense-43c40296fef87bd6472e9616102cea1c4e7f36e3.tar.gz |
Remove GRE link flag options from GUI/backend. Keep link1 as it was also used to add an explicit static route, though the GUI previous GUI option name wasn't related to that at all. Updated GUI description to match reality. Ticket #6586
Diffstat (limited to 'src')
-rw-r--r-- | src/etc/inc/interfaces.inc | 9 | ||||
-rw-r--r-- | src/usr/local/www/interfaces_gre_edit.php | 24 |
2 files changed, 2 insertions, 31 deletions
diff --git a/src/etc/inc/interfaces.inc b/src/etc/inc/interfaces.inc index bb15d96..1639353 100644 --- a/src/etc/inc/interfaces.inc +++ b/src/etc/inc/interfaces.inc @@ -876,15 +876,6 @@ function interface_gre_configure(&$gre, $grekey = "") { } else { mwexec("/sbin/ifconfig {$greif} " . escapeshellarg($gre['tunnel-local-addr']) . " " . escapeshellarg($gre['tunnel-remote-addr']) . " netmask " . gen_subnet_mask($gre['tunnel-remote-net'])); } - if (isset($gre['link0'])) { - pfSense_interface_flags($greif, IFF_LINK0); - } - if (isset($gre['link1'])) { - pfSense_interface_flags($greif, IFF_LINK1); - } - if (isset($gre['link2'])) { - pfSense_interface_flags($greif, IFF_LINK2); - } if ($greif) { interfaces_bring_up($greif); diff --git a/src/usr/local/www/interfaces_gre_edit.php b/src/usr/local/www/interfaces_gre_edit.php index b1bcebd..7a475a0 100644 --- a/src/usr/local/www/interfaces_gre_edit.php +++ b/src/usr/local/www/interfaces_gre_edit.php @@ -147,15 +147,9 @@ if ($_POST) { $gre['tunnel-remote-net'] = $_POST['tunnel-remote-net']; $gre['remote-addr'] = $_POST['remote-addr']; $gre['descr'] = $_POST['descr']; - if (isset($_POST['link0'])) { - $gre['link0'] = ''; - } if (isset($_POST['link1'])) { $gre['link1'] = ''; } - if (isset($_POST['link2'])) { - $gre['link2'] = ''; - } $gre['greif'] = $_POST['greif']; $gre['greif'] = interface_gre_configure($gre); @@ -237,26 +231,12 @@ $section->addInput(new Form_Select( ))->setHelp('The subnet is used for determining the network that is tunnelled.'); $section->addInput(new Form_Checkbox( - 'link0', - 'Route Caching', - 'Specify if route caching can be enabled. (Be careful with these settings on dynamic networks.)', - $pconfig['link0'] -)); - -$section->addInput(new Form_Checkbox( 'link1', - 'ECN friendly behavior', - 'ECN friendly behavior violates RFC2893. This should be used in mutual agreement with the peer. ', + 'Add Static Route', + 'Add an explicit static route for the remote inner tunnel address/subnet via the local tunnel address', $pconfig['link1'] )); -$section->addInput(new Form_Checkbox( - 'link2', - 'WCCP Version', - 'Check this box for WCCP encapsulation version 2, or leave unchecked for version 1.', - $pconfig['link2'] -)); - $section->addInput(new Form_Input( 'descr', 'Description', |