summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2014-11-16 00:05:00 -0600
committerChris Buechler <cmb@pfsense.org>2014-11-16 00:05:00 -0600
commitf2b4a29b373672c912a6288a98c2516023dfb4a1 (patch)
tree4537424d45bb362be696dd3376e0d18034a8b475
parent9a25a85d3ef7c6cc71e543f95f3ec3bb4a0a348e (diff)
downloadpfsense-f2b4a29b373672c912a6288a98c2516023dfb4a1.zip
pfsense-f2b4a29b373672c912a6288a98c2516023dfb4a1.tar.gz
Don't try to clear states to gateway, all that does is wipe the entire state table unnecessarily. rc.newwanip takes care of killing states appropriately as needed when an IP changes.
-rw-r--r--etc/inc/interfaces.inc5
1 files changed, 0 insertions, 5 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 7bb983e..c2f9f60 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -1341,11 +1341,6 @@ function interface_bring_down($interface = "wan", $destroy = false, $ifacecfg =
$old_router = '';
if (file_exists("{$g['tmp_path']}/{$realif}_router"))
$old_router = trim(file_get_contents("{$g['tmp_path']}/{$realif}_router"));
-// log_error("Checking for old router states: {$g['tmp_path']}/{$realif}_router = {$old_router}");
- if (!empty($old_router)) {
- log_error("Clearing states to old gateway {$old_router}.");
- mwexec("/sbin/pfctl -i " . escapeshellarg($realif) . " -Fs");
- }
/* remove interface up file if it exists */
unlink_if_exists("{$g['tmp_path']}/{$realif}up");
OpenPOWER on IntegriCloud