summaryrefslogtreecommitdiffstats
path: root/src/etc/inc/interfaces.inc
diff options
context:
space:
mode:
authoraaa2ppp <alexander@panfilov.pp.ru>2017-03-13 03:24:50 +0400
committerGitHub <noreply@github.com>2017-03-13 03:24:50 +0400
commit7d316581f4bf05613a556867b1154e4b5b842b1a (patch)
tree0a804c5d4b0112812c39120e1ec3e61ad3b65702 /src/etc/inc/interfaces.inc
parent2b359eda6d4d6712888a59cb5b01aeee245e34be (diff)
downloadpfsense-7d316581f4bf05613a556867b1154e4b5b842b1a.zip
pfsense-7d316581f4bf05613a556867b1154e4b5b842b1a.tar.gz
Update interfaces.inc
Not defined pid file on starting choparp. The pfSense may not kill the program to reconfiguration.
Diffstat (limited to 'src/etc/inc/interfaces.inc')
-rw-r--r--src/etc/inc/interfaces.inc8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/etc/inc/interfaces.inc b/src/etc/inc/interfaces.inc
index 155da45..e91fbe0 100644
--- a/src/etc/inc/interfaces.inc
+++ b/src/etc/inc/interfaces.inc
@@ -2230,7 +2230,9 @@ function interface_proxyarp_configure($interface = "") {
if (!is_ipaddr($paaifip)) {
return;
}
- $args = get_real_interface($interface) . " auto";
+ $vipif = get_real_interface($interface);
+ $args = "-p {$g['varrun_path']}/choparp_{$vipif}.pid ";
+ $args .= $vipif . " auto";
foreach ($paa[$interface] as $paent) {
if (isset($paent['subnet'])) {
$args .= " " . escapeshellarg("{$paent['subnet']}/{$paent['subnet_bits']}");
@@ -2246,7 +2248,9 @@ function interface_proxyarp_configure($interface = "") {
if (!is_ipaddr($paaifip)) {
continue;
}
- $args = get_real_interface($paif) . " auto";
+ $vipif = get_real_interface($paif);
+ $args = "-p {$g['varrun_path']}/choparp_{$vipif}.pid ";
+ $args .= $vipif . " auto";
foreach ($paents as $paent) {
if (isset($paent['subnet'])) {
$args .= " " . escapeshellarg("{$paent['subnet']}/{$paent['subnet_bits']}");
OpenPOWER on IntegriCloud